How begindtheseen/space works
ORBIT is a local-first GNC learning app, delivered in a browser or a thin Mac/Electron shell. The main workflow is to choose a curriculum module, learn its lessons, practice through runnable exercises, and recall with spaced reviews; progress and readiness guide what to study next. The graph also captures coding roadmaps and runtimes, speech, and desktop updates. Source excerpts and the README support the principal links; unsampled subsystems are included where documented, with their internal wiring left unspecified.
Main entry points: useLearner.tsx Learner context · App.tsx Routes and pages · Module.tsx Module study · curriculum Curriculum corpus
Components 25
App and shell
- App entry
src/main.tsx - Routes and pages
src/App.tsx - Desktop shell
desktop/main.js - Bundle updater
desktop/updater.js
Curriculum and study
- Curriculum corpus
src/curriculum - Lessons
src/curriculum/lessons - Module study
src/pages/Module.tsx - Recall review
src/pages/Review.tsx - Coding roadmaps
src/learn - Progress and mastery
src/pages/Progress.tsx
Learning engine
- Learner context
src/hooks/useLearner.tsx - Prerequisite graph
src/engine/graph.ts - Review scheduler
src/engine/scheduler.ts - Attempt processing
src/engine/apply.ts - Learner state
src/engine/state.ts - Local persistence
src/engine/store.ts
Code practice
- Embedded IDE
src/components/ide/Embed.tsx - Code execution
src/lib/run.ts - Practice terminal
src/lib/shell.ts
Device features
- Read aloud
src/hooks/useReadAloud.tsx - Neural voice
src/lib/voice/kokoro.ts - Backup export
desktop/backup.js
Other components
- Learner
- Compiler Explorer
- Hugging Face
Connections 30
- Learner → App entry: opens app
- App entry → Routes and pages: renders
src/main.tsx - Routes and pages → Learner context: provides state
src/App.tsx - Routes and pages → Module study: routes to
src/App.tsx - Routes and pages → Recall review: routes to
src/App.tsx - Learner context → Local persistence: loads and saves
src/hooks/useLearner.tsx - Learner context → Curriculum corpus: loads modules
src/hooks/useLearner.tsx - Curriculum corpus → Prerequisite graph: builds graph
src/curriculum/index.ts - Curriculum corpus → Lessons: attaches lessons
src/curriculum/index.ts - Module study → Curriculum corpus: presents modules
- Module study → Embedded IDE: opens exercises
- Module study → Recall review: starts recall
- Learner context → Review scheduler: derives due count
src/hooks/useLearner.tsx - Learner context → Prerequisite graph: derives readiness
src/hooks/useLearner.tsx - Learner context → Attempt processing: applies attempt
src/hooks/useLearner.tsx - Attempt processing → Learner state: updates state
src/engine/apply.ts - Recall review → Learner context: grades recall
src/pages/Review.tsx - Review scheduler → Prerequisite graph: checks prerequisites
src/engine/scheduler.ts - Review scheduler → Learner state: reads topic state
src/engine/scheduler.ts - Progress and mastery → Learner context: shows progress
- Coding roadmaps → Embedded IDE: runs lessons
- Embedded IDE → Code execution: runs code
- Code execution → Practice terminal: runs terminal
- Code execution → Compiler Explorer: compiles remotely
- Learner → Read aloud: requests speech
- Read aloud → Neural voice: uses neural voice
src/hooks/useReadAloud.tsx - Neural voice → Hugging Face: downloads model
- App entry → Desktop shell: detects shell
src/main.tsx - Desktop shell → Bundle updater: resolves bundle
desktop/main.js - Learner → Backup export: exports data