An open API service indexing awesome lists of open source software.

https://github.com/preston176/nexusai

Nexus AI is an innovative platform designed to empower users by securely storing their documents and providing intelligent, document-based responses
https://github.com/preston176/nexusai

clerk-authentication customhooks firebase langchain nextjs15 paystack pinecone

Last synced: 7 months ago
JSON representation

Nexus AI is an innovative platform designed to empower users by securely storing their documents and providing intelligent, document-based responses

Awesome Lists containing this project

README

          

๐Ÿš€ Nexus AI


Secure, Scalable Document Chat Powered by GPT-4o



Nexus AI on Product Hunt



GitHub stars


GitHub issues


Last commit

๐ŸŒ Screenshot



Nexus AI Screenshot



๐ŸŒ Live App

|

๐ŸŽฅ Watch Demo

๐Ÿ“„ Overview


Nexus AI is a full-stack web application that enables users to securely upload and interact with documents via conversational AI.



It combines:

  • ๐Ÿ” Modern Authentication

  • โ˜๏ธ Cloud Storage

  • ๐Ÿง  Vector Indexing

  • ๐Ÿค– Multi-provider LLM orchestration via LangChain




Key Use Cases:

  • ๐Ÿ“‘ Document Search

  • โœ… Compliance QA

  • ๐Ÿงพ Personal Knowledge Base

  • ๐Ÿ” AI Research Assistant


## Architecture

```mermaid
graph TD
User[๐Ÿง‘ User] --> UI[๐ŸŒ Nexus AI App]
UI --> Auth[๐Ÿ” Sign In
via Clerk]
UI --> Upload[๐Ÿ“„ Upload Document]
Upload --> Store[โ˜๏ธ Saved to Cloud
Firebase]
Upload --> Understand[๐Ÿค– Analyze Content
with AI]
Understand --> Ask[โ“ Ask a Question]
Ask --> Search[๐Ÿ”Ž Find Relevant Info]
Search --> Respond[Get response
from LLM]
UI --> Pay[๐Ÿ’ณ Upgrade Plan
via Paystack]
```

---

## Features

- ๐Ÿ” **Multi-factor Authentication** with Clerk
- ๐Ÿ“„ **PDF Storage** using Firebase Cloud Storage
- ๐Ÿง  **LLM Orchestration** via LangChain
- ๐Ÿ”Ž **Vector Search** using Pinecone
- ๐Ÿ’ฌ **Multi-LLM Support**: GPT-4o, Gemini, Azure, Groq
- ๐Ÿ’ณ **Subscription Billing** powered by Paystack
- ๐Ÿณ **Docker Compatible** with environment-driven config

---

## Technology Stack

| Layer | Technology |
| ------------- | -------------------------------------- |
| Frontend | Next.js, TailwindCSS |
| Auth | Clerk.dev |
| File Storage | Firebase Cloud Storage |
| Vector Search | Pinecone |
| LLM Runtime | LangChain |
| LLM Providers | OpenAI, Gemini, Azure OpenAI, Groq |
| Payments | Paystack |
| Deployment | Docker, Vercel |

---

## Setup

### Local Development

```bash
git clone https://github.com/preston176/nexusAI
cd nexusAI
npm install
npm run dev
```

App will be available at `http://localhost:3000`.

---

### Environment Variables

Create a `.env` file with the following:

```env
# Clerk Auth
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=...
CLERK_SECRET_KEY=...

# Pinecone
NEXT_PUBLIC_PINECONE_API_KEY=...

# LLM APIs
NEXT_PUBLIC_GEMINI_API_KEY=...
OPENAI_API_KEY=...
GROQ_API_KEY=...

# Paystack
NEXT_PUBLIC_PAYSTECK_PUBLISHABLE_KEY=...
PAYSTACK_API_KEY=...
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY=...
PAYSTACK_WEBHOOK_SECRET=...

# Firebase
FIREBASE_STORAGE_BUCKET=nexusai-pdf.firebasestorage.app
FIREBASE_SERVICE_ACCOUNT_JSON=

# reCAPTCHA / Forms
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=...
NEXT_PUBLIC_FORMSPREE_API=...
```

### Optional: Azure OpenAI Integration

```env
AZURE_OPENAI_API_INSTANCE_NAME=...
AZURE_OPENAI_API_KEY=...
AZURE_OPENAI_API_VERSION="2024-02-01"
AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME="text-embedding-ada-002"
```

---

## Docker Support

```bash
docker build -t nexusai-pdf .
docker run -p 3000:3000 --env-file .env nexusai-pdf
```

---

## License

MIT License

---

## Author

Built by [Preston Mayieka](https://preston176.vercel.app)
GitHub: [@preston176](https://github.com/preston176)
Twitter: [@preston_mayieka](https://twitter.com/preston_mayieka)