NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...2 min read

United States Code (federal laws) in Git

Share
NOW LET US Article – United States Code (federal laws) in Git

The entire United States Code is now available as a Git repository in Markdown format, allowing users to track legal changes using standard developer tools like git diff and git log.

The entire United States Code — every title, chapter, and section — stored as Markdown in a Git repository. Each commit represents a point-in-time snapshot of federal law, with git diff revealing exactly what changed between enactments.

Laws change. Understanding what changed and when has historically required navigating dense legal databases or reading legislative summaries written by someone else. Git solves this naturally:

  • git log — see the history of federal law from 2013 to present
  • git diff — see exactly what text changed between any two points in time
  • git blame — trace when a specific provision was added
  • Tags — jump to a specific Congress or year
uscode/
├── title-01-general-provisions/
│ ├── _title.md # Title metadata
│ ├── chapter-001-rules-of-construction.md
│ ├── chapter-002-acts-and-resolutions-...md
│ └── ...
├── title-02-the-congress/
├── title-03-the-president/
├── ...
└── title-54-national-park-service-and-related-programs/

53 titles of the United States Code, ~2,950 chapter-level Markdown files, ~60,400 sections with full statutory text, 13 commits spanning 2013–2025 (one per OLRC release point).

Each Markdown file includes YAML frontmatter with metadata (title number, chapter, heading, section count, source URL) and the full statutory text with cross-references, statutory notes, and amendment histories.

Every commit corresponds to an Office of the Law Revision Counsel (OLRC) release point — an official snapshot of the US Code as amended through a specific Public Law.

| Tag | Public Law | Year | Description | |---|---|---|---| | annual/2013 | 113-21 | 2013 | Earliest available OLRC snapshot | | congress/113 | 113-296 | 2014 | End of 113th Congress | | annual/2015 | 114-38 | 2015 | | | congress/114 | 114-329 | 2017 | End of 114th Congress | | annual/2017 | 115-51 | 2017 | | | congress/115 | 115-442 | 2019 | End of 115th Congress | | annual/2019 | 116-91 | 2019 | | | congress/116 | 116-344 | 2021 | End of 116th Congress | | annual/2021 | 117-81 | 2021 | | | annual/2022 | 117-262 | 2022 | | | congress/117 | 117-262 | 2022 | End of 117th Congress | | annual/2024 | 118-158 | 2024 | | | congress/118 | 118-158 | 2024 | End of 118th Congress | | annual/2025 | 119-73 | 2025 | Current (latest) |

# What changed in federal law between the 115th and 116th Congress?
git diff congress/115..congress/116 --stat
# Full text diff of Title 18 (Crimes) between 2019 and 2025
git diff annual/2019..annual/2025 -- uscode/title-18-crimes-and-criminal-procedure/
# When was a specific section last modified?
git log --oneline -- "uscode/title-18-crimes-and-criminal-procedure/chapter-044-firearms.md"
# How many files changed across the entire 12-year history?
git diff annual/2013..annual/2025 --stat | tail -1

All content is derived from the OLRC's official USLM XML release points. The XML is parsed and transformed to Markdown using us-code-tools. Cross-reference links point to the official OLRC website for the preliminary (prelim) edition.

Limitations: Coverage starts in 2013. Only codified law is included. Not all titles are positive law. Appendix titles are not yet included.

Roadmap: Web interface with cross-reference graph, bills as pull requests, roll call vote records, and full-text search.

The United States Code is a work of the US Government and is in the public domain (17 USC § 105). The tooling used to generate this repository is available under the MIT License.

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – Treating pancreatic tumours may have revealed cancer's master switch

dev-tools

Treating pancreatic tumours may have revealed cancer's master switch

A promising new drug called daraxonrasib has shown breakthrough results in treating pancreatic cancer, doubling median survival times. This achievement could pave the way for an entirely new class of cancer treatments.

NOW LET US Related – Leaving Mozilla

dev-tools

Leaving Mozilla

A poignant and candid reflection from a 15-year Mozilla veteran upon their departure. The author highlights the leadership's missteps in trying to emulate tech giants and urges Mozilla to return to its core values: community and uniqueness.

NOW LET US Related – Shepherd's Dog: A Game by the Most Dangerous AI Model

dev-tools

Shepherd's Dog: A Game by the Most Dangerous AI Model

A developer tested Anthropic's latest, supposedly 'too dangerous' AI model by asking it to build a long-held game idea in a single shot. The model succeeded, generating a complete 2,319-line game after a 45-minute reasoning session.

NOW LET US Related – Open source AI must win

dev-tools

Open source AI must win

If artificial intelligence becomes a utility rented only from a few closed institutions, humanity loses its operational freedom. Open-source AI is a vital infrastructure for the future of our digital society.

NOW LET US Related – Statement on US government directive to suspend access to Fable 5 and Mythos 5

dev-tools

Statement on US government directive to suspend access to Fable 5 and Mythos 5

The US government has issued an export control directive forcing Anthropic to suspend all access to its Fable 5 and Mythos 5 models due to national security concerns, a move the AI safety startup strongly disputes.

NOW LET US Related – Electric motors with no rare earths

dev-tools

Electric motors with no rare earths

Renault Group is pioneering the development of electrically excited synchronous motors (EESM) that eliminate the need for rare earth magnets, reducing dependency on global monopolies while driving efficiency and sustainability.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.