jqlite is one language with several implementations that must not drift apart. The repository is organized so that they cannot: the behaviour is written down once, tested once, and every implementation runs the same tests.
flowchart LR S["Specification<br>spec/jqlite.md"] --> C["Conformance corpus<br>spec/tests"] S --> P["Prelude<br>spec/prelude.jq"] C --> R["Reference engine<br>.NET"] P --> R R -- "ported file by file" --> T["TypeScript, Python,<br>Java, Go, Rust"] C --> T P --> T
| Part | Where | What it is |
|---|---|---|
| The specification | spec/jqlite.md |
The language: grammar, values, semantics, builtins, errors, limits, the host interface, and the differences from jq. It is normative. |
| The prelude | spec/prelude.jq |
The builtins that are written in jqlite itself. Every implementation embeds this file unchanged. |
| The conformance corpus | spec/tests |
The cases every implementation must pass: a program, an input, the expected outputs. The expected outputs are what jq 1.8.2 prints, except where the specification lists a difference. |
| The reference | dotnet/JQLite/Core |
The engine, in C#, written without anything that another language lacks: no host JSON library, no iterators, no reflection, no exceptions as control flow. |
| The ports | go, java, python, rust, typescript |
The same engine, file by file, each with a host API in the idiom of its language. |
A change of behaviour goes through them in that order: the specification first, then a case in the corpus, then the reference, then every port. A port that lags fails the new cases.
| Page | What it is |
|---|---|
| Porting guide | How the reference is built, layer by layer, and how each shape of it carries over to another language. |
| Conformance corpus | The format of the test files and how a case is run. |
| Benchmarks | The cross-language benchmark: the cases, the runner of each implementation, how to run it. |
The source, the issues and the discussions are on GitHub. The repository's AGENTS.md says where each kind of change goes and which rules the engine's code follows.
jqlite is under the MIT license, and its use is subject to the Open Source Maintenance Fee EULA.