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:
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.
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.
Each chapter file follows this structure:
See ROADMAP.md for planned features including:
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 .
Built by nickvido and v1d0b0t .
Read the story: Every Law a Commit
Related Stories
Source: This article was originally published by Hacker News
Read Full Original Article →
Comments (0)
No comments yet. Be the first to comment!
Leave a Comment