
"Can't git clone": how a single complaint turned into a global law repo with 1,800 stars
What it is A free repo that turns national laws into git history: when a law takes effect, that's one commit. You can look up the text on any given day, trace each word back to the law that wrote it, and plug it straight into Claude Code or Cursor.
Why it took off It was backed first by a long post that reached #1 on HN. Then it went live the same day in response to the top complaint in the comments, expanding the story from the US to the whole world. Finally, an X post with 250k views brought in nearly half the stars.
CHow you could ride it Don't build another legal repo. Take the same shape (vertical data that changes over time and that AI often gets wrong, turned into git plus MCP) and apply it to areas nobody is organizing, like tax law, standards, or platform policies. Write a long post that can hit HN first, then release the repo.
- Data (updated daily) · Repo created 2026-10-28 · 1,850 stars · 7 days +476
GitHub · stars Data 2026-10-31 → 2026-11-08 (9 days, 9 observations). Points before 10-28 come from deeply / archive backfill, not every day has one
A small legal AI company posted a long Hacker News article about "git for the US Code" and it hit #1. The top comment said the title was fraudulent because there was nothing to clone. Within 12 hours, using Claude Code, he built an open source "all the world's laws" repo and came back to the thread with the link. Two days later a big X account reposted it, and the repo gained 880 stars in one day. This piece covers what lexifina/global-law is, where its stars came from, and what someone who wants stars for their own open source project can copy from it, and what they can't.
One bad review
On Oct 28 2026 01:47 (UTC), user alansaber posted "Git for the US Code" on Hacker News, linking to a post on his company Lexifina's blog. The article describes turning the US Code into git history: each law taking effect is one commit, so you can see what any section looked like on any day and trace each word to the law that inserted it. The piece walks through the methodology, noting that 361 of 365 amendments could be reproduced word for word, and uses the COVID-era CARES Act raising bankruptcy limits as an example of why timing matters. The post reached 454 points and 267 comments that day and ranked #1 (HN, 11-06).
The top comment, from user octoberfranklin, was just one line:
Fraudulent title, you can't git-clone this.
Others said they couldn't find anywhere to try it, and some argued that this kind of thing shouldn't be done by a private company and should go into the public domain.
On 13:34 (UTC), lexifina/global-law was created on GitHub. The next morning, alansaber replied under that complaint with "Actually, you can now", linked the repo, and posted a few more comments in the thread. He also submitted a new post, "Git for All Global Law", which got only 1 points. Its only reply was "you already had a successful post yesterday" (HN, 11-06). The new post didn't take off, and the stars came from the comments on the original post and the reposts that followed.
What it is
A repo that turns national laws into git history, licensed CC0.
- Each country gets its own repo,
lexifina/<country>-law, with one commit per law taking effect, and the commit author is the law itself. global-law uses submodules to string them together into a single global timeline. - It also ships
law.py, which canshowthe text of a section on a given day,blamewhich law wrote a given line, anddiffversions. There's also a read-only MCP server with 18 tools that makes no network calls. The repo already includes.claude,.cursor,.vscode, and.codexconfigs, so after cloning, Claude Code or Cursor can look up statutes directly. - The repo itself says it was built in one day on Oct 28 with Claude Code: "design, code, and prose all produced by the model, with no changes to the legal text," and "not reviewed line by line by a lawyer" (REPRODUCE.md, quoted by LockerGnome).
It has grown fast. The 11-06 main repo has over 340k commits and 15k tags. The lexifina account has 700 public repos, most of them country, state, and city law repos created in bulk between 10-28 and 11-02 (GitHub, 11-06). Coverage is uneven: when LockerGnome wrote about it (10-31), Czechia, Spain, and Switzerland had entire codes, the US had only 9 titles, and the UK had a single special education law. Checking again 11-06, the China repo already has 172 national laws, and the criminal law has been committed amendment by amendment from the 1997 revision through Amendment (XII). It is still being filled in country by country with the model.
How the stars came
Daily new stars (trendshift, as of 11-06):
| Date | New stars | What happened |
|---|---|---|
| 10-28 | 0 | The long HN post hit #1; repo created that afternoon |
| 10-29 | +40 | Author replied in the HN thread with the link |
| 10-30 | +880 | X account @RoundtableSpace (Mario Nawfal) posted; ranked #10 on GitHub Trending overall and #1 on the HTML chart |
| 10-31 | +477 | LockerGnome (Chris Pirillo) published a long article |
| 11-01 | +192 | |
| 11-02 | +111 | |
| From ¥11-03 | 15–60 per day | Repost accounts on LinkedIn, Threads, Instagram, and Facebook are still sharing it |
Total: 1,834 stars and 173 forks on GitHub (11-06).
HN gave it credibility, not stars. On the day the article hit #1, the repo didn't exist yet. Afterward, nearly every repost mentioned that it had "ranked #1 on Hacker News."
Most stars came from one X post. The original post by @RoundtableSpace on 10-30 09:45 (UTC) read:
Someone is putting the law of every country into one git history… So you can see exactly what the law said on any date, and which law changed every word. It started with the US Code, which hit #1 on Hacker News… Free to use for anything, and perfect for feeding to an AI.
The post has 250k views, 4.3K likes, and 4.2K bookmarks (X, 11-06). Bookmarks and likes are close in number, which suggests many people saved it to feed to an AI later. That single day's +880 accounted for nearly half of the total stars. This account often posts "someone built an X" tech reposts; whether this one was paid promotion can't be verified.
Then the repost chain. LockerGnome's long article and Chris Pirillo's own X post came next, followed by LinkedIn posts saying "don't ever show this repo to a lawyer" and AI news accounts on Threads and Instagram. The headlines were all similar: "Free Westlaw alternative," "All the world's laws, perfect for AI." The author also posted "Using Claude to put global law into Git" on r/ClaudeAI. Its engagement isn't visible.
The fork rate is about 9.4%, which looks high, but the README says "fork it, ship it," and the submodule structure invites casual forking, so it shouldn't be read as proof many people are using it.
Who else is doing the same thing
"Putting laws in git" isn't a new idea.
| Project | Scale (GitHub, 11-06) | Compared with alternatives |
|---|---|---|
| bundestag/gesetze | 1,933 star | German federal laws, since 2012, now stopped being updated |
| legalize-dev/legalize-es | 1,974 star | Launched 2026-03; Spanish laws, one Markdown file per statute, one commit per revision. Its sibling German, French, Portuguese, Italian, and US repos from the same org got only 14–37 stars. |
| nickvido/us-code | 374 star | 美国法典,2026-04 上过两次 HN,42 分和 36 分 |
| Kohei-Wada/houritsu | 378 star | Japanese laws, launched 10-16, data from the e-Gov API |
| LawRefBook/Laws | 1.9k star | Chinese law database, current text only, no date-based lookup |
| Westlaw, LexisNexis, legislation.gov.uk | Industry standard | All let you view historical versions, but they're paywalled or only viewable in a web page. None have git or MCP. |
Two comparisons are worth noting. First, us-code: nearly the same thing, also on HN, but only reached 42 points and 374 stars. The difference was the article and the story. Second, legalize: the Spanish repo alone got close to 2,000 stars, but the same person's German and French repos never took off. So stars don't track how many countries you cover. They track which single moment gets seen by a lot of people.
What global-law adds beyond those is three things: the "whole world" story, word-level tracing back to a specific law, and an MCP that plugs straight into AI. The first one drove the stars; the other two gave people a reason to keep looking after they clicked.
Why it works
- Publish a solid long post first, then the code. Methodology, reproduction rates, and concrete examples are what get you to #1 on HN, and that endorsement is what every repost leaned on afterward.
- Fix the top complaint the same day, and make the story bigger. When the comments said "can't clone" and "shouldn't be private," the author released a CC0 open version the next day, and expanded from one country to the whole world.
- Make it a one-liner people can repost. "All the world's laws in one git repo" and "feed it to AI" needed almost no rewriting for repost accounts.
- Ride a real AI problem. The long post cited research showing models cite repealed old statutes, and accuracy rose from 24% to 87% with retrieval. "Any date" plus MCP hits that problem directly.
- Use the model to fill out coverage fast. Creating hundreds of country and region repos in a day is what made "the whole world" credible; then they filled in each country one by one.
If it were you
C. The playbook is worth learning, but building another "legal git repo" isn't worth it. The model is already filling in country by country, and Chinese, Spanish, German, and similar slots are already taken.
One-line take: what you can copy is the shape (vertical data in git + MCP + a long post that can reach #1 on HN), not the legal topic. The shape alone isn't enough: us-code did much the same thing and only got 374 stars.
Who it's for: developers who have a dataset nobody has organized, that changes over time, and that AI often gets wrong, and who can write a long, methodical article about it. Examples: tax rates and tax law by country, industry standards beyond ISO/IETF, drug label revisions over time, public company articles of association, open-source license version histories, and the revision history of platform developer agreements and privacy policies.
Who it's not for: people who want to redo the law library for another country (lexifina fills that faster, and already owns the "all countries" story); people who can set up a repo but won't write long-form posts (no article, no HN #1, no big account willing to repost); and people who want to build a commercial product on it (CC0 data, and the moat isn't in the data).
How to do it: pick one domain and first make one subject reproducible word for word, for example "every revision of a platform's developer agreement from v1 to today." One commit per revision, with blame and a read-only MCP, and put .claude and .cursor configs straight in the repo. Make the README's first screen say clearly what's covered and what isn't, before someone else points it out. Then use models to batch out the remaining subjects.
How to get users: follow its order. First publish the long article, built around one concrete "point in time" example (the day a clause changed, and how AI answered wrong before that). When you post to HN, the repo has to clone; don't wait for the comments to call you out. If the comments raise complaints, fix them the same day and post the link back. Then send a one-line version to X and LinkedIn accounts that specialize in "someone built X" posts. The Chinese version can follow the same order on V2EX and Jike.
When to move: don't rush. It's not a meme. The shape stays valid for a long time. But while "git + MCP, feed it to AI" still sounds new, it's best to ride it, ideally before the first half of 2027 is over.
Signs you've misread it: ① In November, two or three more "some dataset in git + MCP" repos appear, each also getting over a thousand stars. That would show the shape can earn stars on its own, without HN #1 or big accounts, so act right away and raise the grade. ② The reverse: repos like global-law where nobody really uses it (issues stuck in single digits, commits stopped in November). That would mean the stars came from bookmarkers, and following up only gets one-off stars. ③ Westlaw, LexisNexis, or a model vendor ships an official "look up statutes by date" MCP. Then this category has no new story left to tell.
Research notes: competitor table, acquisition evidence, full research report
- Competitors
Name Where Launched Scale How it differs from this one legalize-dev/legalize (legalize-es etc.) Open source 2026-03 legalize-es 1,974 stars, main repo 301 stars Also "one commit per revision," but one repo per country, with no global roll-up, word-level provenance, or MCP nickvido/us-code Open source 2026-03 374 stars, HN 42 points Only release point snapshots of the US Code, with no replay-and-verify by statute or provenance tracing bundestag/gesetze Open source 2012 1,933 star Germany only, and it stopped updating long ago Kohei-Wada/houritsu Open source 2026-10-16 378 star Japan only; data comes from the e-Gov API, with no MCP and no global narrative Legal Data Hunter Open source Not verified About 417 stars 110-country law data scraping scripts, with no revision history Westlaw / LexisNexis / legislation.gov.uk point-in-time Other Very early Industry standard Paid or just web pages, with no git and no MCP interface, and no word-level tracing back to legislation - Where users come from
- Verified Hacker News: founder alansaber posted "Git for the US Code" on 10-28, reaching 454 points / 267 comments, #1 that day. 10-29 then posted 5 global-law links back-to-back in the comments.
- Verified X big account: @RoundtableSpace posted on 10-30 09:45 UTC, with 250k views and 4.2K bookmarks, and +880 stars that day. Whether it was paid is unverified.
- Verified GitHub Trending: 10-30 overall chart #10,10-30 to 10-31, HTML chart #1 (trendshift)
- Verified Media and repost accounts: LockerGnome 10-31, Chris Pirillo X 11-03, LinkedIn, Threads, Instagram, Facebook githunt, daily.dev
- Verified Reddit: r/ClaudeAI and r/git both have posts (written by the founder). Engagement couldn't be pulled.
lexifina/global-law: all the world's law in one git repo
Data card: GitHub repo, created 2026-10-28, as of 2026-11-06 totals 1,819 stars / 171 forks (our GitHub snapshot); the GitHub API read 1,834 stars / 173 forks that day.
Bottom line
This is the acquisition asset of legal AI startup Lexifina. The path: first they posted the "Git for the US Code" article to HN and pushed it to #1 (454 points / 267 comments). The comments were full of complaints: "clickbait title, you can't git clone it," "can't find anywhere to try it." About 12 hours later the founder used Claude Code to expand the idea into "global law," open-sourced it as the CC0 repo, and posted the link back in the HN comments. A day later, X big account @RoundtableSpace (Mario Nawfal) reposted it, adding 880 stars that day, and it reached #10 on the GitHub Trending overall chart. Most of the stars after that came from the repost chain sparked by that X post.
What it is
- Each jurisdiction has its own repo,
lexifina/<country>-law, and one commit = one law taking effect. The commit author is that law. global-law uses submodules to bundle these per-jurisdiction repos into a single global timeline (README). - The tool
law.py show/blame/words/diff/lawscan pull the text of any provision as of any date, and trace line by line and word by word to the law that wrote it. It also ships a read-only MCP server with 18 tools. It makes no network calls, and once cloned, Claude Code, Cursor, VS Code, and Codex connect to it automatically. - License is CC0 (the legal texts follow the terms of each country's repo). The manifest lists 107 corpora, and
jurisdiction.jsoncovers 193 UN member states plus the EU (LockerGnome 2026-10-31). Coverage is very uneven: Czechia, Spain, Switzerland, Georgia, and Malta have whole codes. The US has only 9 titles of the US Code, and the UK only has special education law (README / LockerGnome). - REPRODUCE.md says the repo was built in one day by 2026-10-28 using Claude Code (Opus 5.5): "design and all code and prose were produced by the model, with no changes to the legal text," and "no lawyer has reviewed it line by line" (quoted via LockerGnome).
- The lexifina organization account already has 730 public repos, most of them country, state, or city law repos created in batches between 10-28 and 11-02 (GitHub API).
Growth timeline (daily data from trendshift.io/repositories/324474)
| Date | New stars | Event |
|---|---|---|
| 10-28 | 0 | 01:47 UTC founder alansaber posted "Git for the US Code" on HN → 454 points, 267 comments, #1 that day; 13:34 UTC the global-law repo was created |
| 10-29 | +40 | Around 01:25 alansaber replied in HN comments 5 times with "I've expanded this and made it publicly available > github.com/lexifina/global-law" (HN Algolia) |
| 10-30 | +880 | 09:45 UTC @RoundtableSpace posted, with 250k views, 4.3K likes, 4.2K bookmarks, and 559 reposts; #10 on the GitHub Trending overall chart and #1 on the HTML language chart |
| 10-31 | +477 | LockerGnome (Chris Pirillo) wrote a long post; HTML chart #1 |
| 11-01 | +192 | HTML chart #9 |
| 11-02 | +111 | HTML chart #19 |
| From ¥11-03 | 15–60 per day | 11-03 Chris Pirillo posted again on X (about the US Code article); repost accounts on LinkedIn / Threads / Instagram / Facebook are still sharing it |
The "11-01 single-day +657" on the data card is a timing artifact from our collection (the difference between the 10-31 and 11-01 snapshots). The real peak was on 10-30. The fork rate is about 9.4%, but mostly because the README says "fork it, ship it," and the submodule structure invites forks. Don't read it as usage.
Where users came from (evidence)
- HN (confirmed): the article "Git for the US Code" news.ycombinator.com/item?id=50268380, by alansaber, a long-time contributor to the Lexifina blog. Since 2025-12 he has posted more than a dozen lexifina.com/blog articles to HN, most scoring in single digits. This is the first one that took off. HN's role here was validation: most of the later X and media reposts mention "hit #1 on Hacker News."
- Negative HN feedback became the trigger for open-sourcing (confirmed): the top comments included "Fraudulent title, you can't git-clone this," "can't find anywhere to try it," and "this shouldn't be done by a private company, it belongs in the public domain." Within a day the founder released the global version as CC0, replying to comments one by one with the link.
- X big account (confirmed, main source): @RoundtableSpace's 10-30 post x.com/RoundtableSpace/status/2116104070029292024 matches the +880 that day. This account often posts "someone built X"-style repost content about tech and crypto. Whether it was a paid promotion is unverified. The post has 4.2K bookmarks, roughly on par with its likes, which suggests people saved it to come back to later.
- Secondary reposts (confirmed): LockerGnome (10-31, Chris Pirillo), Chris Pirillo's X post (11-03), LinkedIn "Do not show this repo to a lawyer" (Gurinderjeet Singh), Threads @theultronai / @somidotai, Instagram "Your AI Plug," Facebook githunt / sunnyaieng, reviewramble, daily.dev, sesamedisk. All of these are clickbait reposts with headlines like "free alternative to Westlaw" and "perfect to feed to AI."
- Reddit (posts confirmed, content not read): r/ClaudeAI "Using Claude to put all Global Law into Git" (posted by the founder, "I built this project with Claude Code") and r/git "Putting all world law on git." Reddit blocks scraping, so scores are unknown.
- Our local x-radar corpus has no Lexifina-related content, which suggests the spread on X was concentrated in one or two big accounts and didn't reach developer circles broadly.
Competitors
| Name | Form | Launched | Scale | How it differs from global-law |
|---|---|---|---|---|
| legalize-dev/legalize (+ country repos like legalize-es) | Open source | 2026-03 | legalize-es 1,974 stars, main repo 301, de/fr/pt/it/us etc. 14–37 stars (GitHub API) | Same idea, "one Markdown file per law, one commit per revision," and it was built over 7+ months. But it's one repo per country, each independent, with no global roll-up, no word-level provenance, and no MCP. The later country repos mostly never took off. |
| nickvido/us-code | Open source | 2026-03 | 374 stars; 2026-04 made it to HN twice, scoring 42 and 36 points | The US Code is committed by release point, with no "replay by statute, verify each provision" process |
| bundestag/gesetze | Open source | 2012 | 1,933 star | The origin of git-izing German federal law; it stopped updating long ago |
| Kohei-Wada/houritsu | Open source | 2026-10-16 | 378 star | Japanese law committed by revision, with data from the e-Gov API; single country |
| Legal Data Hunter (similar repo recommended by trendshift) | Open source | Not verified | About 417 stars | 110 scripts that scrape legal data from many countries, a data pipeline, not a version history |
| ahmeabd/italia-corpus, Vaquill-AI/open-india-law, victorhsieh/tw-law-corpus, etc. | Open source | 2013–2026 | 147–453 star | single-country corpora, no point-in-time queries |
| La Fabrique de la Loi (France) | Web | 2010 era | academic project | French bills turned into git with visualization; a commenter on HN mentioned it |
| Westlaw / LexisNexis / Fastcase, legislation.gov.uk "point in time", Cornell LII | commercial / official | Very early | Industry standard | All have historical versions, but they're paywalled or web-only. No git, no MCP interface, and no word-level tracing back to legislation. |
Bottom line: the "law + git" idea isn't new. It's been around since 2012, and Legalize had its own moment on 2026-03, with a single Spanish repo alone pulling in close to 2,000 stars. global-law is new in three ways: a global, all-countries-in-one narrative, word-level blame traced back to specific legislation, and an MCP built for AI to use directly.
Why it took off
- Good content first, code second: the US Code post was a long, methodical piece. 365 parts were revised and 361 parts were reproduced word for word, and it explained the timing problem with the CARES Act bankruptcy limits. It got the 1 spot on HN on the strength of that.
- Fixed the biggest complaint in the comments the same day: "can't clone it" and "shouldn't be private" led to CC0 open source the next day, and the scope jumped from the US to the whole world. That answered the criticism and made the story bigger.
- Headlines built for virality: "The world's laws in one git repo", "a free alternative to Westlaw", "feed it to AI". Repost accounts could share them with almost no rewriting. One X post with 250k views accounted for about half of total stars.
- Rode the timing problem in AI legal research: the blog cited TUM 2026 research showing models use repealed old provisions. Retrieval accuracy rose from 24% to 87% once dates were handled. MCP plus "any date" let Claude / Cursor users "clone and use it".
- Mass-produced with models: in one day Claude Code built 700+ repos for countries, states, and cities. The "193 countries" figure carried the story, even though most countries currently have only an empty directory and a list of data sources.
Differentiation, and whether that's why it took off
Compared with similar projects like Legalize, us-code, and houritsu, its differences are: a global submodule aggregation with an In-force date index (you can query "the world's law on a given day"), word-level tracing back to legislation, a read-only offline MCP, CC0, and a company's brand and HN backing behind it. What actually drove stars was the "global" story plus HN #1, along with a big X account repost. The technical differences (word-level blame, MCP) are what made the content hold up and gave big accounts a reason to share. The data coverage isn't much ahead of Legalize: the US has only 9 titles, and the UK has only one law.
How many people know about it
It spread a bit beyond a small circle: HN #1, an X post with 250k views, LockerGnome, and a pile of repost accounts. But star growth has fallen from 880/day to 15–20/day, and our X corpus shows almost no discussion. There's no revenue to speak of (CC0). Its business purpose is to funnel users to Lexifina's paid law firm workspace (web / mobile / Word / Claude / ChatGPT plugins).
Copycats
In our database and public searches, we found no project clearly copying it after 10-28. houritsu (10-16) and Legalize (2026-03) both came earlier, so they count as competitors, not copycats.
What to borrow
- The combo of "publish a methodical long post → push for the HN front page → open source the same day based on comment feedback → reply in the comments with the link" suits a B2B startup using open source for customer acquisition.
- Turn vertical data into "git + MCP" so AI coding tools can clone it and use it right away. The same shape could apply to regulatory text, standards, tax law, drug labels, and corporate bylaws.
- Using models to spin out hundreds of sub-repos in a day to prop up a "covers the whole world" story. But like it, be honest in the README about coverage, or it will get called out.
Still unclear
- Whether the @RoundtableSpace post was an organic repost or paid promotion (unverified).
- The popularity of the two Reddit posts (couldn't be retrieved).
- Real usage: clone counts, how many people use the MCP, whether it has brought paying law firms to Lexifina. None of this is known.
- Data quality: no lawyer has reviewed it, most countries are empty directories or only have the current version, and whether updates can be sustained is an open question.
Sources
- github.com/lexifina/global-law (README, GitHub API 2026-11-06)
- news.ycombinator.com/item?id=50268380; HN Algolia search for lexifina
- lexifina.com/blog/git-for-the-us-code
- trendshift.io/repositories/324474
- x.com/RoundtableSpace/status/2116104070029292024
- x.com/ChrisPirillo/status/2117433402018410580
- lockergnome.com/global-law-world-law-as-git-history/
- www.linkedin.com/posts/gurisaroy_do-not-show-this-repo-to-a-…
- github.com/legalize-dev, github.com/nickvido/us-code, github.com/Kohei-Wada/houritsu, github.com/bundestag/gesetze
- Our GitHub database repo_profile (2026-11-06)