How cube-ball/hackathon works
StudyFlow is a student study-planning app: students enter tasks, fixed commitments, and chat requests; the planner updates the plan, schedules study sessions, and presents deadlines and a calendar. The Streamlit frontend can run with demo behavior or delegate actions to the Python backend. The backend also covers AI-assisted updates, calendar event formatting, saved plans, and paid update access. Edges reflect shown calls or SOURCE INDEX references; some backend internals and the documented-but-unsampled product branches are represented only where their connections are supported.
Main entry points: app.py StudyFlow app · bridge.py Action handling · billing.py Stripe billing · ai.py AI interpretation
Components 24
Student interface
- StudyFlow app
Frontend/app.py - Action planner
Frontend/services/planner.py - Demo plan data
Frontend/services/demo_data.py - Backend adapter
Frontend/backend_bridge.py - Coach chat
Frontend/ui/chat.py - Task editor
Frontend/ui/tasks.py - Commitment editor
Frontend/ui/commitments.py - Plan sidebar
Frontend/ui/sidebar.py - Week calendar
Frontend/ui/week_calendar.py - Calendar rendering
Frontend/ui/calendar_html.py - Schedule view
Frontend/ui/schedule.py
Planning backend
- Action handling
backend/bridge.py - Session scheduler
backend/scheduler.py - Demo student
backend/demo_student.py - Calendar events
backend/calendar_view.py
AI updates
- AI interpretation
backend/ai.py
Accounts and billing
- Billing endpoints
backend/app.py - Stripe billing
backend/billing.py - SQLite records
backend/store.py
Shared services
- Backend settings
backend/config.py - Time utilities
backend/timeutil.py
Other components
- Student
- Stripe
- OpenRouter
Connections 28
- Student → StudyFlow app: uses
Frontend/app.py - StudyFlow app → Action planner: dispatches actions
Frontend/app.py - StudyFlow app → Demo plan data: loads demo plan
Frontend/app.py - StudyFlow app → Coach chat: renders
Frontend/app.py - StudyFlow app → Task editor: renders
Frontend/app.py - StudyFlow app → Commitment editor: renders
Frontend/app.py - StudyFlow app → Plan sidebar: renders
Frontend/app.py - StudyFlow app → Week calendar: renders
Frontend/app.py - Action planner → Backend adapter: delegates actions
Frontend/services/planner.py - Backend adapter → Action handling: calls
Frontend/backend_bridge.py - Week calendar → Calendar rendering: uses
Frontend/ui/week_calendar.py - Action handling → Session scheduler: replans
backend/bridge.py - Action handling → AI interpretation: requests interpretation
backend/bridge.py - Action handling → Calendar events: gets calendar events
backend/bridge.py - Action handling → SQLite records: reads and saves
backend/bridge.py - Action handling → Stripe billing: creates upgrade links
backend/bridge.py - Action handling → Demo student: loads demo profile
backend/bridge.py - Week calendar → Backend adapter: requests week events
Frontend/ui/week_calendar.py - Session scheduler → Time utilities: uses time arithmetic
backend/scheduler.py - AI interpretation → Backend settings: reads settings
backend/ai.py - AI interpretation → Time utilities: uses time helpers
backend/ai.py - Billing endpoints → Stripe billing: handles checkout and webhooks
backend/app.py - Billing endpoints → SQLite records: queries account
backend/app.py - Stripe billing → SQLite records: records paid access
backend/billing.py - Stripe billing → Stripe: creates checkout
backend/billing.py - Stripe billing → Backend settings: reads payment settings
backend/billing.py - SQLite records → Backend settings: uses database path
backend/store.py - AI interpretation → OpenRouter: sends AI requests