🔒 Local-First: Your study materials never leave your device. All processing happens locally.
NeuroForge is an intelligent learning platform that transforms raw study material into structured, personalized learning experiences. Upload any document — PDF, DOCX, or plain text — and NeuroForge builds a knowledge graph, then generates quizzes, flashcards, solutions, revision notes, mind maps, and more, all adapted to your learning progress.
Key Principles:
- 🏠 Local-First — All data stays on your machine
- 🔐 Privacy-Focused — No cloud uploads, no tracking
- 📴 Offline Capable — Works without internet (with local LLM)
- 🆓 Open Source — Free to use and modify
| Feature | Description |
|---|---|
| Quiz Generation | MCQ, short answer, true/false with explanations |
| Flashcards | With hints, mnemonics, and spaced repetition |
| Revision Notes | Hierarchical, exam-focused summaries |
| Solutions | Model answers with marking schemes |
| Mind Maps | Visual concept relationships |
| Chat Tutor | RAG-powered Q&A grounded in your materials |
| Adaptive Learning | Tracks progress, adjusts difficulty |
- Python 3.11+
- Node.js 20+ (for frontend)
# Clone the repository
git clone https://github.com/Echo2f13/NeuroForge.git
cd NeuroForge
# Create virtual environment
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # Linux/Mac
# Install Python dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.template .env
# Edit .env with your API keys (Groq, OpenRouter)
# Run the backend
python -m uvicorn main:app --reload --port 8000cd frontend
npm install
npm run devOpen http://localhost:3000 in your browser.
NeuroForge supports multiple LLM providers:
| Provider | Model | Notes |
|---|---|---|
| Groq (Primary) | llama-3.3-70b-versatile | Fast, free tier available |
| OpenRouter (Fallback) | nvidia/nemotron-3-super-120b | More models, pay-as-you-go |
| Ollama (Planned) | Local models | Fully offline |
Configure in .env:
GROQ_API_KEY=your_key_here
OPENROUTER_API_KEY=your_key_hereNeuroForge/
├── main.py # FastAPI application
├── requirements.txt # Python dependencies
├── src/
│ ├── ingestion/ # Document loaders
│ ├── processing/ # Text chunking
│ ├── extraction/ # Knowledge extraction
│ ├── store/ # Vector DB, knowledge graph
│ ├── retrieval/ # Hybrid search
│ ├── workflows/ # Quiz, flashcard, notes generation
│ ├── prompts/ # Enhanced LLM prompts
│ └── learning/ # Spaced repetition
├── models/ # Pydantic data models
├── frontend/ # Next.js web UI
├── tests/ # Test suite
├── notebooks/ # Jupyter development notebooks
└── docs/ # Documentation
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | System health check |
/stats |
GET | Usage statistics |
| Endpoint | Method | Description |
|---|---|---|
/upload |
POST | Upload document (PDF, DOCX, TXT) |
/documents |
GET | List uploaded documents |
| Endpoint | Method | Description |
|---|---|---|
/quiz/generate |
POST | Generate quiz questions |
/flashcards/generate |
POST | Generate flashcards |
/notes/generate |
POST | Generate revision notes |
/solution/generate |
POST | Generate model answer |
/chat |
POST | Chat with AI tutor |
| Endpoint | Method | Description |
|---|---|---|
/review/due |
GET | Get cards due for review |
/review/record |
POST | Record review result |
Full API docs: http://localhost:8000/docs
NeuroForge now supports organizing your study materials by subject:
- Create Subjects: Organize materials into separate subjects (Physics, Chemistry, etc.)
- Isolated Storage: Each subject has its own knowledge base, progress tracking, and flashcards
- Easy Switching: Switch between subjects with a single click
- Cross-Subject Search: Optionally search across all your subjects
- Click the subject selector in the header
- Click "Create New Subject"
- Name your subject and add an icon
- Upload materials to your new subject
- All quizzes, flashcards, and progress are now scoped to that subject
- Core learning engine
- Web interface
- Enhanced LLM prompts
- Subject management — Issue #3
- Desktop app (Tauri) — Issue #2
- Mobile app — Issue #1
- Source attribution UI — Issue #6
See full roadmap and open issues.
We welcome contributions! See CONTRIBUTING.md for guidelines.
Good first issues:
- CI/CD Pipeline (#7)
- Documentation improvements
- Test coverage
| Document | Description |
|---|---|
| VISION.md | Project goals and philosophy |
| ARCHITECTURE.md | Technical system design |
| ROADMAP.md | Development milestones |
| CONTRIBUTING.md | Contribution guidelines |
| API.md | Full API reference |
MIT — Free to use, modify, and distribute.
Built with: