How uditawasthi404/ka_iros works
Kairos is a personal memory product: people capture notes and media, then search saved material or ask questions about it. The mobile app is the primary experience, with a web client and authenticated NestJS API. The backend also supports Recall screen memory, projects, insights, notifications, and Pro entitlements. The graph preserves these documented product areas; where their implementation or wiring was not sampled, paths point to existing subsystem directories and uncertain relationships are omitted. Internal capture and retrieval details are shown only where source excerpts support them.
Main entry points: src NestJS API · prisma.service.ts Postgres database · observations.controller.ts Observation intake · search.service.ts Hybrid search
Components 22
Client experiences
- Mobile app
apps/mobile/app - Web app
apps/web/app - Search and library
apps/mobile/app/(app)/search.tsx
Capture and Recall
- Capture UI
apps/mobile/app/(app)/(tabs)/capture.tsx - OS capture tools
apps/mobile/modules/kairos-os - Observation intake
backend/src/observations/observations.controller.ts - Observation processing
backend/src/observations - Recall screen memory
apps/mobile/modules/kairos-recall - Recall API
backend/src/recall
Memory services
- Hybrid search
backend/src/search/search.service.ts - Embeddings
backend/src/embeddings/chunk-embedding.service.ts - Ask and RAG
backend/src/ask/ask.service.ts - Projects
backend/src/projects/projects.controller.ts - Insights and topics
backend/src/insights - File storage
backend/src/storage
Account and platform
- NestJS API
backend/src - Postgres database
backend/src/prisma/prisma.service.ts - Authentication
backend/src/auth - Pro entitlements
backend/src/entitlements - Notifications
backend/src/notifications
Other components
- Person
- RevenueCat
Connections 25
- Person → Mobile app: uses
README.md - Person → Web app: uses
README.md - Mobile app → NestJS API: uses API
README.md - Web app → NestJS API: uses API
README.md - Person → Capture UI: captures with
README.md - OS capture tools → Mobile app: opens capture
apps/mobile/modules/kairos-os/android/src/main/java/expo/modules/kairosos/KairosImeService.kt - Capture UI → Observation intake: submits capture
README.md - Observation intake → Observation processing: delegates
backend/src/observations/observations.controller.ts - Person → Recall screen memory: enables Recall
README.md - Recall screen memory → Recall API: uploads memories
- Person → Search and library: searches
README.md - Search and library → NestJS API: queries
README.md - Hybrid search → Embeddings: embeds query
backend/src/search/search.service.ts - Hybrid search → Postgres database: reads records
backend/src/search/search.service.ts - Embeddings → Postgres database: writes vectors
backend/src/embeddings/chunk-embedding.service.ts - Person → Ask and RAG: asks questions
README.md - Ask and RAG → Hybrid search: retrieves context
- Projects → Postgres database: manages projects
- Insights and topics → Postgres database: reads memory data
- Observation intake → File storage: stores files
- Person → Authentication: signs in
README.md - NestJS API → Authentication: protects routes
backend/src/observations/observations.controller.ts - Person → Pro entitlements: checks Pro access
README.md - Pro entitlements → RevenueCat: syncs purchases
README.md - Notifications → Person: sends updates