How enkheeboldu05/studyflow works
StudyFlow is a local-first personal study planner. A user signs in, captures tasks, organizes them into subjects and dates, reviews daily or weekly plans, and tracks study sessions and progress. The React app calls an Express JSON API; authenticated routes validate requests and use Prisma with a local SQLite database. The graph includes the documented settings, backup, and study-log capabilities; unsampled route implementations are represented by their tree paths, with links limited to documented or indexed relationships.
Main entry points: App.tsx App shell · app.ts Express API · db.ts Prisma client · auth.ts Authentication
Components 25
Planner interface
- App shell
frontend/src/App.tsx - Sign-in screen
frontend/src/components/AuthScreen.tsx - Task controls
frontend/src/components/QuickAdd.tsx - Task editor
frontend/src/components/TaskEditorDialog.tsx - Task card
frontend/src/components/TaskCard.tsx - Today plan
frontend/src/pages/TodayPage.tsx - Week plan
frontend/src/pages/WeekPage.tsx - Calendar plan
frontend/src/pages/CalendarPage.tsx - Task inbox
frontend/src/pages/InboxPage.tsx - Study log
frontend/src/pages/StudyLogPage.tsx - Progress view
frontend/src/pages/ProgressPage.tsx - Settings and data
frontend/src/pages/SettingsPage.tsx - API client
frontend/src/lib/api.ts
API and domain
- Express API
backend/src/app.ts - Authentication
backend/src/routes/auth.ts - Session guard
backend/src/middleware/auth.ts - Task lifecycle
backend/src/routes/tasks.ts - Subjects
backend/src/routes/subjects.ts - Overview and settings
backend/src/routes/overview.ts - Study log API
backend/src/routes/study-log.ts - Request validation
backend/src/lib/schemas.ts - Date and recurrence logic
backend/src/lib/dates.ts
Local persistence
- Prisma client
backend/src/db.ts - SQLite database
backend/prisma/schema.prisma
Other components
- Planner user
Connections 35
- Planner user → Sign-in screen: signs in
frontend/src/components/AuthScreen.tsx - Sign-in screen → API client: submits credentials
frontend/src/components/AuthScreen.tsx - App shell → API client: loads and updates
frontend/src/App.tsx - App shell → Sign-in screen: renders
frontend/src/App.tsx - App shell → Today plan: renders
frontend/src/App.tsx - App shell → Week plan: renders
frontend/src/App.tsx - App shell → Calendar plan: renders
frontend/src/App.tsx - App shell → Task inbox: renders
frontend/src/App.tsx - App shell → Study log: renders
frontend/src/App.tsx - App shell → Progress view: renders
frontend/src/App.tsx - App shell → Settings and data: renders
frontend/src/App.tsx - Task inbox → Task controls: renders
frontend/src/pages/InboxPage.tsx - Today plan → Task controls: renders
frontend/src/pages/TodayPage.tsx - Today plan → Task card: renders
frontend/src/pages/TodayPage.tsx - Week plan → Task card: renders
frontend/src/pages/WeekPage.tsx - Task editor → API client: sends task requests
frontend/src/components/TaskEditorDialog.tsx - API client → Express API: sends JSON requests
README.md - Express API → Authentication: routes auth
backend/src/app.ts - Express API → Task lifecycle: routes tasks
backend/src/app.ts - Express API → Subjects: routes subjects
backend/src/app.ts - Express API → Overview and settings: routes overview
backend/src/app.ts - Express API → Study log API: routes study log
backend/src/app.ts - Express API → Session guard: guards protected routes
backend/src/app.ts - Authentication → Session guard: creates sessions
backend/src/routes/auth.ts - Authentication → Request validation: validates credentials
backend/src/routes/auth.ts - Task lifecycle → Request validation: validates task input
backend/src/routes/tasks.ts - Task lifecycle → Date and recurrence logic: normalizes dates
backend/src/routes/tasks.ts - Authentication → Prisma client: reads and writes
backend/src/routes/auth.ts - Session guard → Prisma client: checks sessions
backend/src/middleware/auth.ts - Task lifecycle → Prisma client: reads and writes
backend/src/routes/tasks.ts - Subjects → Prisma client: reads and writes
backend/src/routes/subjects.ts - Overview and settings → Prisma client: queries planner data
backend/src/routes/overview.ts - Study log API → Prisma client: reads and writes
backend/src/routes/study-log.ts - Prisma client → SQLite database: persists data
README.md - Planner user → App shell: plans study
README.md