Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Nexora AI

An AI-powered SaaS workspace with Multi-LLM Chat, RAG, File Intelligence, Image Generation, Web Search, Analytics, and Premium Features.

Nexora AI is a modern AI platform built with Next.js 16, TypeScript, Prisma, PostgreSQL, and the Vercel AI SDK. It provides users with a ChatGPT-like experience while supporting multiple AI providers, document understanding through Retrieval-Augmented Generation (RAG), AI image generation, web search, analytics, subscriptions, and much more.


✨ Features

πŸ€– AI Chat

  • Streaming AI responses
  • Multiple AI providers
  • Multiple LLM selection
  • Conversation history
  • Markdown rendering
  • Syntax highlighted code blocks
  • Copy response
  • Regenerate response
  • Stop generation
  • Chat title generation
  • Image responses
  • Typing animation

🧠 Multi Model Support

Supports multiple AI providers.

Google

  • Gemini 2.5 Flash

Groq

  • Llama 3.3 70B
  • GPT OSS 120B

Cohere

  • Command A

DeepSeek

  • DeepSeek Chat

πŸ“ File Intelligence

Supports intelligent document processing.

Supported formats:

  • PDF
  • DOCX
  • TXT
  • Markdown
  • Images

Features:

  • File upload
  • Preview
  • Cloud storage
  • AI document understanding
  • File attachment in chat
  • Recent documents
  • Upload progress
  • Document parser

πŸ“š RAG (Retrieval Augmented Generation)

  • Automatic document chunking
  • Google Embeddings
  • Chroma Vector Database
  • Semantic Search
  • Context Retrieval
  • AI answers grounded on uploaded files

🌐 AI Web Search

  • Live web search
  • Tavily integration
  • AI summarized results
  • Search prompt detection

🎨 AI Image Generation

  • Gemini Image Generation
  • HuggingFace fallback
  • Automatic image prompt detection
  • Image preview
  • Image modal

πŸ“Š Analytics Dashboard

  • Activity analytics
  • AI model usage
  • File usage
  • Charts
  • User statistics
  • Recent activity

πŸ‘€ Authentication

  • Google OAuth
  • GitHub OAuth
  • Credentials Login
  • Registration
  • JWT Sessions
  • Protected Routes
  • Middleware Authentication

βš™οΈ User Settings

  • Username
  • Avatar Upload
  • Profile Management
  • Cloudinary Integration

πŸ’³ Premium Features

  • Razorpay Integration
  • Subscription Plans
  • Premium Feature Gate
  • Feature Restrictions

☁️ Cloud Storage

  • Cloudinary
  • Secure uploads
  • File previews

πŸ—οΈ Tech Stack

Frontend

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind CSS
  • shadcn/ui
  • Framer Motion
  • React Hook Form
  • Zod
  • Sonner

Backend

  • Next.js Route Handlers
  • Prisma ORM
  • PostgreSQL (Neon)
  • Auth.js
  • Vercel AI SDK

AI

  • Google Gemini
  • Groq
  • Cohere
  • DeepSeek
  • Tavily Search
  • Google Embeddings

Vector Database

  • ChromaDB

Storage

  • Cloudinary

Payments

  • Razorpay

πŸ“‚ Project Structure

app/
 β”œβ”€β”€ (auth)
 β”œβ”€β”€ (dashboard)
 β”‚    β”œβ”€β”€ analytics
 β”‚    β”œβ”€β”€ chat
 β”‚    β”œβ”€β”€ dashboard
 β”‚    β”œβ”€β”€ files
 β”‚    β”œβ”€β”€ pricing
 β”‚    └── settings
 └── api

components/
hooks/
lib/
prisma/
services/
types/

πŸ—„οΈ Database

Built using Prisma ORM with PostgreSQL.

Main models:

  • User
  • Chat
  • Message
  • File
  • Subscription

πŸ”„ AI Flow

User
   β”‚
   β–Ό
Chat Input
   β”‚
   β–Ό
API Route
   β”‚
   β–Ό
Chat Service
   β”‚
   β–Ό
Prompt Builder
   β”‚
   β–Ό
Selected AI Provider
   β”‚
   β–Ό
Streaming Response
   β”‚
   β–Ό
Database

πŸ“ RAG Flow

Upload File
      β”‚
      β–Ό
Document Parser
      β”‚
      β–Ό
Chunking
      β”‚
      β–Ό
Google Embeddings
      β”‚
      β–Ό
Chroma Vector DB
      β”‚
      β–Ό
Semantic Search
      β”‚
      β–Ό
Context Retrieval
      β”‚
      β–Ό
AI Response

πŸ–ΌοΈ Image Generation Flow

Prompt
   β”‚
   β–Ό
Image Prompt Detection
   β”‚
   β–Ό
Gemini Image API
   β”‚
   β–Ό
Fallback (HuggingFace)
   β”‚
   β–Ό
Generated Image

🌐 Web Search Flow

Prompt
   β”‚
   β–Ό
Search Detection
   β”‚
   β–Ό
Tavily API
   β”‚
   β–Ό
Search Results
   β”‚
   β–Ό
AI Summary

πŸš€ Installation

Clone the repository

git clone https://github.com/Developer-Sohail786/Nexora.git

Install dependencies

npm install

Configure environment variables

DATABASE_URL=
AUTH_SECRET=

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

GOOGLE_GENERATIVE_AI_API_KEY=
GROQ_API_KEY=
COHERE_API_KEY=
DEEPSEEK_API_KEY=
TAVILY_API_KEY=

CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=

Run Prisma

npx prisma generate

npx prisma migrate dev

Start ChromaDB

docker compose up -d

Run the development server

npm run dev

πŸ“¦ Scripts

npm run dev
npm run build
npm run start
npm run lint

πŸš€ Future Roadmap

  • Voice Chat
  • AI Agents
  • Team Workspace
  • Shared Chats
  • Chat Export
  • Memory
  • OCR Improvements
  • More AI Providers
  • Mobile App
  • Usage Limits
  • Admin Dashboard

πŸ‘¨β€πŸ’» Author

Sohail Khan

Backend β€’ AI β€’ Full Stack Developer


πŸ“œ License

This project is licensed under the MIT License.


⭐ If you like this project

Give the repository a ⭐ on GitHub.

Deploy on Vercel

Check out our Next.js deployment documentation for more details.

About

AI-powered SaaS workspace with multi-model chat, RAG document search, web search, image generation, analytics, authentication, and subscriptions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages