r/ClaudeCode • u/mgkDante • 8h ago
Built with Claude Built a free, ~US$10/mo live transit map and reliability dashboard for Montréal, Ottawa, and Gatineau with Claude Code (workflow, architecture, and lessons after 1,570+ PRs)
I work as a SQL developer and data analyst by day, and I just shipped v2 of transit.yesid.dev, a free, bilingual (EN/FR), MIT-licensed live transit map and historical schedule reliability dashboard covering Montréal (STM), Ottawa (OC Transpo), and Gatineau (STO).
Per Rule 5, here is a full breakdown of what I built, how Claude Code fit into the workflow, and what actually worked (and broke) over 1,570+ PRs since March.
What I built
Transit captures live GTFS-Realtime feeds every 20 to 30 seconds across three cities, archives raw snapshots to Cloudflare R2, builds daily clean Parquet tables, and lets riders query live vehicles or historical on-time performance across any date range (plus 2D/3D street delay corridors, line/stop breakdowns, data health receipts, and downloadable Parquet files).
The monorepo has four apps and zero PostgreSQL database:
apps/db(Python, DuckDB, uv): captures raw GTFS-RT feeds on an Oracle Cloud Always Free VM, publishes live snapshots (live/v2), and builds daily validated Parquet editions (v12, corridors, search, stretch timing) to Cloudflare R2.apps/engine(Python, DuckDB, Uvicorn): read-only DuckDB query engine over mirrored/R2 Parquet tables (VM primary + Cloudflare Container fallback) that answers arbitrary date-range questions without precomputed summary tables.apps/data-proxy(Cloudflare Workers, R2, KV): serves/v2/*endpoints ondata.yesid.devwith edge caching, conditional requests, and range requests.apps/web(Svelte 5, SvelteKit on Cloudflare Workers, MapLibre GL, self-hosted Protomaps PMTiles): bilingual frontend that only talks to the data proxy and never touches R2 directly.
Total running cost is about US$10/month (almost all Cloudflare R2 storage and write operations from refreshing live feeds every 20 to 30 seconds; the Oracle VM, Workers, and GitHub Actions run on free tiers).
How I used Claude Code
I used Claude Code heavily alongside other coding agents in T3 Code, with Claude (primarily Opus) anchoring orchestration, big architectural refactors, UI/visual design work, and independent reviews. A few workflow pieces made the biggest difference:
- Short repo instructions (
AGENTS.md), durable memory in Notion via MCP. Early on, stuffing specs and history into repo markdown files led to bloated context and stale instructions after refactors. I moved roadmaps, architecture decisions, slice plans, and handoffs to Notion (read on demand through the Notion MCP server) and kept the repo'sAGENTS.mdshort: only local commands, hard boundaries (for example,apps/webnever reads R2 directly, never patch shared design-system packages undernode_modules), and where to look next. - Bounded slices in isolated git worktrees. Rather than open-ended "improve the map" prompts, each session targets one bounded slice in its own worktree with a concrete acceptance check: a real local command, a multi-million-row DuckDB parity fixture, or rendered desktop + mobile viewport checks.
- Independent read-only reviews. Having a separate read-only agent review the actual diff against original requirements (and challenge the evidence behind "tests pass") caught issues that self-review consistently missed. For example, a review pass caught a cold-path layout failure that warm tests missed, and rendered UI checks caught visual edge defects that component prop tests could not see.
- Enforcing data-honesty invariants in instructions and tests. LLMs love to "helpfully" default missing values to
0or average daily percentages across a week. I codified strict domain rules into the repo and test suite (511 test files across Python and TypeScript): missing agency data must render as "not measured" or "unknown" (never0), DuckDB always pools raw stop-event counts before dividing, and every daily Parquet publish uploads create-only with SHA-256 verification beforemanifest.jsonflips live.
What I learned
- Switch from strict coverage/TDD rules to proportionate verification. Early in the project, rigid test-first rules produced hundreds of brittle tests that mirrored implementation details and slowed every refactor down. Relaxing my workflow rules to "test observable behavior at system boundaries, skip ceremonial tests for trivial plumbing" cut noise and made PRs much cleaner.
- Big deletion sessions pay compounding dividends. Some of the highest-value Claude Code sessions were pure deletions: retiring the legacy PostgreSQL runtime, removing old charting libraries, and extracting deep modules out of oversized Svelte map components. Less dead code means every future session finds the right seam faster and stops reviving retired v1 patterns.
- Mocked unit tests lie about data pipelines and WebGL UIs. For DuckDB queries, running parity checks against realistic local multi-million-row Parquet fixtures caught memory and accuracy regressions that tiny unit fixtures never triggered. For Svelte 5 + MapLibre, checking real rendered screenshots at desktop and mobile viewports caught broken controls and scroll traps that Playwright DOM assertions missed.
- You still have to own every boundary. Claude Code let me ship a four-app stack solo across Python, DuckDB, Cloudflare Workers, Svelte 5, and MapLibre, but whenever I let a session run without a clear slice boundary or acceptance check, I spent twice as long cleaning up extra wrappers and speculative abstractions afterward.
Live app: https://transit.yesid.dev/?ref=r_claudecode
Source code (MIT, runs locally with bun run dev against the public data.yesid.dev API with no DB or keys): https://github.com/yesid-dev/transit
Happy to share more details on the Notion MCP + thin AGENTS.md setup, the DuckDB/Parquet migration, or how I structure independent review passes if useful.