How dave0428/tandaapplication works
TANDA is an offline-friendly bilingual guides-and-games app for Filipino seniors. Users browse or play on the phone, with read-aloud and voice controls; signed-in users can sync progress to an account, while the optional AI helper answers questions. The server also provides account and admin APIs. The graph includes the documented local-first sync and offline behavior. Frontend wiring beyond the shown excerpts is based on README descriptions; native plugin integration is not established by the sampled source.
Main entry points: events.js Tap and voice actions · server.js HTTP server · ui.js Screens · index.html TANDA app
Components 24
Phone app
- TANDA app
public/index.html - Screens
public/js/ui.js - Tap and voice actions
public/js/events.js - English and Tagalog
public/js/i18n.js - Read-aloud voice
public/js/voice.js - Local progress
public/js/state.js - Offline cache
public/sw.js
Guides and games
- Phone guides
public/js/tutorials.js - Five games
public/js/games.js - AI engine choice
public/js/ai.js - AI guidance
public/js/ai-glue.js
Server API
- API client
public/js/api.js - HTTP server
server/server.js - Accounts and auth
server/routes/auth.js - Progress and game results
server/routes/progress.js - AI proxy
server/routes/ai.js - Admin dashboard
public/admin.html - Admin management
server/routes/admin.js
Persistence
- Database adapter
server/db.js - Account and activity data
server/migrations
External services
- Anthropic API
- Claude artifact
- Phone platform
Other components
- Senior user
Connections 28
- Senior user → TANDA app: opens
README.md - TANDA app → Screens: loads screens
README.md - TANDA app → Tap and voice actions: loads actions
README.md - Senior user → Tap and voice actions: taps or speaks
public/js/events.js - Tap and voice actions → Screens: updates screens
public/js/events.js - Screens → Phone guides: shows guides
README.md - Screens → Five games: shows games
public/js/games.js - Screens → English and Tagalog: uses translations
README.md - Tap and voice actions → Read-aloud voice: controls speech
public/js/events.js - Tap and voice actions → Local progress: saves changes
README.md - Local progress → API client: requests sync
README.md - TANDA app → Offline cache: caches app files
public/sw.js - Tap and voice actions → AI engine choice: sends questions
public/js/events.js - AI engine choice → AI guidance: uses instructions
README.md - AI engine choice → Claude artifact: uses when available
README.md - AI engine choice → API client: uses server option
README.md - API client → HTTP server: calls API
README.md - HTTP server → Accounts and auth: mounts routes
server/server.js - HTTP server → Progress and game results: mounts routes
server/server.js - HTTP server → AI proxy: mounts routes
server/server.js - HTTP server → Admin management: mounts routes
server/server.js - Accounts and auth → Database adapter: reads and writes
server/routes/auth.js - Progress and game results → Database adapter: reads and writes
server/routes/progress.js - Admin management → Database adapter: reads and writes
server/routes/admin.js - Database adapter → Account and activity data: persists records
server/db.js - AI proxy → Anthropic API: requests answers
server/routes/ai.js - Admin dashboard → Admin management: uses admin API
README.md - Tap and voice actions → Phone platform: may invoke device actions