How shark6slayer/zynova works
This repository is a React/Capacitor client paired with a FastAPI backend for an AI-enabled personal platform. The user enters through the app shell, authenticates through shared client state and the API client, then uses feature areas such as AI, chat, social, search, shopping, food, payments, and video. Backend routing dispatches requests to domain endpoints, which use shared database and service layers. The README is only a Vite template and documents no product capabilities; feature coverage comes from the source tree. Some UI-to-feature and endpoint-to-service links are not verified by excerpts, so they are omitted or marked unverified.
Main entry points: router.py API Router · client.py Mongo Database · App.tsx Application Entry · apiClient.ts API Client
Components 26
Client App
- Application Entry
src/App.tsx - App Shell
src/components/layout/AppShell.tsx - Auth State
src/context/AuthContext.tsx - App State
src/context/AppContext.tsx - Offline Sync
src/context/OfflineSyncContext.tsx - API Client
src/services/apiClient.ts - Offline Store
src/services/offlineStorage.ts
API Backend
- Backend API
backend/app/main.py - API Router
backend/app/api/router.py
Platform Domains
- AI Endpoint
backend/app/api/routes/ai.py - Auth Endpoint
backend/app/api/routes/auth.py - Chat Endpoint
backend/app/api/routes/chat.py - Conversations
backend/app/api/routes/conversations.py - Social Endpoint
backend/app/api/routes/social.py - Search Endpoint
backend/app/api/routes/search.py - Video Endpoint
backend/app/api/routes/videos.py - Food Endpoint
backend/app/api/routes/food.py - Shopping Endpoint
backend/app/api/routes/shopping.py - Payments Endpoint
backend/app/api/routes/payments.py - Notifications
backend/app/api/routes/notifications.py
Shared Infrastructure
- AI Engine
backend/app/services/ai_engine_service.py - Media Service
backend/app/services/media_service.py - Identity Service
backend/app/services/identity_service.py - Mongo Database
backend/app/database/client.py - AI Providers
backend/app/services/ai_providers.py
Other components
- User
Connections 33
- User → Application Entry: uses
- Application Entry → Auth State: provides state
src/App.tsx - Application Entry → Offline Sync: provides state
src/App.tsx - Application Entry → App State: provides state
src/App.tsx - Application Entry → App Shell: renders
src/App.tsx - Auth State → API Client: calls
src/context/AuthContext.tsx - App State → API Client: calls
src/context/AppContext.tsx - Offline Sync → Offline Store: reads queue
src/context/OfflineSyncContext.tsx - Offline Sync → API Client: replays actions
src/context/OfflineSyncContext.tsx - API Client → Backend API: sends requests
src/services/apiClient.ts - Backend API → API Router: mounts routes
backend/app/main.py - API Router → AI Endpoint: dispatches
backend/app/api/router.py - API Router → Auth Endpoint: dispatches
backend/app/api/router.py - API Router → Chat Endpoint: dispatches
backend/app/api/router.py - API Router → Conversations: dispatches
backend/app/api/router.py - API Router → Social Endpoint: dispatches
backend/app/api/router.py - API Router → Search Endpoint: dispatches
backend/app/api/router.py - API Router → Video Endpoint: dispatches
backend/app/api/router.py - API Router → Food Endpoint: dispatches
backend/app/api/router.py - API Router → Shopping Endpoint: dispatches
backend/app/api/router.py - API Router → Payments Endpoint: dispatches
backend/app/api/router.py - API Router → Notifications: dispatches
backend/app/api/router.py - AI Endpoint → AI Engine: calls
backend/app/api/routes/ai.py - AI Engine → AI Providers: selects provider
backend/app/services/ai_engine_service.py - AI Engine → Mongo Database: stores conversations
backend/app/services/ai_engine_service.py - Auth Endpoint → Mongo Database: reads and writes
backend/app/api/routes/auth.py - Chat Endpoint → Mongo Database: reads and writes
backend/app/api/routes/chat.py - Conversations → Mongo Database: reads and writes
backend/app/api/routes/conversations.py - Search Endpoint → Mongo Database: queries
backend/app/api/routes/search.py - Food Endpoint → Mongo Database: reads and writes
backend/app/api/routes/food.py - Video Endpoint → Media Service: uses media
- Social Endpoint → Media Service: uses media
- Search Endpoint → Identity Service: uses identity
backend/app/api/routes/search.py