What is Global Law?
The viral repository Global Law transforms world legislation into a unified Git history, treating legal amendments as commits and individual countries as submodules. Developed under open-source principles, the project tracks semantic and searchable laws on a global scale.
Every country's legal corpus lives in its own repository and is pinned as a submodule, allowing developers and legal researchers to inspect exact statutory states across history.
How is the repository structured?
The architecture relies on a deterministic build system that interleaves histories in the exact order changes took force. The root structure contains a manifest, jurisdiction configurations, and independent country paths.
Because Git cannot natively store dates prior to 1970, older statutory amendments use 1970 commit timestamps while depending on authoritative trailers to preserve chronological accuracy.
How do I install and query the repository?
You can clone the repository and integrate individual country histories without downloading the entire multi-gigabyte dataset. Follow these steps to set up the environment and query specific jurisdictions.
The repository also includes robust security and verification checks to ensure data consistency across builds.
- Clone the main repository using git clone https://github.com/lexifina/global-law and enter the directory.
- Initialize all submodules or add specific countries using python3 tools/countries.py add <country>.
- Configure your local AI client to leverage the built-in Model Context Protocol server for historical queries.