How dsabari688/bios works
BIOS is a personal productivity and life-management application spanning task, habit, goal, finance, diary, mood, analytics, and AI-assistant workflows. Users interact through the frontend, whose shared state coordinates local data and API-backed services; the backend exposes domain APIs and synchronization, while Piggy adds conversational assistance, actions, memory, and dashboard insights. The excerpts show selected frontend state/storage behavior, API routing, sync orchestration, and Piggy action execution. Many domain implementations are unsampled, so their internal calls are not inferred.
Main entry points: routes.ts HTTP API router · piggy.routes.ts Piggy endpoints · App.tsx BIOS interface · useStore.ts App state
Components 28
Client application
- BIOS interface
frontend/src/app/App.tsx - App state
frontend/src/store/useStore.ts - Task deferral
frontend/src/components/tasks/DeferModal.tsx - Error boundary
frontend/src/components/common/ErrorBoundary.tsx
Client data
- IndexedDB
frontend/src/db/database.ts - Habit repository
frontend/src/db/repositories/habitRepository.ts - Diary repository
frontend/src/db/repositories/diaryRepository.ts - API client
frontend/src/api/client.ts - Habit API
frontend/src/api/habits.api.ts - Local MCP tools
frontend/src/lib/mcpBridge.ts
Backend API
- HTTP API router
backend/src/routes.ts - Sync service
backend/src/sync/sync.controller.ts
Product domains
- Tasks
backend/src/modules/tasks - Habits
backend/src/modules/habits - Goals
backend/src/modules/goals - Expenses and budgets
backend/src/modules/expenses - Diary and moods
backend/src/modules/diary - Analytics
backend/src/modules/analytics
Piggy assistant
- Piggy endpoints
backend/src/piggy/piggy.routes.ts - Conversation intelligence
backend/src/piggy/PiggyIntelligence.ts - AI dashboard
backend/src/piggy/dashboard.service.ts - Safe action engine
backend/src/piggy/actionEngine.ts - Tool executor
backend/src/piggy/toolExecutor.ts - Assistant memory
backend/src/piggy/memory.ts - AI provider selection
backend/src/piggy/providers/index.ts
Other components
- User
- AI provider
- Backend service
Connections 28
- User → BIOS interface: uses
- BIOS interface → App state: renders state
frontend/src/app/App.tsx - BIOS interface → Task deferral: opens
frontend/src/app/App.tsx - BIOS interface → Error boundary: wraps
frontend/src/main.tsx - App state → Habit API: loads habits
frontend/src/store/useStore.ts - App state → Local MCP tools: executes tools
frontend/src/store/useStore.ts - App state → IndexedDB: persists data
- Habit repository → IndexedDB: stores habits
frontend/src/db/repositories/habitRepository.ts - Diary repository → IndexedDB: stores entries
frontend/src/db/repositories/diaryRepository.ts - Habit API → API client: sends requests
frontend/src/api/habits.api.ts - API client → Backend service: requests data
frontend/src/api/client.ts - Backend service → HTTP API router: routes requests
- HTTP API router → Tasks: routes tasks
backend/src/routes.ts - HTTP API router → Habits: routes habits
backend/src/routes.ts - HTTP API router → Goals: routes goals
backend/src/routes.ts - HTTP API router → Expenses and budgets: routes expenses
backend/src/routes.ts - HTTP API router → Diary and moods: routes diary and moods
backend/src/routes.ts - HTTP API router → Analytics: routes analytics
backend/src/routes.ts - HTTP API router → Sync service: routes sync
backend/src/routes.ts - HTTP API router → Piggy endpoints: routes assistant
backend/src/routes.ts - Sync service → Backend service: processes sync
- Piggy endpoints → Conversation intelligence: serves conversations
backend/src/piggy/piggy.routes.ts - Piggy endpoints → AI dashboard: loads dashboard
backend/src/piggy/piggy.routes.ts - Piggy endpoints → Tool executor: executes tools
backend/src/piggy/piggy.routes.ts - Piggy endpoints → Assistant memory: reads memory
backend/src/piggy/piggy.routes.ts - Piggy endpoints → AI provider selection: gets provider
backend/src/piggy/piggy.routes.ts - AI provider selection → AI provider: selects provider
- Safe action engine → Tool executor: executes actions
backend/src/piggy/actionEngine.ts