The United States Federal Government has over 200,000 pages of federal regulations across ~150 main agencies, all of which can be found within the eCFR at https://www.ecfr.gov/. There is a public API for it. The goal of this project is to create a website to analyze Federal Regulations to allow for more digestible and actionable insights to be made on potential deregulation efforts across the government.
- Data ingestion from the eCFR API and storage in a local SQLite database and gzip-compressed XML snapshots.
- API endpoints for agencies, metrics, and refresh state.
- UI for reviewing agency metrics.
- Metrics implemented:
word_count(per agency)words_per_chapter(per agency)checksum(per agency)readability(Flesch Reading Ease)churn(custom metric): ratio of agency-referenced chapters whose content changed compared to the previous snapshot, best-effort based on available prior data.
- Go 1.25.6
go mod tidyThe server also serves the static website from ecfr-analytics/web.
cd ecfr-analytics
go build ./cmd/server
go run ./cmd/serverBy default it listens on http://localhost:8080.
- The server will kick off a background refresh on startup and then refresh daily.
- The initial download can take several minutes depending on network speed.
- Data is stored under
ecfr-analytics/data.
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
Released under the MIT License. © 2026 SarahUniverse

