How shoralbrt/ritocode works
Ritocode is a training platform for judging AI-written code in context. Learners browse tasks, inspect a project and its brief, diagnose findings, choose treatments, and review outcomes; the README describes this product workflow. The graph also preserves content authoring/ingest, accounts, administration, and feedback. Source excerpts show frontend routing and task-list requests, content loading and ingest, and authentication behavior. Most backend endpoint wiring and the task-submission path were not sampled, so those relationships are not asserted.
Main entry points: routes.tsx Page routing · Program.cs API host · TasksPage.tsx Task browsing · ContentIngest.cs Content ingest
Components 21
Learner experience
- Web application
frontend/src/App.tsx - Page routing
frontend/src/routes.tsx - Task browsing
frontend/src/pages/TasksPage.tsx - Task workspace
frontend/src/pages/task/TaskPage.tsx - Attempt review
frontend/src/pages/task/ReviewPage.tsx - Learner profile
frontend/src/pages/profile/ProfilePage.tsx - Admin pages
frontend/src/pages/admin
API platform
- API client
frontend/src/api/client.ts - Resource state
frontend/src/hooks/useApiResource.ts - Attempts and scoring
src/Modules/Ritocode.Modules.Attempts - Attempt storage
src/Modules/Ritocode.Modules.Attempts/Persistence/AttemptsDbContext.cs - API host
src/Ritocode.Api/Program.cs
Content lifecycle
- Content catalogue
src/Modules/Ritocode.Modules.Content/Catalogue/ContentCatalogue.cs - Content validation
src/Modules/Ritocode.Modules.Content/Format/ContentLoader.cs - Content ingest
src/Modules/Ritocode.Modules.Content/Ingest/ContentIngest.cs - Content storage
src/Modules/Ritocode.Modules.Content/Persistence/ContentDbContext.cs - Content authoring tools
src/Ritocode.ContentTool/Program.cs
Identity and operations
- Sign-in and sessions
src/Modules/Ritocode.Modules.Auth - User accounts
src/Modules/Ritocode.Modules.Users/Domain/User.cs - Feedback intake
src/Ritocode.Api/Feedback/FeedbackEndpoints.cs
Other components
- Learner
Connections 19
- Learner → Web application: uses
README.md - Web application → Page routing: renders routes
frontend/src/App.tsx - Page routing → Task browsing: routes to
frontend/src/routes.tsx - Page routing → Task workspace: routes to
frontend/src/routes.tsx - Page routing → Attempt review: routes to
frontend/src/routes.tsx - Page routing → Learner profile: routes to
frontend/src/routes.tsx - Page routing → Admin pages: routes to
frontend/src/routes.tsx - Task browsing → Resource state: loads through
frontend/src/pages/TasksPage.tsx - Task browsing → API client: requests tasks
frontend/src/pages/TasksPage.tsx - API client → API host: calls API
- API host → Attempts and scoring: dispatches requests
- Attempts and scoring → Attempt storage: reads and writes
src/Modules/Ritocode.Modules.Attempts/Contracts/TaskStatusLookup.cs - API host → Content catalogue: serves content
- Content ingest → Content validation: loads and validates
src/Modules/Ritocode.Modules.Content/Ingest/ContentIngest.cs - Content ingest → Content storage: writes content
src/Modules/Ritocode.Modules.Content/Ingest/ContentIngest.cs - Content authoring tools → Content validation: loads content
src/Ritocode.ContentTool/Program.cs - Content authoring tools → Content catalogue: exports catalogue
src/Ritocode.ContentTool/Program.cs - API host → Sign-in and sessions: configures authentication
- Sign-in and sessions → User accounts: uses accounts