One core, every client.
The backend is the product. A TypeScript package of plain functions answers every question, and the Alexa skill is a thin adapter that parses intents and formats speech. iPhone with Siri, Android and AI assistants plug into the same tools later, with no new business logic.
- searchStops(), getArrivals(), getAlerts() and getRoutes() for every client
- One interface per data type, so a new city or feed plugs in without touching the core
- Stop resolution from nicknames, location and direction history, with the assumption spoken back
- Each answer returns structured data and short speech; every number comes from provider data
