Why I built it
During the COVID-19 pandemic in 2021, exposure-site lists in Victoria were changing faster than anyone could realistically keep up with. The official process expected you to remember where you’d been, keep checking public announcements, and spot whether one of hundreds of venues and time windows overlapped with your own movements.
Uploading everyone’s location history to a central server would’ve made matching straightforward, though it would also have created a deeply sensitive database of where people went. Guardian started from a simple question: could the matching happen on the phone instead, without ever collecting that history centrally?
Keeping location history on the phone
Guardian split the public facts from private movements. The backend broadcast public exposure-site updates, while the comparison ran locally on each person’s device:
- With the user’s permission, the app logged relevant location history locally on the phone.
- A Laravel service checked Victoria’s public exposure-site feed every five minutes and normalised new locations.
- Firebase messaging pinged installed apps whenever the public list changed.
- Each phone checked the new venue and time window against its own local history.
- If there was a possible overlap, Guardian prompted the person to check official advice, get tested, and isolate as needed.
The server had to know that an exposure site existed. It didn’t need to know whether any particular person had been there.
What the prototype covered
I built all three parts needed to test the architecture end to end: a Flutter app for iOS and Android covering location permissions, background tracking, local history, exposure warnings, and controls to wipe recorded data; a Laravel API to ingest, cache, geocode, and publish public exposure sites; and a Next.js site explaining the privacy model and testing the idea with individuals, businesses, and government audiences.
I deliberately kept the app interface calm. Contact tracing was already stressful and cognitively heavy, so the screens focused on explaining permissions plainly, showing whether an overlap had been found, and making the next step clear without adding more panic.
Privacy as architecture, and where the limits sat
The core bet was putting privacy into the system architecture rather than burying it in a policy page. Location history stayed on the phone, users could inspect or delete it themselves, and the backend only ever pushed public data.
That design came with real practical constraints. Background location permissions are tough to handle cleanly, iOS and Android behave differently under the hood, and public exposure datasets weren’t always structured reliably for automated ingestion. As an independent prototype, Guardian also had to be explicit about its boundary: it wasn’t an official health service and couldn’t replace government advice.
Where it ended up
Guardian remained an archived 2021 prototype rather than a shipped public-health tool, with the source left up on GitHub.
Building it reinforced a habit I still carry into civic software: trustworthy products often start by deciding what data you refuse to collect. Centralising data makes the engineering easier while making the human problem much harder. It also showed how fast a technical prototype runs into questions of consent, accessibility, public communication, and institutional responsibility, even after proving you don’t have to trade privacy away just to get fast exposure alerts.
