Tools/lexifina/global-law

global-law

Git for Global Law: the law of every country as one git history, each country's record a submodule, every commit one law taking effect

2.1k ★+193/wkemergingPythonCreative Commons Zero v1.0 Universalnew this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Nov 2026

Lexifina put the world's statutes into git. Each country, state, city or court is its own repository where every commit is one law taking effect, so git blame shows which law wrote each line and you can read a provision as it stood on any date. The tools are CC0 (public domain); the law text sits in per-country repos under each publisher's terms.

You need git and Python 3.9. Clone shallow, add only the countries you need (the US repository alone is roughly 240 MB), then query with law.py or the bundled MCP server, which reads locally with no network calls. The README also advertises a hosted API, but the FAQ says there isn't one, so plan on running it locally.

This is a dataset with good tools, not an app. Solo: free, great for legal AI side projects. Small teams: free, pin the commit you cite. Larger teams: free, but read each country's LICENSE before shipping its text; Kenya's is non-commercial.

The catch: coverage is uneven and it is not an official source. Only about half its corpora carry dated history; the rest hold current text, laws as enacted, or just metadata. Lexifina itself says to check the official publisher before relying on anything.

Free vs Self-Hosted vs Paid

fully free

Free: The whole repository under CC0: the jurisdiction tree, manifest, law.py command-line tools, the local MCP server, tests and docs. Lexifina also hosts a free search page, a REST API and an MCP endpoint at global-law.lexifina.com with no account or key. The law text itself sits in each country's own repository under that publisher's terms; most official texts are free of copyright, but some are not (Kenya's publisher licenses CC BY-NC and asks for an agreement before bulk or AI use).

Self-hosted: git plus Python 3.9 or newer, standard library only. Clone with depth 1 and add countries one at a time; the US repository alone is roughly 240 MB. The first query indexes a corpus's history into a local cache, later ones are quick. To stay current, run git pull and git submodule update on a schedule.

Paid: Nothing for global-law. Lexifina's separate legal drafting workspace has Free ($0), Plus ($20/mo) and Individual ($200/mo) plans, which you do not need for this.

Free and public domain for the tools; check each country's license before using its law text in a commercial product.

What to do by team size

Solo
free
Small team
free; pin the repository commit you cite
Medium team
free
Large team
free; review each country's LICENSE and SOURCES before shipping its text in a product
Self-hosting ops:moderate

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
74/100 · B+
Adoption17/30
Maintenance25/25
Community7/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Organization account (726 public repos)

License: Creative Commons Zero v1.0 Universal

Tools and index are public domain under CC0; law text in each country repo carries that publisher's own terms.

Commercial use: ✓ Yes

About

Owner
Lexifina (Organization)
Stars
2,058
Forks
190

Explore Further

More tools in the directory