Web app · November 2026 – now · Solo · Live
Flathead Intel
What is proposed, approved and being built in the Flathead Valley, gathered from 14 public sources and put on one map. Every record links back to where it came from. My own project, not connected to any city or county office.
- Role
- Everything: research, design, code, operations
- Stack
- Next.js 16, React, TypeScript, Drizzle, MapLibre
- Data
- PostgreSQL with PostGIS on Supabase
- Testing
- 160+ tests, axe-core accessibility checks, a production smoke test
The idea
If you want to know what is being built near you in the Flathead Valley, the answer is spread across city planning pages, county map layers, state permit lists and highway project pages. Each has its own format, and none of them shows the others.
What I built
- One collector for many sources. Subdivisions, annexations, conditional use permits, building permits, state stormwater permits for construction sites, and highway projects, from Kalispell, Whitefish, Columbia Falls, Flathead County and the State of Montana.
- Raw records kept, entities derived. Every record is stored as the source published it, with a hash to detect changes. Projects and permits are built from those records, so a fix to the parsing can be re-applied without collecting again.
- A map and a list. Filters for place, type, status and date, with zoning and city limits as layers, and a zoning lookup for any address.
- Address matching. Permits that arrive with an address and no coordinates are placed against the county's 77,000 address points.
- An admin area. Source health, a "collect now" button, and a review queue for projects that may be the same development under two names.
Decisions worth explaining
- Say only what the source says. If a city does not state a project's status, the site shows "Status not stated" and does not guess.
- Privacy for homeowners. Residential permits are published without the owner's name, and a permit note that is only a person's name is left out.
- A polite collector. It reads each site's robots.txt before every run, identifies itself with a contact address, and spaces out its requests.
- Duplicates go to a person. Likely matches are queued for review and never merged automatically.
Status
Flathead Intel went live in November 2026 at flathead.codehawkmt.com with about 1,200 projects and more than 670 permits. It is new, so expect gaps: some permits have no map point because their address could not be matched.