How annaarrrr/anar works
Anar is a goal-planning and personal-progress app: users onboard and authenticate, create goals, organize tasks, and track progress through chat, a journey map, and a vision board. The mobile frontend uses an API layer to reach authentication, goal, task, and AI-generation services; notification delivery is a separate capability. The README documents PostgreSQL-backed services and email/push notifications. Some frontend screens and service implementations were not sampled, so uncertain connections are omitted or marked dashed.
Main entry points: api.ts API client · App.tsx App navigation · generate.service.ts Generation logic · AuthService.cs Credential and token logic
Components 31
Mobile experience
- App navigation
frontend/App.tsx - Sign in
frontend/src/components/AuthScreen.tsx - Home
frontend/src/components/HomeScreen.tsx - Chat
frontend/src/components/ChatScreen.tsx - Journey map
frontend/src/components/JourneyMapScreen.tsx - Vision board
frontend/src/components/VisionBoardScreen.tsx - Progress view
frontend/src/components/ProgressScreen.tsx - Settings
frontend/src/components/SettingsScreen.tsx - Preferences context
frontend/src/context/AppContext.tsx - API client
frontend/src/services/api.ts
Identity
- Auth endpoints
backend/services/auth-service/Controllers/AuthController.cs - Credential and token logic
backend/services/auth-service/Services/AuthService.cs - JWT service
backend/services/auth-service/Services/JwtService.cs - User data context
backend/services/auth-service/Data/AppDbContext.cs
Goals and tasks
- Goal endpoints
backend/services/goal-service/src/goal/goal.controller.ts - Goal operations
backend/services/goal-service/src/goal/goal.service.ts - Goal repository
backend/services/goal-service/src/goal/goal.repository.ts - Task endpoints
backend/services/task-service/src/task/task.controller.ts - Task operations
backend/services/task-service/src/task/task.service.ts - Task repository
backend/services/task-service/src/task/task.repository.ts
AI generation
- Task generation endpoint
backend/services/ai-bridge-service/src/generate/generate.controller.ts - Generation logic
backend/services/ai-bridge-service/src/generate/generate.service.ts - Generation validation
backend/services/ai-bridge-service/src/generate/generate.validator.ts - Generation fallback
backend/services/ai-bridge-service/src/generate/generate.fallback.ts - Python AI API
ai-logic/main.py
Notifications
- Notification service
backend/services/notification-service/src/notification/notification.service.ts - Daily scheduler
backend/services/notification-service/src/scheduler/daily.corn.ts - Email provider
backend/services/notification-service/src/providers/email.providers.ts - Push provider
backend/services/notification-service/src/providers/push.providers.ts
Other components
- App user
- Mailpit catcher
Connections 35
- App user → App navigation: uses
frontend/App.tsx - App navigation → Sign in: renders
frontend/App.tsx - App navigation → Home: renders
frontend/App.tsx - App navigation → Chat: renders
frontend/App.tsx - App navigation → Journey map: renders
frontend/App.tsx - App navigation → Vision board: renders
frontend/App.tsx - App navigation → Progress view: renders
frontend/App.tsx - App navigation → Settings: renders
frontend/App.tsx - App navigation → Preferences context: provides context
frontend/App.tsx - Sign in → API client: uses API
frontend/src/components/AuthScreen.tsx - Home → API client: uses API
- Chat → API client: uses API
frontend/src/components/ChatScreen.tsx - Journey map → API client: uses API
frontend/src/components/JourneyMapScreen.tsx - Vision board → API client: uses API
frontend/src/components/VisionBoardScreen.tsx - Progress view → API client: uses API
- Settings → Preferences context: updates preferences
- API client → Auth endpoints: HTTP requests
- API client → Goal endpoints: HTTP requests
frontend/src/services/api.ts - API client → Task endpoints: HTTP requests
frontend/src/services/api.ts - API client → Task generation endpoint: requests generation
- Auth endpoints → Credential and token logic: calls
backend/services/auth-service/Controllers/AuthController.cs - Credential and token logic → User data context: reads and writes
backend/services/auth-service/Services/AuthService.cs - Credential and token logic → JWT service: creates token
backend/services/auth-service/Services/AuthService.cs - Goal endpoints → Goal operations: calls
backend/services/goal-service/src/goal/goal.controller.ts - Goal operations → Goal repository: uses repository
backend/services/goal-service/src/goal/goal.service.ts - Task endpoints → Task operations: calls
backend/services/task-service/src/task/task.controller.ts - Task operations → Task repository: uses repository
- Task generation endpoint → Generation logic: calls
backend/services/ai-bridge-service/src/generate/generate.controller.ts - Generation logic → Generation validation: validates with
backend/services/ai-bridge-service/src/generate/generate.service.ts - Generation logic → Generation fallback: falls back to
backend/services/ai-bridge-service/src/generate/generate.service.ts - Generation logic → Python AI API: requests AI
- Daily scheduler → Notification service: schedules
- Notification service → Email provider: sends email
- Notification service → Push provider: sends push
backend/services/notification-service/src/notification/notification.service.ts - Email provider → Mailpit catcher: delivers locally