How apurvv28/samayvidya works
SamayVidya is an academic timetable management product. Coordinators configure academic resources and request generation through the role-based dashboard; the API invokes scheduling and validation, stores timetable versions, and exposes them for viewing, adjustment, analytics, and PDF export. The README documents the six-agent workflow and Bedrock-assisted planning, but the supplied excerpts do not expose every agent stage or the detailed router-to-service calls, so those links are documented rather than inferred from names. The map also preserves the role dashboards and supporting domain capabilities.
Main entry points: main.py FastAPI application · page.js Role dashboards · agent_routes.py Generation endpoints · timetable_critic_agent.py Schedule critic
Components 24
Role-based application
- Role dashboards
ui/app/dashboard/coordinator/page.js - UI authentication
ui/app/context/AuthContext.js - Timetable viewer
ui/app/components/Dashboard/TimetableViewer.js - Resource management
ui/app/components/Dashboard/ManageResources.js - Generation controls
ui/app/components/Dashboard/AgentOrchestrator.js
API and domain operations
- FastAPI application
backend/app/main.py - Authentication and roles
backend/app/dependencies/auth.py - Academic resources
backend/app/routers - Generation endpoints
backend/app/routers/agent_routes.py - Timetable versions
backend/app/routers/timetable_versions.py - Manual adjustments
backend/app/routers/slot_adjustments.py - Leave and events
backend/app/routers - Analytics and PDF
backend/app/routers - PDF export
backend/app/routers/pdf.py
Scheduling and validation
- Scheduling orchestrator
backend/app/services/timetable_orchestrator.py - Load planning
backend/app/services/load_management_agents.py - Schedule critic
backend/app/services/timetable_critic_agent.py - Constraint validation
backend/app/services/timetable_constraint_validator.py - Conflict audit
backend/app/services/timetable_conflict_audit.py - Issue resolution
backend/app/services/timetable_issue_resolver.py
Persistence and integrations
- Supabase access
backend/app/supabase_client.py - Supabase database
- AWS Bedrock
Other components
- Coordinator
Connections 28
- Coordinator → Role dashboards: uses
README.md - Role dashboards → Generation controls: opens generation
ui/app/dashboard/coordinator/page.js - Role dashboards → Resource management: manages resources
ui/app/dashboard/coordinator/page.js - Role dashboards → Timetable viewer: views schedules
ui/app/dashboard/coordinator/page.js - Role dashboards → UI authentication: uses identity
ui/app/dashboard/coordinator/page.js - Generation controls → FastAPI application: requests generation
README.md - Resource management → FastAPI application: manages resources
README.md - Timetable viewer → FastAPI application: loads schedules
README.md - FastAPI application → Authentication and roles: validates requests
backend/app/main.py - FastAPI application → Generation endpoints: routes generation
backend/app/main.py - FastAPI application → Timetable versions: routes versions
backend/app/main.py - Generation endpoints → Scheduling orchestrator: invokes scheduling
backend/app/routers/agent_routes.py - Generation endpoints → Load planning: uses load planning
backend/app/routers/agent_routes.py - Generation endpoints → Schedule critic: uses critic
backend/app/routers/agent_routes.py - Scheduling orchestrator → AWS Bedrock: plans passes
README.md - Scheduling orchestrator → Supabase database: reads and writes
backend/app/services/timetable_orchestrator.py - Schedule critic → Constraint validation: checks constraints
backend/app/services/timetable_critic_agent.py - Schedule critic → Conflict audit: audits conflicts
backend/app/services/timetable_critic_agent.py - Issue resolution → Constraint validation: rechecks fixes
backend/app/services/timetable_issue_resolver.py - Issue resolution → Schedule critic: consults critic
backend/app/services/timetable_issue_resolver.py - Timetable versions → Conflict audit: audits versions
backend/app/routers/timetable_versions.py - Timetable versions → Supabase access: accesses data
backend/app/routers/timetable_versions.py - Supabase access → Supabase database: connects
backend/app/supabase_client.py - Manual adjustments → FastAPI application: serves adjustments
backend/app/main.py - Leave and events → FastAPI application: serves domain APIs
backend/app/main.py - Analytics and PDF → FastAPI application: serves reports
backend/app/main.py - PDF export → Supabase access: reads timetable data
backend/app/routers/pdf.py - Analytics and PDF → PDF export: includes export
backend/app/routers/pdf.py