How arthuryangx/nano-notebooklm works
nano-NotebookLM is a self-hosted course-study assistant. Its main workflow is course upload and extraction, indexing and knowledge-graph creation, then chat retrieval with citations; the product also provides notes, quizzes, exam preparation, and an editable graph. The graph follows documented capabilities and SOURCE INDEX references; several frontend and backend subsystems were not sampled, so their internal call paths are omitted.
Main entry points: server.py HTTP API · app.jsx Study interface · engine.py Skill orchestrator · router.py Model routing
Components 24
Study experience
- Study interface
frontend/app.jsx - Chat and reader
frontend/assistant.jsx - Notes
frontend/notes.jsx - Exam prep
frontend/exam-prep.jsx - Mind map
frontend/mindmap.jsx - Provider settings
frontend/settings.jsx
API and orchestration
- HTTP API
api/server.py - Skill orchestrator
nano_notebooklm/orchestrator/engine.py - Intent routing
nano_notebooklm/orchestrator/router_intent.py
Course knowledge
- Course ingestion and store
nano_notebooklm/kb/store.py - Document extraction
nano_notebooklm/ingest/extractors_mineru.py - Chunking
nano_notebooklm/ingest/chunker.py - Hybrid retrieval
nano_notebooklm/kb/hybrid_search.py - Graph retrieval
nano_notebooklm/kb/graph_search.py - Graph extraction
nano_notebooklm/kg/extractor.py - Knowledge graph
nano_notebooklm/kg/graph.py
Learning tools
- Cited Q&A
nano_notebooklm/skills/qa_skill.py - LaTeX notes
nano_notebooklm/skills/notes_full_course.py - Quiz generation
nano_notebooklm/skills/quiz_generator.py - Exam preparation
nano_notebooklm/skills/exam_prep.py - Mastery tracking
nano_notebooklm/skills/mastery_tracker.py
Model providers
- Model routing
nano_notebooklm/ai/router.py - LLM backends
nano_notebooklm/ai/base.py
Other components
- Student
Connections 34
- Student → Study interface: uses
README.md - Study interface → HTTP API: sends requests
README.md - HTTP API → Skill orchestrator: routes skills
api/server.py - HTTP API → Course ingestion and store: manages courses
api/server.py - HTTP API → Model routing: configures providers
api/server.py - Study interface → Chat and reader: offers chat
README.md - Study interface → Notes: offers notes
README.md - Study interface → Exam prep: offers exam prep
README.md - Study interface → Mind map: offers graph editing
README.md - Study interface → Provider settings: manages providers
README.md - Chat and reader → HTTP API: submits questions
README.md - Notes → HTTP API: requests notes
README.md - Exam prep → HTTP API: requests practice
README.md - Mind map → HTTP API: edits graph
README.md - Provider settings → HTTP API: updates providers
README.md - HTTP API → Document extraction: extracts uploads
README.md - Course ingestion and store → Document extraction: extracts documents
nano_notebooklm/kb/store.py - Course ingestion and store → Chunking: chunks content
nano_notebooklm/kb/store.py - Course ingestion and store → Hybrid retrieval: builds retrieval index
nano_notebooklm/kb/store.py - Graph extraction → Model routing: requests extraction
nano_notebooklm/kg/extractor.py - Graph extraction → Knowledge graph: creates concepts
nano_notebooklm/kg/extractor.py - Skill orchestrator → Cited Q&A: dispatches questions
nano_notebooklm/orchestrator/engine.py - Skill orchestrator → LaTeX notes: dispatches notes
nano_notebooklm/orchestrator/engine.py - Skill orchestrator → Quiz generation: dispatches quizzes
nano_notebooklm/orchestrator/engine.py - Skill orchestrator → Exam preparation: dispatches exam prep
nano_notebooklm/orchestrator/engine.py - Skill orchestrator → Mastery tracking: dispatches tracking
nano_notebooklm/orchestrator/engine.py - Cited Q&A → Intent routing: classifies queries
nano_notebooklm/skills/qa_skill.py - Cited Q&A → Course ingestion and store: searches sources
nano_notebooklm/skills/qa_skill.py - Cited Q&A → Graph retrieval: retrieves graph context
nano_notebooklm/skills/qa_skill.py - Cited Q&A → Model routing: generates answers
nano_notebooklm/skills/qa_skill.py - LaTeX notes → Model routing: generates notes
nano_notebooklm/skills/notes_full_course.py - Exam preparation → Model routing: generates practice
nano_notebooklm/skills/exam_prep.py - Model routing → LLM backends: selects provider
nano_notebooklm/ai/router.py - Hybrid retrieval → Student: returns citations
README.md