How immagiov4/nous works
Nous Reader is an AI-powered learning product: learners provide documents or researched topics and receive personalized courses, lessons, reflection prompts, and application exercises with AI feedback. The principal flow runs from the reader/library interface through backend course and lesson workflows to persisted projects and generated learning content. The graph also shows project storage, AI-provider access, and lesson playback as separate capabilities. Some connections are supported only by README statements or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: createWorkspaceController.ts Workspace controls · server.ts HTTP API server · openRouterProxy.ts AI provider proxy · courseGenerationWorkflow.ts Course generation
Components 19
Reader experience
- Reader and library
apps/web/components/library/LibraryScreenContainer.tsx - Workspace controls
apps/web/hooks/workspace/controller/createWorkspaceController.ts - Project library state
apps/web/hooks/library/useProjectLibrary.ts - Web authentication
apps/web/services/auth/supabaseAuth.ts - Project repository client
apps/web/services/projects/projectRepository.ts
Course generation
- Course generation
apps/backend/src/workflows/courseGenerationWorkflow.ts - Research source planning
apps/backend/src/services/researchSourceRouting.ts - Lesson generation
apps/backend/src/workflows/lessonGenerationWorkflow.ts - Lesson generation stages
apps/backend/src/workflows/lessonGenerationStageServices.ts - Prior-knowledge diagnostics
apps/backend/src/workflows/courseDiagnosticWorkflow.ts - Lesson playback
apps/backend/src/workflows/lessonPlaybackWorkflow.ts
Backend platform
- HTTP API server
apps/backend/src/server.ts - Workflow runtime
apps/backend/src/workflows/runtime/workflowRuntimeComposition.ts - Workflow worker
apps/backend/src/workflows/runtime/workflowRuntimeWorker.ts
AI and storage
- Project storage
apps/backend/src/projects/postgresProjectStore.ts - AI model configuration
apps/backend/src/config/modelConfig.ts - AI provider proxy
apps/backend/src/routes/openRouterProxy.ts
Other components
- Learner
- AI providers
Connections 20
- Learner → Reader and library: uses
README.md - Reader and library → Workspace controls: opens learning
- Workspace controls → Course generation: starts generation
- Workspace controls → Lesson generation: requests lesson
- Workspace controls → Prior-knowledge diagnostics: requests diagnostic
- Workspace controls → Lesson playback: requests playback
- Project library state → Project repository client: uses
apps/web/hooks/library/useProjectLibrary.ts - Project library state → Web authentication: uses
apps/web/hooks/library/useProjectLibrary.ts - Project repository client → HTTP API server: uses server API
README.md - HTTP API server → Workflow runtime: starts runtime
apps/backend/src/server.ts - HTTP API server → Project storage: provides store
apps/backend/src/server.ts - Course generation → Research source planning: plans sources
- Research source planning → Course generation: generates course object
apps/backend/src/services/researchSourceRouting.ts - Lesson generation → Lesson generation stages: uses stages
apps/backend/src/workflows/lessonGenerationStageServices.ts - HTTP API server → AI provider proxy: registers routes
- AI provider proxy → AI model configuration: resolves provider
apps/backend/src/routes/openRouterProxy.ts - AI provider proxy → AI providers: streams requests
apps/backend/src/routes/openRouterProxy.ts - Workflow runtime → Workflow worker: runs workflows
- Workflow worker → Project storage: accesses project assets
apps/backend/src/workflows/runtime/workflowRuntimeWorker.ts - Learner → AI providers: may use assigned Codex
README.md