How thecodedose/kdashboard works
Kindle Planner Dashboard is a self-hosted planner and home dashboard: people update lists through Telegram or the Kindle, while the Kindle displays planner, health, calendar, delivery, vacuum, and music information. Its cloud layer exposes dashboard and integration endpoints backed by per-owner InsForge data; an optional iOS companion uploads Apple Health summaries. The graph preserves documented capabilities, but several backend and native integration internals were not excerpted, so only documented or excerpt-supported relationships are connected.
Main entry points: kindle_dashboard.cpp Dashboard renderer · migrations Planner database · telegram-webhook.ts Telegram actions · HealthSyncClient.swift Upload client
Components 33
Kindle dashboard
- Dashboard renderer
kindle/native/src/kindle_dashboard.cpp - Narwal client
kindle/native/src/narwal_client.hpp
InsForge backend
- Planner database
migrations - Dashboard data
functions/kindle-dashboard-data.ts - Live events
functions/kindle-dashboard-events.ts - Item toggles
functions/kindle-dashboard-toggle.ts - Dashboard info
functions/kindle-dashboard-info.ts - Version checks
functions/kindle-dashboard-version.ts - Widgets
functions/kindle-dashboard-widgets.ts - Music endpoint
functions/kindle-dashboard-music.ts - Delivery summaries
functions/kindle-dashboard-orders.ts - Telegram actions
functions/telegram-webhook.ts - Apple Health upload
functions/health-sync.ts - Google Health sync
functions/google-health-sync.ts
Health companion
- Companion interface
ios/HealthSyncCompanion/HealthSyncCompanion/ContentView.swift - Sync coordinator
ios/HealthSyncCompanion/HealthSyncCompanion/SyncViewModel.swift - HealthKit reader
ios/HealthSyncCompanion/HealthSyncCompanion/HealthKitSyncService.swift - Upload client
ios/HealthSyncCompanion/HealthSyncCompanion/HealthSyncClient.swift - Sync configuration
ios/HealthSyncCompanion/HealthSyncCompanion/AppConfig.swift - Background sync
ios/HealthSyncCompanion/HealthSyncCompanion/AppDelegate.swift - Health data models
ios/HealthSyncCompanion/HealthSyncCompanion/HealthSyncModels.swift - iOS app entry
ios/HealthSyncCompanion/HealthSyncCompanion/HealthSyncCompanionApp.swift
External integrations
- Telegram user
- Telegram Bot API
- OpenAI
- Apple Health
- Google Health and Calendar
- Spotify
- Narwal vacuum
Native audio
- Spotify controls
kindle/native/src/spotify_control.c - Audio mixer
kindle/native/src/spotify_mixer.c - PCM audio
kindle/native/src/spotify_pcm.c
Other components
- Kindle user
Connections 40
- Kindle user → Dashboard renderer: uses
README.md - Dashboard renderer → Dashboard data: fetches dashboard
- Dashboard renderer → Item toggles: sends toggles
- Dashboard renderer → Live events: receives events
- Dashboard renderer → Dashboard info: requests info
- Dashboard renderer → Version checks: checks version
- Dashboard renderer → Widgets: loads widgets
- Dashboard renderer → Music endpoint: controls music
- Dashboard renderer → Delivery summaries: loads summaries
- Dashboard renderer → Narwal client: uses
kindle/native/src/kindle_dashboard.cpp - Narwal client → Narwal vacuum: controls locally
- Dashboard renderer → Spotify controls: dispatches controls
- Spotify controls → Audio mixer: mixes audio
- Audio mixer → PCM audio: outputs PCM
- Spotify controls → Spotify: controls playback
- Dashboard data → Planner database: reads planner data
README.md - Item toggles → Planner database: updates items
README.md - Live events → Planner database: streams updates
- Dashboard info → Planner database: reads info
- Version checks → Planner database: reads state
- Widgets → Planner database: reads widget data
- Music endpoint → Planner database: reads music state
- Delivery summaries → Planner database: reads summaries
- Telegram user → Telegram Bot API: sends updates
README.md - Telegram Bot API → Telegram actions: posts webhook
README.md - Telegram actions → Planner database: writes planner data
functions/telegram-webhook.ts - Telegram actions → OpenAI: parses optionally
functions/telegram-webhook.ts - Telegram actions → Telegram Bot API: sends confirmation
README.md - iOS app entry → Companion interface: presents
ios/HealthSyncCompanion/HealthSyncCompanion/HealthSyncCompanionApp.swift - Companion interface → Sync coordinator: invokes
ios/HealthSyncCompanion/HealthSyncCompanion/ContentView.swift - Background sync → HealthKit reader: starts observers
ios/HealthSyncCompanion/HealthSyncCompanion/AppDelegate.swift - Sync coordinator → HealthKit reader: fetches summaries
ios/HealthSyncCompanion/HealthSyncCompanion/SyncViewModel.swift - Sync coordinator → Upload client: uploads summaries
ios/HealthSyncCompanion/HealthSyncCompanion/SyncViewModel.swift - Upload client → Sync configuration: loads endpoint config
ios/HealthSyncCompanion/HealthSyncCompanion/HealthSyncClient.swift - HealthKit reader → Apple Health: reads aggregates
README.md - Upload client → Apple Health upload: posts summaries
README.md - Apple Health upload → Planner database: stores summaries
README.md - Health data models → Upload client: encodes payload data
- Google Health and Calendar → Google Health sync: syncs health data
- Google Health and Calendar → Dashboard data: provides calendar data