How codiearyan/indent works
Indent is a local-first desktop coding-learning app. Learners browse story-based repositories, open an issue workspace, read a lesson, edit and run code, then submit checks that report results and update local progress. The map also includes the documented AI tutor, browser preview, algorithm-pattern lessons, catalog/roadmaps, and activity tracking. Some service internals and renderer-to-main wiring were not sampled; those relationships are shown only where the README or indexed source references support them.
Main entry points: WorkspacePage.tsx Issue workspace · App.tsx Desktop routes · checks.ts Check runner · progress.ts Progress records
Components 21
Learning experience
- Desktop routes
apps/desktop/src/renderer/src/App.tsx - Repo catalog
apps/desktop/src/renderer/src/features/catalog - Lessons and repos
packages/content - Pattern lessons
apps/desktop/src/renderer/src/features/dsa/registry.ts - Step player
apps/desktop/src/renderer/src/features/dsa/usePlayer.ts
Issue workspace
- Issue workspace
apps/desktop/src/renderer/src/features/workspace/WorkspacePage.tsx - Tasks and hints
apps/desktop/src/renderer/src/features/workspace/TaskItem.tsx - Code editor
apps/desktop/src/renderer/src/features/editor/CodeEditor.tsx - Real terminal
apps/desktop/src/renderer/src/features/terminal/TerminalPane.tsx - AI tutor
apps/desktop/src/renderer/src/features/ai/ChatPanel.tsx - Browser preview
apps/desktop/src/main/services/preview.ts
Local execution
- Preload IPC
apps/desktop/src/preload/index.ts - Check runner
apps/desktop/src/main/services/checks.ts - Hidden graders
packages/content/kit/run-check.mjs - Learner files
apps/desktop/src/main/services/workspaceFiles.ts - AI providers
apps/desktop/src/main/services/ai.ts
Progress and support
- Progress records
apps/desktop/src/main/services/progress.ts - Activity and levels
apps/desktop/src/renderer/src/features/progress - Issue completion
apps/desktop/src/renderer/src/features/completion/CompletionPage.tsx - Setup and settings
apps/desktop/src/renderer/src/stores/settings.ts
Other components
- Learner
Connections 22
- Learner → Desktop routes: uses
- Desktop routes → Repo catalog: routes to
apps/desktop/src/renderer/src/App.tsx - Desktop routes → Issue workspace: routes to
apps/desktop/src/renderer/src/App.tsx - Repo catalog → Lessons and repos: browses
- Issue workspace → Lessons and repos: teaches from
- Issue workspace → Tasks and hints: shows
- Issue workspace → Code editor: edits in
- Issue workspace → Real terminal: runs code in
- Issue workspace → AI tutor: offers
- Issue workspace → Browser preview: previews
- Desktop routes → Pattern lessons: routes to
apps/desktop/src/renderer/src/App.tsx - Pattern lessons → Step player: steps through
- Tasks and hints → Preload IPC: requests checks
- Preload IPC → Check runner: dispatches
apps/desktop/src/main/services/checks.ts - Check runner → Lessons and repos: loads chapter
apps/desktop/src/main/services/checks.ts - Check runner → Hidden graders: runs checks
- Check runner → Learner files: checks files
apps/desktop/src/main/services/checks.ts - Check runner → Progress records: records results
apps/desktop/src/main/services/checks.ts - AI tutor → AI providers: asks
- Progress records → Activity and levels: summarizes
- Progress records → Issue completion: informs
- Desktop routes → Setup and settings: checks setup
apps/desktop/src/renderer/src/App.tsx