How candela-app/candela works
Candela is a multi-platform cognitive and vision-therapy product: patients play configurable therapy games, while clinicians review progress and administrators manage organizations and users. The repository also provides account and DocID linking workflows, persisted session analytics, announcements, and a gaze-tracking service. The README documents the shared backend and shared package across apps; source excerpts show selected API-to-service and service-to-storage calls. Many screens and game implementations are indexed but unsampled, so their internal wiring is not asserted.
Main entry points: src/app Web experience · candela-mobile/app Mobile experience · game-session.ts Session processing · games Mobile therapy games
Components 20
Patient and clinician apps
- Web experience
apps/candela-app/src/app - Mobile experience
apps/candela-mobile/app - Doctor workflows
apps/candela-app/src/app/doctor - Organization admin
apps/candela-app/src/app/super-admin
Therapy and analytics
- Web therapy games
apps/candela-app/src/components - Mobile therapy games
apps/candela-mobile/src/games - Game catalog
packages/shared/src/game-registry.ts - Game logic
packages/shared/src/game-logic.ts - Session metrics
packages/shared/src/session-metrics.ts - Session processing
packages/shared/src/game-session.ts
Shared backend
- Session API
apps/candela-backend/src/game-sessions/game-sessions.controller.ts - Session service
apps/candela-backend/src/game-sessions/game-sessions.service.ts - Relational database
apps/candela-backend/src/entities/game-session.entity.ts - Authentication
apps/candela-backend/src/auth/auth.service.ts - DocID linking
apps/candela-backend/src/docid/docid.service.ts - Organization API
apps/candela-backend/src/super-admin/super-admin.controller.ts - Announcements
apps/candela-backend/src/announcements/announcements.controller.ts
Gaze tracking
- Gaze tracking service
apps/candela-cv/main.py - Gaze tracker
apps/candela-cv/gaze_tracker.py
Other components
- Patient or clinician
Connections 24
- Patient or clinician → Web experience: uses
README.md - Patient or clinician → Mobile experience: uses
README.md - Web experience → Web therapy games: offers games
- Mobile experience → Mobile therapy games: offers games
- Web therapy games → Game catalog: uses catalog
- Mobile therapy games → Game catalog: uses catalog
apps/candela-mobile/src/games/NumberSearchGame.tsx - Mobile therapy games → Game logic: uses logic
- Session processing → Game catalog: validates modules
packages/shared/src/game-session.ts - Session processing → Session metrics: computes metrics
packages/shared/src/game-session.ts - Web experience → Session processing: shares code
README.md - Mobile experience → Session processing: shares code
README.md - Web experience → Session API: calls backend
README.md - Mobile experience → Session API: calls backend
README.md - Session API → Session service: dispatches
- Session service → Relational database: reads and writes
apps/candela-backend/src/game-sessions/game-sessions.service.ts - Doctor workflows → Web experience: reviews progress
- Organization admin → Organization API: manages organizations
apps/candela-backend/src/super-admin/super-admin.controller.ts - Organization API → Web experience: serves admin UI
- Web experience → DocID linking: uses DocID
- Mobile experience → DocID linking: uses DocID
- Web experience → Authentication: authenticates
- Mobile experience → Authentication: authenticates
- Web experience → Announcements: uses announcements
- Gaze tracking service → Gaze tracker: processes frames
apps/candela-cv/main.py