How whowon2/why-runner works
Why Runner is a programming-learning platform: learners practice and submit problems, take classroom lessons, and participate in contests; instructors create and review learning material. Submissions are processed by a separate Rust judge that grades test cases and applies exercise structural constraints. The tree also shows authentication, profiles, notifications, AI assistance, and personalization. The README is empty and most web routes/actions were not sampled, so those areas are represented as capabilities without guessed runtime links; judge and sampled component relationships have direct evidence.
Main entry points: tabs.tsx Profile activity · main.rs Judge worker · lessons.ts Lesson schema · runner.rs Code grading
Components 28
Learning workflows
- Problem practice
web/app/[locale]/problems/_components/workspace - Problem catalog
web/app/[locale]/problems - Classes and lessons
web/app/[locale]/classes - Lesson review
web/app/[locale]/classes/_components/lesson-review.tsx
Contests and profiles
- Contest workflows
web/app/[locale]/contests - User profiles
web/app/[locale]/user/_components/profile.tsx - Profile activity
web/app/[locale]/user/_components/tabs.tsx - User contests
web/app/[locale]/user/_components/my-contests.tsx - User problems
web/app/[locale]/user/_components/my-problems.tsx
Web platform
- Authentication
web/app/[locale]/auth/signin/page.tsx - Sign-in form
web/app/[locale]/auth/signin/_components/sign-in-tab.tsx - Sign-up form
web/app/[locale]/auth/signin/_components/sign-up-tab.tsx - AI assistance
web/lib/actions - Notifications
web/lib/actions/notifications - Theme preferences
web/providers/theme-tokens-provider.tsx - Theme storage
web/lib/themes/storage.ts
Submission judge
- Judge worker
judge/src/main.rs - Judge database client
judge/src/db.rs - Code grading
judge/src/runner.rs - Execution isolation
judge/src/isolate.rs - Structural checks
judge/src/constraints.rs - Judge data models
judge/src/models.rs
Persistent data
- Web data schema
web/drizzle/schema.ts - Lesson schema
web/drizzle/schemas/lessons.ts - Problem schema
web/drizzle/schemas/problems.ts - Submission schema
web/drizzle/schemas/submissions.ts - User schema
web/drizzle/schemas/users.ts
Other components
- Learner
Connections 16
- Authentication → Sign-in form: renders
web/app/[locale]/auth/signin/page.tsx - Authentication → Sign-up form: renders
web/app/[locale]/auth/signin/page.tsx - User profiles → Profile activity: renders
web/app/[locale]/user/page.tsx - Profile activity → User contests: renders
web/app/[locale]/user/_components/tabs.tsx - Profile activity → User problems: renders
web/app/[locale]/user/_components/tabs.tsx - User profiles → Profile activity: uses
web/app/[locale]/user/page.tsx - Theme preferences → Theme storage: reads and writes
web/providers/theme-tokens-provider.tsx - Judge worker → Judge database client: fetches jobs
judge/src/main.rs - Judge worker → Code grading: runs code
judge/src/main.rs - Judge worker → Structural checks: imports
judge/src/main.rs - Judge database client → Judge data models: uses models
judge/src/db.rs - Code grading → Execution isolation: uses isolation
judge/src/runner.rs - Code grading → Judge data models: uses models
judge/src/runner.rs - Lesson schema → Problem schema: references
web/drizzle/schemas/lessons.ts - Lesson schema → Submission schema: references
web/drizzle/schemas/lessons.ts - Lesson schema → User schema: references
web/drizzle/schemas/lessons.ts