How viha0509/learninghub works
Learning Hub is a personal learning web app: users organize imported research notes on role-based roadmaps, read or draft topic lessons, and ask an AI agent about their own material. The graph preserves the documented authentication, provider configuration, Knowledge Hub connection, news, practice, and data-transfer capabilities. Several feature modules are unsampled, so their internal call relationships are not asserted; edges use README statements or indexed source references where available.
Main entry points: tools.py Learning tools · agent.py Agent chat · backup.py Backup and sync · roadmaps.py Role roadmaps
Components 21
Web experience
- Web app
frontend/src/App.tsx - API client
frontend/src/api.ts
Learning content
- Role roadmaps
backend/app/roadmaps.py - Topic catalog
backend/app/learning/topics.py - Research note import
backend/app/routes/notes.py - Reference sync
backend/app/resources/fetch.py - Lessons
backend/app/routes/lessons.py - Practice exams
backend/app/routes/practice.py - AI news
backend/app/news/refresh.py
AI assistant
- Agent chat
backend/app/routes/agent.py - Learning tools
backend/app/agent/tools.py - Model providers
backend/app/agent/llm/factory.py - Claude Code agent
backend/app/agent/llm/claude_code.py
Identity and integrations
- Sign-in and accounts
backend/app/routes/auth.py - Sessions and users
backend/app/auth/sessions.py - Knowledge Hub sign-in
backend/app/kh/service.py
Data and operations
- Backend API
backend/app/main.py - Application database
backend/app/db.py - File storage
backend/app/storage.py - Backup and sync
backend/app/data_sync/backup.py
Other components
- Learner
Connections 24
- Learner → Web app: uses
README.md - Web app → API client: requests data
frontend/src/App.tsx - API client → Backend API: calls API
README.md - Backend API → Sign-in and accounts: serves routes
backend/app/main.py - Sign-in and accounts → Sessions and users: manages sessions
backend/app/routes/auth.py - Learner → Role roadmaps: organizes learning
README.md - Role roadmaps → Topic catalog: defines topics
backend/app/learning/topics.py - Learner → Research note import: imports research
README.md - Learner → Lessons: reads and drafts
README.md - Learner → Practice exams: practices
README.md - Learner → AI news: reads news
- Learner → Reference sync: syncs references
- Learner → Agent chat: chats with
README.md - Agent chat → Learning tools: dispatches tools
- Learning tools → Role roadmaps: reads roadmaps
backend/app/agent/tools.py - Learning tools → Topic catalog: reads topics
backend/app/agent/tools.py - Agent chat → Model providers: selects model
- Model providers → Claude Code agent: creates agent
backend/app/agent/llm/factory.py - Learning tools → File storage: stores notes
backend/app/agent/tools.py - Learning tools → Application database: reads and writes
backend/app/agent/tools.py - Learner → Knowledge Hub sign-in: connects account
README.md - Learner → Backup and sync: backs up data
README.md - Backup and sync → Application database: backs up records
backend/app/data_sync/backup.py - Backup and sync → File storage: backs up files
backend/app/data_sync/backup.py