How shaeekhkushal/lifeos works
LifeOS is a local-first personal tracking app: users sign in, navigate a workspace, record and review life data, and persist it in a project-local SQLite database. The documented flow runs from the workspace through domain operations and a client cache/HTTP adapter to authenticated API handlers and per-user storage. The README documents major product areas not fully shown in sampled source; those branches are included, but their internal call paths are not inferred beyond documented relationships.
Main entry points: page.tsx Workspace navigation · data-service.ts Domain operations · route.ts Authentication API · ModuleView.tsx Configured tracking
Components 19
Workspace
- Workspace navigation
lifeos-app/src/app/page.tsx - Sign-in screens
lifeos-app/src/components/AuthView.tsx
Tracking domains
- Overview dashboard
lifeos-app/src/components/FeatureViews.tsx - Finance tracking
lifeos-app/src/components/FeatureViews.tsx - Habit tracking
lifeos-app/src/components/FeatureViews.tsx - Goal tracking
lifeos-app/src/components/FeatureViews.tsx - Task tracking
lifeos-app/src/components/FeatureViews.tsx - Configured tracking
lifeos-app/src/components/ModuleView.tsx - Tracking reports
lifeos-app/src/components/ModuleView.tsx - Profile and settings
lifeos-app/src/components/FeatureViews.tsx
Application services
- Domain operations
lifeos-app/src/lib/data-service.ts - Client cache
lifeos-app/src/lib/storage.ts - Record types
lifeos-app/src/lib/types.ts - Date and currency helpers
lifeos-app/src/lib/utils.ts
Server and persistence
- Authentication API
lifeos-app/src/app/api/auth/route.ts - Records API
lifeos-app/src/app/api/data/route.ts - Session and password checks
lifeos-app/src/lib/server/auth.ts - SQLite records and accounts
lifeos-app/src/lib/server/database.ts
Other components
- Signed-in user
Connections 28
- Signed-in user → Workspace navigation: uses
README.md - Workspace navigation → Sign-in screens: renders
lifeos-app/src/app/page.tsx - Workspace navigation → Authentication API: restores session
lifeos-app/src/app/page.tsx - Sign-in screens → Authentication API: authenticates
- Workspace navigation → Overview dashboard: selects view
lifeos-app/src/app/page.tsx - Workspace navigation → Finance tracking: selects view
lifeos-app/src/app/page.tsx - Workspace navigation → Habit tracking: selects view
lifeos-app/src/app/page.tsx - Workspace navigation → Goal tracking: selects view
lifeos-app/src/app/page.tsx - Workspace navigation → Task tracking: selects view
README.md - Workspace navigation → Configured tracking: selects view
README.md - Workspace navigation → Profile and settings: selects view
README.md - Overview dashboard → Domain operations: reads summaries
README.md - Finance tracking → Domain operations: uses operations
lifeos-app/src/components/FeatureViews.tsx - Habit tracking → Domain operations: uses operations
lifeos-app/src/components/FeatureViews.tsx - Goal tracking → Domain operations: uses operations
lifeos-app/src/components/FeatureViews.tsx - Task tracking → Domain operations: uses operations
README.md - Configured tracking → Domain operations: uses operations
- Configured tracking → Tracking reports: renders
README.md - Profile and settings → Domain operations: uses operations
- Domain operations → Client cache: reads and writes
lifeos-app/src/lib/data-service.ts - Domain operations → Record types: uses types
lifeos-app/src/lib/data-service.ts - Domain operations → Date and currency helpers: uses helpers
lifeos-app/src/lib/data-service.ts - Client cache → Records API: sends actions
lifeos-app/src/lib/storage.ts - Workspace navigation → Domain operations: loads user data
lifeos-app/src/app/page.tsx - Authentication API → Session and password checks: checks session
lifeos-app/src/app/api/auth/route.ts - Records API → Session and password checks: checks session
lifeos-app/src/app/api/data/route.ts - Authentication API → SQLite records and accounts: manages accounts
lifeos-app/src/app/api/auth/route.ts - Records API → SQLite records and accounts: reads and writes records
lifeos-app/src/app/api/data/route.ts