Singularity’s source code is public, so that anyone can read it, build it and check what the app does, including how Papinian Guard takes client data out of a request on the lawyer’s computer and what Singularity sends from a firm’s computers. It is at github.com/legal-machines/singularity, with every version Legal Machines releases.
1. Repository
- Where: github.com/legal-machines/singularity, created on 2 November 2026 with Singularity’s first public beta.
- What it is in: mostly C++, the core, and JavaScript, the window: GitHub counts 82% C++, 11% JavaScript, 3% CMake, 2% CSS and 2% other languages.
- Questions and problems: its issues are open to anyone on GitHub; a security problem goes to inbox@legalmachines.org instead (Section 9).
2. Versions
Each version Legal Machines releases has its tag, its release and the commit it was made from; the release notes say what changed in each.
| Version | Tag | Commit | Release notes |
|---|---|---|---|
| 0.1.2 | v0.1.2 | 29103e7 | Singularity 0.1.2 |
| 0.1.1 | v0.1.1 | 145cd62 | Singularity 0.1.1 |
| 0.1.0 | v0.1.0 | 419bf4d | Singularity 0.1.0 |
3. Contents
| Folder | What it holds |
|---|---|
code/backend | The native core in C++17, by domain: Matter, Chat, Document, Agent, Papinian Guard, Privacy, Local inference and the others, and the Native Bridge to the window |
code/frontend | The window, in React |
docs/contracts | The Native API: every call between the window and the core |
deploy | The build: CMake for the core, npm and Vite for the window, the build containers and scripts |
dependencies/llama.cpp | The pinned llama.cpp source local inference is built from, and the patches applied to it |
legal | The documents that govern Legal Machines’ account service |
4. Where to look
- Papinian Guard, which takes client data out of a request on the lawyer’s computer and puts it back into the answer there:
code/backend/PapinianGuard. - Local inference, the models a firm runs on its own computers:
code/backend/LocalInference, built on the pinned llama.cpp independencies/llama.cpp. - The window and the core, every call between them:
docs/contracts, as the core answers them incode/backend. - How a release is built:
deploy/scripts; the Linux release is built in the imagedeploy/containers/linux-x64.Dockerfiledescribes.
5. Building
Every platform needs CMake 3.24 or later, Node.js with npm, Python 3.9 or later, a Rust toolchain and GNU patch. The build downloads the pinned llama.cpp source, checks it against its SHA-256 and applies the patches in dependencies/llama.cpp.
- macOS: Xcode;
deploy/scripts/build-macos.shmakes the app and its disk image. - Windows: Visual Studio 2022 with Desktop C++, vcpkg with
zlib:x64-windows-static, the WebView2 Runtime and NSIS;deploy/scripts/build-windows.ps1makes the installer. With the CUDA toolkit, local inference runs on NVIDIA GPUs; without it, on the processor. - Linux (Debian or Ubuntu): the packages the repository’s README lists;
deploy/scripts/build-linux.shmakes the .deb in the Linux image.
A build anyone but Legal Machines makes is not an official build: it may not use Legal Machines’ account service or download its models, as the license’s Section 5 says.
6. Components
Singularity builds on these open-source components, each under its own license, which Singularity’s license does not change; THIRD_PARTY_NOTICES.md in the repository lists them with where each comes from.
| Component | Version | License |
|---|---|---|
| llama.cpp | b10516 (commit b95502b), with Legal Machines’ patches | MIT |
| ONNX Runtime | 1.23.2 | MIT |
| webview | 0.12.0 | MIT |
| Native File Dialog Extended | 1.3.0 | Zlib |
| JSON for Modern C++ | 3.11.3 | MIT |
| libzip | commit 6f8a0cdd | BSD-3-Clause |
| pugixml | commit c8033ce9 | MIT |
| utf8proc | commit e5e79922 | MIT, with the Unicode data license |
| Mbed TLS | 3.6.7 | Apache-2.0 |
| Monocypher | 4.0.2 | BSD-2-Clause or CC0-1.0 |
| PDFium, as built by pdfium-binaries | chromium/8086 | BSD-3-Clause (PDFium); MIT (the binaries’ packaging) |
| Microsoft Edge WebView2 SDK (Windows only) | 1.0.4258.31 | Microsoft’s license for the WebView2 SDK |
| gliner2-rs, the inference engine of the Papinian NER runtime | vendored, with the changes its patch note lists | Apache-2.0, Copyright 2026 Dario Finardi, Semplifica s.r.l.; its Rust crates under their own licenses (Cargo.lock) |
| English common words, from Webster’s Second International Dictionary (1934) | carried | public domain |
| React and React DOM (the window) | 19 | MIT |
| qr (the window) | 0.7.2 | MIT or Apache-2.0 |
| Roboto, through @fontsource-variable/roboto (the window) | 5 | SIL Open Font License 1.1 |
| Inter, Sora and Syne (the window) | as carried | SIL Open Font License 1.1; each license lies beside its font in code/frontend/onboarding/fonts |
7. Terms
The code is published under the Legal Machines Singularity License, version 1.0, a source-available license. In short, and the license itself governs:
- It allows, within one’s own organisation and for legal work: reading and studying the code; installing, using and running it on computers the organisation owns or controls; copying it for those uses, backups included; and changing it.
- It also allows minor internal use that is not legal work, by someone whose use is mostly legal work; trying it for up to ninety days to decide whether to use it for legal work; and good-faith security research (Section 9).
- It does not allow distributing the code or any changed version to anyone outside the organisation, or offering it to others over a network.
- It does not cover the open-source components, which keep their own licenses, Legal Machines’ models, its services, the builds Legal Machines distributes, or its brand. The Terms of Use and the Software License Agreement govern the builds Legal Machines distributes.
8. Not included
- Legal Machines’ models. No model is part of the repository: the protection model behind Papinian Guard, like every model Legal Machines provides, comes from Legal Machines’ model catalog to official builds (Software License Agreement, Section 4).
- The account service at legalmachines.org that Singularity signs in with, which runs on Legal Machines’ servers.
- The builds Legal Machines distributes, which the Terms of Use and the Software License Agreement govern.
9. Security
The license allows good-faith testing of Singularity for security vulnerabilities, if whoever finds one reports it to Legal Machines at inbox@legalmachines.org, does not disclose it publicly before Legal Machines has had a reasonable opportunity to fix it, and does not access Legal Machines’ services or the data of others.