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.

3. Contents

FolderWhat it holds
code/backendThe 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/frontendThe window, in React
docs/contractsThe Native API: every call between the window and the core
deployThe build: CMake for the core, npm and Vite for the window, the build containers and scripts
dependencies/llama.cppThe pinned llama.cpp source local inference is built from, and the patches applied to it
legalThe 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 in dependencies/llama.cpp.
  • The window and the core, every call between them: docs/contracts, as the core answers them in code/backend.
  • How a release is built: deploy/scripts; the Linux release is built in the image deploy/containers/linux-x64.Dockerfile describes.

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.sh makes 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.ps1 makes 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.sh makes 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.

ComponentVersionLicense
llama.cppb10516 (commit b95502b), with Legal Machines’ patchesMIT
ONNX Runtime1.23.2MIT
webview0.12.0MIT
Native File Dialog Extended1.3.0Zlib
JSON for Modern C++3.11.3MIT
libzipcommit 6f8a0cddBSD-3-Clause
pugixmlcommit c8033ce9MIT
utf8proccommit e5e79922MIT, with the Unicode data license
Mbed TLS3.6.7Apache-2.0
Monocypher4.0.2BSD-2-Clause or CC0-1.0
PDFium, as built by pdfium-binarieschromium/8086BSD-3-Clause (PDFium); MIT (the binaries’ packaging)
Microsoft Edge WebView2 SDK (Windows only)1.0.4258.31Microsoft’s license for the WebView2 SDK
gliner2-rs, the inference engine of the Papinian NER runtimevendored, with the changes its patch note listsApache-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)carriedpublic domain
React and React DOM (the window)19MIT
qr (the window)0.7.2MIT or Apache-2.0
Roboto, through @fontsource-variable/roboto (the window)5SIL Open Font License 1.1
Inter, Sora and Syne (the window)as carriedSIL 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.