HeadlinesBriefing favicon HeadlinesBriefing.com

GitHub Legalize-ES: Spanish Laws as Git Repository

Hacker News •
×

A developer has created legalize-es, a GitHub repository that transforms Spanish legislation into a version-controlled system using Git. Every law becomes a Markdown file, and each reform is tracked as a commit, creating a transparent history of legal changes since 1960. The project includes over 8,600 laws from Spain's Official State Gazette (BOE) open data API.

Users can explore the Spanish Constitution or any law through simple Git commands. For example, finding Article 135 of the Constitution is as easy as running a grep command, while tracking when it changed uses standard Git log functionality. The repository structure organizes laws by their BOE identifiers, with each file containing YAML frontmatter that includes publication dates, current status, and official source links.

The project serves as both a practical tool and an educational resource. Developers can clone the repository and immediately start exploring Spain's legal framework using familiar version control workflows. The system tracks every reform as an independent commit with official publication dates, making it possible to see exactly how laws have evolved over time. While the content comes from public domain government sources, the repository adds valuable structure, version control, and metadata that makes legal research more accessible to developers and researchers.