How yadnyesh2906/lifeos works
LifeOS is a productivity app with a React Native frontend and a Spring backend. The visible task flow runs from the task screen through a hook to task services; sampled habit and authentication services persist data in platform storage. The backend exposes goal and reminder APIs, with the goal controller explicitly delegating to its service. The README calls the product AI-powered, but the supplied tree and excerpts do not show an AI subsystem. Backend implementation links and most frontend domain flows were not sampled, so those connections are omitted.
Main entry points: AuthContext.tsx Auth Context · serviceimpl Domain Services · storage.ts Platform Storage · tasks.tsx Task Screen
Components 19
Mobile App
- Task Screen
frontend/app/(tabs)/tasks.tsx - Habit Screen
frontend/app/(tabs)/habits.tsx - Auth Screens
frontend/app/(auth)/login.tsx - Auth Context
frontend/context/AuthContext.tsx - Other App Features
frontend/app/(tabs)
Client Data
- Task Hook
frontend/hooks/useTask.ts - Habit Hook
frontend/hooks/useHabit.ts - Task Service
frontend/services/taskService.ts - Habit Service
frontend/services/habitService.ts - Auth Service
frontend/services/authService.ts - Platform Storage
frontend/utils/storage.ts
Backend API
- Goal API
backend/src/main/java/com/lifeos/backend/controller/GoalController.java - Reminder API
backend/src/main/java/com/lifeos/backend/controller/ReminderController.java
Backend Core
- Goal Service
backend/src/main/java/com/lifeos/backend/service/GoalService.java - Reminder Service
backend/src/main/java/com/lifeos/backend/service/ReminderService.java - Domain Services
backend/src/main/java/com/lifeos/backend/serviceimpl - Data Repositories
backend/src/main/java/com/lifeos/backend/repository - Domain Entities
backend/src/main/java/com/lifeos/backend/entity
Other components
- App User
Connections 18
- App User → Task Screen: uses
frontend/app/(tabs)/tasks.tsx - Task Screen → Task Hook: calls
frontend/app/(tabs)/tasks.tsx - Task Hook → Task Service: uses
frontend/hooks/useTask.ts - App User → Habit Screen: uses
- Habit Screen → Habit Hook: uses
- Habit Hook → Habit Service: uses
frontend/hooks/useHabit.ts - Habit Service → Platform Storage: reads and writes
frontend/services/habitService.ts - Auth Screens → Auth Context: uses
- Auth Context → Auth Service: calls
frontend/context/AuthContext.tsx - Auth Context → Platform Storage: reads and writes
frontend/context/AuthContext.tsx - Auth Service → Platform Storage: reads and writes
frontend/services/authService.ts - App User → Goal API: requests
- Goal API → Goal Service: delegates to
backend/src/main/java/com/lifeos/backend/controller/GoalController.java - App User → Reminder API: requests
- Goal Service → Domain Services: implemented in
- Reminder Service → Domain Services: implemented in
- Domain Services → Data Repositories: uses
- Data Repositories → Domain Entities: persists