How shuvro86/shreehan_notion works
Shreehan HQ is a Class II learning workspace: students and teachers use a web app for dashboard tasks, study materials, practice, and coursework, while administrators manage accounts and access. The frontend is served by a FastAPI backend; SQLite stores account and classroom data, and a supervised background process refreshes the Notion-backed library and linked Drive files. The graph preserves the documented assistant and practice capabilities. Some UI-to-API details and the worker’s precise connection to importer modules are not shown in the excerpts, so those links are omitted or marked unverified.
Main entry points: main.py FastAPI app · page.tsx Learning app · notion-sync.mjs Notion library importer · db.py SQLite application data
Components 23
Learning workspace
- Learning app
frontend/app/page.tsx - Sign-in gate
frontend/app/_components/auth-gate.tsx - Document library
frontend/app/_components/library.tsx - Coursework
frontend/app/_components/coursework.tsx - Kanban board
frontend/app/kanban/page.tsx - Study assistant
frontend/app/assistant/page.tsx
Application backend
- FastAPI app
backend/main.py - Authentication
backend/auth.py - Content APIs
backend/content.py - Workspace APIs
backend/workspace.py - Teacher APIs
backend/teacher.py - Administration APIs
backend/admin.py
Content synchronization
- Sync supervisor
backend/notion_worker.py - Notion library importer
server/notion-sync.mjs - Drive importer
server/drive-sync.mjs - Study-note extraction
server/study-notes.mjs
Study tools
- Subject practice generation
server/subject-practice.mjs - Unseen-paper practice
server/unseen-practice.mjs
Persistent state
- SQLite application data
backend/db.py
Other components
- Learner / teacher
- Notion
- Google Drive
- OpenRouter
Connections 26
- Learner / teacher → Learning app: uses
README.md - Learning app → FastAPI app: calls APIs
README.md - FastAPI app → Authentication: registers routes
backend/main.py - FastAPI app → Content APIs: registers routes
backend/main.py - FastAPI app → Workspace APIs: registers routes
backend/main.py - FastAPI app → Teacher APIs: registers routes
backend/main.py - FastAPI app → Administration APIs: registers routes
backend/main.py - FastAPI app → Sync supervisor: starts supervisor
backend/main.py - Authentication → SQLite application data: stores accounts
backend/auth.py - Workspace APIs → SQLite application data: stores workspace
backend/workspace.py - Teacher APIs → SQLite application data: stores coursework
backend/teacher.py - Administration APIs → SQLite application data: reads and updates
backend/admin.py - Sync supervisor → Notion library importer: launches importer
- Notion library importer → Study-note extraction: uses extraction
server/notion-sync.mjs - Notion library importer → Drive importer: uses Drive sync
server/notion-sync.mjs - Notion → Notion library importer: provides content
README.md - Google Drive → Drive importer: provides files
README.md - Subject practice generation → Study-note extraction: uses notes
server/subject-practice.mjs - Subject practice generation → Unseen-paper practice: uses generation
server/subject-practice.mjs - Learning app → Document library: renders library
frontend/app/page.tsx - Learning app → Coursework: renders coursework
frontend/app/page.tsx - Learning app → Sign-in gate: gates access
frontend/app/page.tsx - Document library → Content APIs: loads library
- Coursework → Teacher APIs: uses coursework APIs
- Study assistant → OpenRouter: requests study help
- Learning app → Subject practice generation: offers practice