How pawansimha/cerebrokognit-infosysinternship-b3 works
CerebroKognit is an AI-assisted alarm and habit platform: users configure wake-up alarms, solve cognitive challenges to dismiss them, and track behavior and productivity. The product spans a web dashboard and an Expo mobile app backed by a FastAPI service. Its main runtime path is client requests through API routing into domain services and persistent user/alarm/challenge data; mobile also schedules alarms locally and synchronizes offline records. The README documents broader analytics, reporting, administration, and notification capabilities. Some subsystem links are omitted where the sampled source does not show their callers.
Main entry points: api Product API routes · main.py FastAPI application · App.js Mobile app shell · screens Alarm and challenge screens
Components 24
Client applications
- Mobile app shell
mobile/App.js - Alarm and challenge screens
mobile/src/screens - Mobile authentication
mobile/src/hooks/useAuth.jsx - Web app routing
web/src/App.jsx - Dashboard and product pages
web/src/pages - Web API client
web/src/utils/api.js
API and domain
- FastAPI application
backend/app/main.py - Product API routes
backend/app/api - Authentication routes
backend/app/api/auth.py - Authentication service
backend/app/services/auth.py - Server sync API
backend/app/api/sync.py - Reports and exports
backend/app/services/report_service.py
Adaptive intelligence
- Challenge engine
backend/app/services/challenge_service.py - Adaptive difficulty
backend/app/ai_engine/difficulty.py - Analytics and recommendations
backend/app/services/analytics_service.py - Habit scoring
backend/app/services/habit_scoring_service.py
Persistence and sync
- Offline sync engine
mobile/src/sync/syncEngine.js - Domain data models
backend/app/Models.py - SQL database
backend/app/database.py
Notifications and integrations
- Local alarm scheduling
mobile/src/notifications/scheduleAlarm.js - Notification services
backend/app/services/notification_service.py - Email integration
backend/app/integrations/email_sender.py
Other components
- Mobile user
- Web user
Connections 24
- Mobile user → Mobile app shell: uses
mobile/App.js - Mobile app shell → Alarm and challenge screens: navigates to
mobile/App.js - Alarm and challenge screens → Mobile authentication: uses auth
mobile/src/screens/ChallengeScreen.jsx - Mobile authentication → FastAPI application: requests API
mobile/src/hooks/useAuth.jsx - Alarm and challenge screens → Offline sync engine: reads cached data
mobile/src/screens/ChallengeScreen.jsx - Offline sync engine → Server sync API: pushes and pulls
mobile/src/sync/syncEngine.js - Mobile app shell → Local alarm scheduling: configures alarms
- Web user → Web app routing: uses
web/src/App.jsx - Web app routing → Dashboard and product pages: routes to
web/src/App.jsx - Dashboard and product pages → Web API client: requests data
- Web API client → FastAPI application: requests API
README.md - FastAPI application → Product API routes: registers routes
backend/app/main.py - Product API routes → SQL database: uses sessions
backend/app/api/alarms.py - Product API routes → Domain data models: queries models
backend/app/api/alarms.py - FastAPI application → Authentication routes: registers routes
backend/app/main.py - Authentication routes → Authentication service: uses
backend/app/api/auth.py - Challenge engine → Adaptive difficulty: uses difficulty
backend/app/services/challenge_service.py - Product API routes → Analytics and recommendations: requests analytics
backend/app/api/analytics.py - Product API routes → Habit scoring: requests scoring
- Product API routes → Challenge engine: serves challenges
- Product API routes → Server sync API: serves sync
- Product API routes → Notification services: serves notifications
- Product API routes → Reports and exports: serves reports
- Authentication routes → Email integration: sends messages
backend/app/api/auth.py