lexifina/france-law
About
France: law history, one commit per law taking effect (sources so far) · Part of global law
Developer ToolsMeasured star growth
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalFrance: law history in git
English · Ou lisez-le en français
The law of France as a git history: one file per article, one commit for each text's changes on the day they took effect, and the text that made each change as the commit's author. git blame names the text behind every paragraph; git log lists every change to an article; picking a date gives the text in force that day.
Part of lexifina/global-law, one git history for every country's law: this is France's national law, which global-law reads at france/national/acts/.
What is in it now: consolidated law from LEGI as it stood on 2026-11-17 (the Constitution of 1958, 77 codes and 119,160 other texts in force, with every article version LEGI keeps); the Journal officiel as published (1.27 million texts, 1737–2026); collective agreements (KALI) and about 380,000 company agreements (ACCO); parliamentary records of the Assemblée nationale and the Sénat; ministerial circulars; CNIL decisions; and acts of local authorities published as open data (about 1.1 million, from some 2,400 authorities). Case law is in six separate repositories, listed in jurisprudence/; the folder plan is in data/layout.json.
The Constitution is in constitution/constitution-1958/, each code in codes/<code>/ (codes/code-du-travail/ is the Code du travail) and every other text in textes/<nature>/<year>/<nature>-<number>/ (textes/loi/1978/loi-78-17/ is the loi Informatique et Libertés of 6 January 1978). Each article is a file named after its number: article L. 3141-1 is L3141-1.md. With about 810,000 files, a bare clone (git clone --bare) is quicker, and the git commands below work in it.
The text is in French, as LEGI publishes it. An English translation is not part of this record.
Questions as git commands
| Question | Command |
|---|---|
| Every change to article L. 3141-1 of the Code du travail (paid leave) | git log -p --word-diff -- codes/code-du-travail/L3141-1.md |
| Which text wrote each line of article L. 3141-1? | git blame codes/code-du-travail/L3141-1.md |
| Every change to the Code du travail, with the day it took effect and the text that made it | git log --format="%h %(trailers:key=In-force,valueonly,separator=) %an" -- codes/code-du-travail |
| Article L. 3141-1 as in force on 1 January 2010 | python tools/en_vigueur.py 2010-01-01 code-du-travail L3141-1 |
Outside git, we also host this record publicly, for free:
- Ask Claude about French law: opens Claude with a first question ready.
- Ask ChatGPT: the same question in ChatGPT.
- Search French law on our site: a search for "congés payés", with each provision's text and its versions, no account needed.
- Developer REST API: the same search as JSON, with no key. See the documentation here.
Both assistants read the record through the free Global law connector (MCP, https://global-law.lexifina.com/mcp); the first time, the chat gives you the link that adds it. Ask in French or in English.
Host it yourself easily. All it takes is git and Python, and the tools run on your machine:
git clone --depth 1 https://github.com/lexifina/global-law && cd global-law
python3 tools/countries.py add france/national/acts
python3 tools/law.py show 2026-01-01 france/national/acts/codes/code-du-travail/L3141-1.md
Opened in Claude Code, Cursor, VS Code or Codex, the clone also starts a local MCP server with the same tools (MCP.md).
Dates
Each law commit is dated at noon, Europe/Paris, on the day its article versions took effect, and carries it in its In-force: trailer; the day the text was signed is in Signed:.
- The day is LEGI's own first day for each article version (DATE_DEBUT); versions LEGI marks as never in force are left out.
- An article version that ends with no successor is removed on its last day, in the commit of the text LEGI names as ending it, or else in a
Fin de vigueurcommit. - git cannot store dates before 1970, so the 6,097 earlier commits are dated from 1970-01-01 UTC, one second apart, with the real day in
In-force:. Ask for a date withtools/en_vigueur.py, notgit log --before. - Where LEGI's day is wrong (a mistyped year, a day before the text was signed), later commits name the version and the right day; published commits are not rewritten.
Each change is credited to the text that made it, as LEGI's links name it (Loi n° 2016-1088 du 8 août 2016): the linked text signed last on or before the day the version took effect. Where LEGI names none, it is credited to Légifrance (DILA), version consolidée (5,410 commits); data/credits.csv names the right text for versions LEGI files under the wrong one.
How it is checked
tools/check_repo.pytakes a series of days and compares, file for file and byte for byte, the tree in force each day with the article versions LEGI has in force that day.tools/test_repo.pychecks that blame, the dated tool andgit log --followwork, that every law commit carriesIn-force:, and that every law commit is credited to a text, never to Lexifina.REPRODUCE.mdgives every build step, with the archives' sha256 indata/archives.json; it says the same archives give the same commits with the same hashes. For the build of 2026-10-28 it records that neither check, nor a rebuild, was run.- vulnerabilities/: possible drafting mistakes in French law, found by global-law's detectors and checked by hand.
What it does not show
- Texts LEGI does not consolidate, and versions older than LEGI's. LEGI records each text from the version it first consolidated; its history of the oldest codes is fullest from the 1990s.
- Section headings (livres, titres, chapitres) and the order of a code's parts.
- Which words an amending text changed within an article: it is credited with the whole new version.
- Changes after 2026-11-17: LEGI's daily updates have been read up to that day.
- Case law. It is in six repositories of its own, which global-law reads beside this one (france/).
Sources
| Source | Kind | Past versions | Notes |
|---|---|---|---|
| LEGI (DILA), the data behind Légifrance | Consolidated national law: the Constitution, codes, lois, ordonnances, décrets, arrêtés | yes, every article version LEGI records | The full dump and its daily updates; the authentic text is the one published in the Journal officiel |
Licence
See LICENSE. The legal text and its history are LEGI's, reused under the Licence Ouverte 2.0 (Etalab), which asks that the source (DILA) and the date of its last update be cited; the tools and documentation are under the MIT License.
No AI model wrote or changed legal text; the builder, the tools and the documentation were written by an AI model (see REPRODUCE.md).
Visualisations
visualisations/: French law in 20 charts, drawn from this repository.
Including:
- The articles in force, the codes and how old their wording is
- The day each change takes effect, the Journal officiel and the finance laws
- Lois and ordonnances, the décrets that implement laws, and the revisions of the Constitution
More
From lexifina/global-law:
- FEATURES.md: every feature, and what every corpus must support (
git blame,law.py, the MCP tools) - FAQ.md: questions and answers · CONTRIBUTING.md: proposing changes · MCP.md: the MCP server · REPRODUCE.md: how it was built · CHANGELOG.md
- FRESHNESS.md: how current each corpus is · Monitoring: whether updates are running · WATCHING.md: how each official source is watched for changes
- performance/: how fast the tools are, measured
- visualisations/: charts and bridges across the world's law
- Vulnerabilities: mistakes in legislation as published
Explore related projects
Loading…