Spanish legislation as a Git repo
github.com
Spanish legislation as a Git repo
1–10 of 246 posts
Re: Spanish legislation as a Git repo
#2The idea: legislation is just patches on patches on patches. Git already solves this. Instead of reading "strike paragraph 3 and replace with...", you get an actual diff.
The repo is the product. Browse any law, git log to see its full reform history, git diff to see exactly what changed.
Built the pipeline in ~4 hours with Claude Code. Source is BOE (Spain's official gazette) consolidated legislation API.
Exploring whether there's a business here — structured legislation API for legaltech/compliance, or just a useful open dataset. Curious what HN would build with this data.
Re: Spanish legislation as a Git repo
#3I built a pipeline that converts all Spanish state legislation into version-controlled Markdown. Each law is a file, each reform is a real git commit with the historical date. 8,642 laws, 27,866 commits. The idea: legislation is just patches on patches on patches. Git already solves this. Instead of reading "strike paragraph 3 and replace with...", you get an actual diff. The repo is the product. Browse any law, git…
Just thinking how this could maybe used for (automated) research / visualization on the evolution of (spanish - in this case) law
Re: Spanish legislation as a Git repo
#4Re: Spanish legislation as a Git repo
#5Re: Spanish legislation as a Git repo
#6Re: Spanish legislation as a Git repo
#7This is brilliant. I wish this were available for all legislations. There's so many inefficiencies that are trivially solved with existing tech frameworks.