Vigil
An experiment: could AI turn outbreak news into an early warning?
What I was exploring
Outbreak news arrives as scattered bulletins and articles written in prose. I wanted to find out whether an AI model could reliably turn that into case counts, locations, deaths and links between patients, the slow manual work that buries the signals that matter.
So Vigil is a test bed: how early and how plainly could a tool like this say a situation had moved from ‘keep an eye on it’ to ‘act now’, and where would it get things wrong?
What I tried
- It polls several public outbreak feeds every 15 minutes and gives each item a stable ID, so nothing is fetched or processed twice after a restart.
- Sends each new item to an AI model once to extract cases, locations, outcomes, healthcare-worker infections and dates; results are cached on disk so the same text is never paid for twice.
- Scores every outbreak against a fixed list of warning signs (person-to-person spread, infected health workers, death rate over a set threshold, spread by travel) and rolls them up into Monitor, Elevated or Act.
- Fits a doubling time to the reported cases and draws a 30-day projection on the map, kept visually separate from confirmed cases.
- Keeps all data on the user's own machine, outside the source folder, and stores the API key encrypted in the operating system's keychain.
- Plain JavaScript in Electron with D3 for the map, with every part talking through one event bus.
What it does
- World map with numbered case nodes coloured by status, contact links between cases and travel arcs between cities.
- Click any case to see its exposure place, onset and report dates, transmission route and who it likely infected.
- Stats card with deaths, case fatality rate, recoveries, infected health workers and a per-case illness timeline.
- Early-warning panel that lists each criterion as triggered or clear and shows how close the outbreak is to the Act threshold.
- Timeline you can play to watch the outbreak spread day by day, then run on into the projected cases.
- Pathogen dossier and a live feed log showing what was extracted from each incoming item.
- Built as an experiment to learn from, not something to make health decisions with.
Built with Electron, JavaScript, D3, Claude API, RSS/Atom feeds, 2026.