How phani-stack/atlas works
Atlas is an adaptive-learning prototype: learners create a goal-based learning space, receive a roadmap and resources, then practice with a tutor that tracks progress. The React app calls a FastAPI backend; the backend exposes account, space, learning-path, and tutoring APIs. Generation and retrieval use dedicated services and infrastructure, with SQLite-backed repositories for users and spaces. The README describes a broader assessment-and-adaptation cycle; sampled files show tutor progress and answer operations, but do not establish every internal adaptation link, so those connections are omitted.
Main entry points: api.ts API client · App.tsx Application shell · main.py FastAPI app · learning_spaces.py Learning-space orchestration
Components 24
Learner interface
- Application shell
ui/src/App.tsx - Authentication UI
ui/src/components/AuthPage.tsx - Space creation UI
ui/src/components/modals/CreateSpaceModal.tsx - Roadmap view
ui/src/components/screens/PathScreen.tsx - Practice screen
ui/src/components/screens/PracticeScreen.tsx - API client
ui/src/lib/api.ts
API and identity
- FastAPI app
src/atlas/api/main.py - Account endpoints
src/atlas/api/auth_routes.py - Learning endpoint
src/atlas/api/routes.py - Space endpoints
src/atlas/api/spaces.py - Tutor endpoints
src/atlas/api/space_tutor.py
Learning generation
- Learning-space orchestration
src/atlas/learning_spaces.py - Roadmap generation
src/atlas/services/roadmap_service.py - Resource discovery
src/atlas/services/resource_service.py - Search providers
src/atlas/infrastructure/search/providers.py - Resource downloader
src/atlas/infrastructure/search/downloader.py
Tutoring and retrieval
- Tutor service
src/atlas/services/tutor_service.py - Knowledge index
src/atlas/infrastructure/knowledge/store.py - Groq model client
src/atlas/infrastructure/llm/groq_client.py
Persistence and providers
- Database facade
src/atlas/database.py - Space repository
src/atlas/repositories/space_repository.py - User repository
src/atlas/repositories/user_repository.py - SQLite database
src/atlas/core/config.py
Other components
- Learner
Connections 31
- Learner → Application shell: uses
ui/src/App.tsx - Application shell → Authentication UI: renders
ui/src/App.tsx - Application shell → Space creation UI: renders
ui/src/App.tsx - Application shell → Roadmap view: renders
ui/src/App.tsx - Application shell → Practice screen: renders
ui/src/App.tsx - Application shell → API client: loads spaces
ui/src/App.tsx - Authentication UI → API client: authenticates via
ui/src/components/AuthPage.tsx - Space creation UI → API client: creates space
ui/src/components/modals/CreateSpaceModal.tsx - Practice screen → API client: tutors via
ui/src/components/screens/PracticeScreen.tsx - API client → Account endpoints: calls auth routes
ui/src/lib/api.ts - API client → Learning endpoint: calls learning route
ui/src/lib/api.ts - API client → Space endpoints: calls space routes
ui/src/lib/api.ts - API client → Tutor endpoints: calls tutor routes
ui/src/lib/api.ts - FastAPI app → Account endpoints: registers
src/atlas/api/main.py - FastAPI app → Learning endpoint: registers
src/atlas/api/main.py - FastAPI app → Space endpoints: registers
src/atlas/api/main.py - FastAPI app → Tutor endpoints: registers
src/atlas/api/main.py - Learning endpoint → Learning-space orchestration: creates learning space
src/atlas/api/routes.py - Account endpoints → Database facade: reads and writes users
src/atlas/api/auth_routes.py - Learning-space orchestration → Roadmap generation: generates roadmap
- Learning-space orchestration → Resource discovery: finds resources
- Resource discovery → Search providers: searches providers
src/atlas/services/resource_service.py - Resource discovery → Resource downloader: downloads resources
src/atlas/services/resource_service.py - Roadmap generation → Groq model client: requests generation
src/atlas/services/roadmap_service.py - Tutor service → Knowledge index: uses index
src/atlas/services/tutor_service.py - Tutor service → Groq model client: requests model output
- Tutor endpoints → Tutor service: delegates tutoring
- Database facade → Space repository: delegates space data
src/atlas/database.py - Database facade → User repository: delegates user data
src/atlas/database.py - Space repository → SQLite database: stores space records
src/atlas/repositories/space_repository.py - User repository → SQLite database: stores user records