🌐 Live Demo | ⭐ Star this repo
AI-Powered Personal Knowledge Base
Store, retrieve, and chat with your knowledge using RAG pipelines, embeddings, and a futuristic retro-dark UI.
| ⚡ AI Knowledge Chat | Converse with your stored documents, notes, and resources |
| 📂 Smart Ingestion | Upload PDFs, notes, and text—auto-chunked and embedded into vector DB |
| 🤖 RAG Pipeline | Context-aware answers powered by OpenAI + LangChain |
| 🛡️ Secure Auth | Firebase Auth + PostgreSQL for protected user spaces |
| 🧩 Knowledge Orb | Dynamic visualization of your stored knowledge base |
| 🌌 Dark Retro UI | Terminal-inspired aesthetics with smooth animations |
Because your brain deserves an upgrade.
Store, connect, and recall your knowledge instantly—with the vibe of a hacker terminal fused with AI superpowers. 🕹️
# 🔥 Clone & Setup
git clone https://github.com/anwexhaa/second-brain.git
cd second-brain
# 🎨 Frontend Setup
cd frontend
npm install # or yarn/pnpm install
# 🐍 Backend Setup
cd ../backend
pip install -r requirements.txtFrontend (.env.local)
NEXT_PUBLIC_OPENAI_API_KEY=your_openai_api_key
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_keyBackend (.env)
OPENAI_API_KEY=your_openai_api_key
DATABASE_URL=your_postgres_url
FIREBASE_PROJECT_ID=your_firebase_project_id
VECTOR_DB_API_KEY=your_pinecone_or_chroma_key# Frontend (Terminal 1)
cd frontend && npm run dev
# Backend (Terminal 2)
cd backend && uvicorn main:app --reload🎉 Visit http://localhost:3000 and start building your Second Brain!
| Category | Technologies |
|---|---|
| Frontend | Next.js, React, Tailwind CSS |
| Backend | FastAPI (Python) |
| Database | PostgreSQL + Pinecone (Vector DB) |
| Authentication | Firebase Auth |
| AI Pipeline | LangChain + OpenAI Embeddings |
| Deployment | Vercel + Railway/Render |
- 🎯 Frontend: Live at second-brain-fawn.vercel.app
- ⚙️ Backend: Deploy on Railway, Render, or any cloud provider
- 💾 Database: Use Supabase or Neon for PostgreSQL
- 🔍 Vector DB: Pinecone (managed) or Chroma (self-hosted)
We love contributions! Here's how to get involved:
- 🍴 Fork the repository
- 🌿 Create your feature branch:
git checkout -b feature/amazing-feature - 💾 Commit your changes:
git commit -m 'Add amazing feature' - 🚀 Push to branch:
git push origin feature/amazing-feature - 🎯 Open a Pull Request
This project is licensed under the MIT License - see the file for details.
⭐ Star this repo if it helped you build your Second Brain!
Made with 💜 by anwexhaa


