Inspiration

Canada tests its sewage every week for COVID-19, flu and RSV. The Public Health Agency of Canada (PHAC) publishes the results, but as expert dashboards that almost nobody reads. Meanwhile families plan holiday dinners with grandparents and newborns, with no plain-language way to see what's circulating. I wanted a tool that is useful and honest about what wastewater data can't tell you, dressed as a plague doctor: the old figure who read the signs before anyone else.

What it does

Plague Doctor reads PHAC's weekly wastewater surveillance and turns it into something you can use, without pretending to predict the future.

  • The map. Every monitored community for COVID-19, Flu A, Flu B and RSV. A drifting fog thickens where PHAC reports higher activity, and the legend says it plainly: "Fog shows PHAC's activity level. It is not your risk." Nearby cities are nudged apart with leader lines, so every one stays clickable.
  • A city. PHAC's own classification, signal level and trend, the sample week, and how fresh that sample is. Every value has an i: open it to see the exact PHAC field, the snapshot ID, the source file and the rule used. Nothing is invented.
  • Honest gaps. "No data", "Not detected", newly onboarded sites (NA1), stopped sites (NA2) and "No monitoring site" are all different states. Ottawa has no site, so instead of guessing it offers Ontario's figure, clearly labelled provincial. Vancouver is covered by PHAC's Metro Vancouver site, and it says so.
  • All places. One sortable table, so you can see which communities are reporting the highest activity right now.
  • Plan a gathering. Five steps: where, when, setting, who, confirm. It never says an event is "safe". It shows what the water says near your date and how close that sample is, says "too early to know" when the event is more than three weeks away, and gives PHAC's practical precautions. Who's attending stays on your device and never goes into a link.
  • The Omen Card. A shareable card on parchment, sealed in wax, with the signal, the sample date, the sources and one line in the plague doctor's voice that describes the signal, never the risk. It can be downloaded as an image.
  • Behind the mask. The method, fully open: the sources, the three clocks (sample week, PHAC file updated, our last ingest), every definition and the attribution.

It is community surveillance, not personal risk, diagnosis or prediction.

How I built it

Spec-driven in Kiro. Kiro wrote the specs and the code; I reviewed.

  • 3 specs (data ingestion, evidence engine, interactive UI), each with requirements, design and tasks: more than 160 tasks, and numbered correctness properties in the designs.
  • 6 steering documents made the honesty rules part of every response: PHAC values verbatim, missing never shown as low, no forecasts, "week of", never "sampled on".
  • 3 agent hooks run the evidence tests, the ingestion tests and a wording guard on every save, so phrases like "safe to gather" can never reach the screen.
  • Nearly 600 tests, 146 of them fast-check property-based tests on real PHAC rows, plus Playwright and axe end-to-end checks on desktop, mobile and reduced motion.
  • Stack: Next.js 15, React 19, TypeScript strict, Zod, d3-geo, deployed on Vercel. Each deploy pulls fresh PHAC data.

Challenges

  • PHAC publishes two classifications (an activity index and a signal level) plus several different "unknown" codes. Every one had to stay distinct and never collapse into "low".
  • PHAC changed its CSV columns between 2025 and 2026, so ingestion detects the schema from the headers and refuses anything it doesn't recognise.
  • Early on, Kiro wrote a "real" test fixture with invented numbers. The steering rule "fixtures must be real PHAC bytes" caught it, and every fixture row is now verified against the source.
  • Outside reviews found real bugs after launch: overlapping map markers opened the wrong city, a card date used UTC, and a hidden layout bug added blank space below the footer. Each became a new spec task group that Kiro implemented.
  • Making a spooky design that never hides the data or its date. The fog, the wax seal and the mask reveal all carry meaning, and all respect reduced motion.

Accomplishments

  • Lighthouse on the landing page went from 49 to 93–95 (LCP 2.4 s), and accessibility scores 100.
  • The app never re-classifies PHAC data, and every statement on screen can be traced to its source.

What's next

A replay of last holiday season from archived PHAC files, "what changed since last week" on the Omen Card, and a French interface.

Data: Wastewater monitoring dashboard: Respiratory virus activity, Public Health Agency of Canada. Reproduced from health-infobase.canada.ca/wastewater; not an official version and not affiliated with PHAC. Educational project, not medical advice.

Built With

Share this project:

Updates

Submission history