> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Crate constellation

> Visual map of the Nika engine crates across its layers, as of the 0.124 release line: which are admitted and which ship before admission.

This page is the **engine crate map**, not the getting-started path. You run
one `nika` binary; it already contains the CLI, the Session, `nika serve`,
`nika mcp`, `nika lsp` and `nika dap`. The TypeScript SDK is not a crate: it
is the npm package `@supernovae-st/nika`, in its own repository.

At v0.124.1 the engine is a Rust workspace of
**90 crates** across the layers L0, L0.5, L1, L1.5, L2,
L3 and L4. **75 are admitted** past the twelve
[admission gates](https://docs.nika.sh/architecture/admission.md); {STATUS.wipCrates.length} are
pre-admission (nika-chart, nika-fx, nika-proof, nika-store, nika-harness, nika-execution, nika-service-execution, nika-serve, nika-session, nika-session-change, nika-session-agent, nika-session-host, nika-session-intelligence, nika-tui, nika-tui-view). Pre-admission crates are in
the released binary, the Session, the terminal workspace and `nika serve`
among them, while they work toward the gates. The workspace cap is
100 crates (ADR-037). In the 0.124 line, work stays focused on
maintenance, security and the media capabilities workflows need, with no new
crate planned.

> [!TIP]
>
> Layer model and enforcement: [Layers](https://docs.nika.sh/architecture/layers.md). Admission
> process: [Admission](https://docs.nika.sh/architecture/admission.md). The source of truth is the
> `[workspace.metadata.diamond]` table of the engine's
> [`Cargo.toml` at v0.123.0](https://github.com/supernovae-st/nika/blob/v0.123.0/Cargo.toml).

## The map

```mermaid theme={"system"}
%%{init: {'theme':'dark','themeVariables':{'background':'transparent','mainBkg':'transparent'}}}%%
flowchart TB
  classDef admitted fill:#22c55e,color:#000,stroke:#16a34a
  classDef wip fill:#f59e0b,color:#000,stroke:#d97706

  subgraph L4["L4 · interfaces"]
    CLI["nika-cli · -host · -host-typesafe<br/>the nika binary"]:::admitted
    SESSION["nika-session · -agent · -change<br/>-host · -intelligence"]:::wip
    TUI["nika-tui · nika-tui-view"]:::wip
    TUICORE["nika-tui-core"]:::admitted
    SERVE["nika-serve"]:::wip
    COMPILE["nika-compile · -reader · -behavior · -clauses<br/>-cognition · -fidelity · -seats · -trigger"]:::admitted
    TOOLS["nika-mcp · nika-lsp · nika-dap"]:::admitted
    READ["nika-trace · nika-display · nika-arm"]:::admitted
    MISC["nika-onboard · -knowledge · nika-models<br/>nika-catalog-verify · nika-check-wasm"]:::admitted
  end

  subgraph L3["L3 · runtime"]
    RT["nika-runtime · nika-runtime-laws"]:::admitted
    EXEC["nika-execution · nika-service-execution"]:::wip
  end

  subgraph L2["L2 · verbs"]
    VERBS["nika-verb-infer · -exec · -invoke · -agent"]:::admitted
    REG["nika-registry-client"]:::admitted
  end

  subgraph L15["L1.5 · providers and builtins"]
    PROV["nika-providers · nika-providers-access"]:::admitted
    BUILTIN["nika-builtin · nika-extract"]:::admitted
    LOCAL["nika-infer-local"]:::admitted
  end

  subgraph L1["L1 · effects"]
    IO["nika-fs · nika-http · nika-exec-runner<br/>nika-clock · nika-secret · nika-blob"]:::admitted
    SANDBOX["nika-sandbox-seatbelt · nika-sandbox-landlock"]:::admitted
    DESK["nika-screen · nika-ocr · nika-a11y<br/>nika-input · nika-browser"]:::admitted
    BM25["nika-bm25"]:::admitted
    L1WIP["nika-harness · nika-store · nika-fx"]:::wip
  end

  subgraph L05["L0.5 · kernel traits"]
    K["nika-kernel · -core · -ai · -runtime · -plugin"]:::admitted
    KM["nika-kernel-mock"]:::admitted
  end

  subgraph L0["L0 · foundation"]
    TYPES["nika-types · nika-error · nika-event<br/>nika-source · nika-vocab"]:::admitted
    LANG["nika-schema · nika-check · nika-check-analyzer<br/>nika-lints · nika-migrate · nika-graph"]:::admitted
    EXPR["nika-tmpl · nika-cel · nika-dataflow · nika-cap"]:::admitted
    CAT["nika-catalog · nika-catalog-codegen · nika-pack<br/>nika-pck-manifest · nika-cadence"]:::admitted
    L0WIP["nika-chart · nika-proof"]:::wip
  end

  CLI --> SESSION
  CLI --> SERVE
  CLI --> RT
  SERVE --> EXEC
  RT --> VERBS
  RT --> SANDBOX
  VERBS --> PROV
  PROV --> L1WIP
  RT --> IO
  IO --> K
  K --> TYPES
  RT --> LANG
```

<sub>Green: admitted (twelve gates green). Amber: pre-admission, shipping in the binary. Each arrow is a real dependency at v0.123.0, a few of many: every workspace dependency points down a layer or stays within one, and `check-layering.sh` fails the build on an upward one.</sub>

## Layer by layer

| Layer | Admitted | Pre-admission | What lives here |
| - | - | - | - |
| **L4** | nika-cli, nika-cli-host, nika-cli-host-typesafe, nika-compile and its seven members (-behavior, -clauses, -cognition, -fidelity, -reader, -seats, -trigger), nika-tui-core, nika-mcp, nika-lsp, nika-dap, nika-trace, nika-display, nika-arm, nika-onboard, nika-onboard-knowledge, nika-models, nika-catalog-verify, nika-check-wasm | nika-session, nika-session-agent, nika-session-change, nika-session-host, nika-session-intelligence, nika-tui, nika-tui-view, nika-serve | Every surface a person, tool or program talks to: the verb tree, `nika compile`, the Session and its terminal workspace, the HTTP server, MCP, LSP, DAP, the trace reader, local model management |
| **L3** | nika-runtime, nika-runtime-laws | nika-execution, nika-service-execution | Wave-ordered execution of a checked workflow and the run's laws; owned-byte execution admission and the shared driver `nika serve` uses |
| **L2** | nika-verb-infer, nika-verb-exec, nika-verb-invoke, nika-verb-agent, nika-registry-client | — | The four verbs, and the registry client behind `registry:` coordinates |
| **L1.5** | nika-providers, nika-providers-access, nika-builtin, nika-extract, nika-infer-local | — | Provider wires and access paths, the `nika:*` builtins, `nika:fetch` extract modes, `nika model serve` |
| **L1** | nika-fs, nika-http, nika-exec-runner, nika-clock, nika-secret, nika-blob, nika-sandbox-seatbelt, nika-sandbox-landlock, nika-screen, nika-ocr, nika-a11y, nika-input, nika-browser, nika-bm25 | nika-harness, nika-store, nika-fx | Effects: files, HTTP, processes, the OS sandboxes, the clock, secrets, content-addressed blobs, computer-use effects, the agent-app (ACP) client, memory primitives, image effects |
| **L0.5** | nika-kernel, nika-kernel-core, nika-kernel-ai, nika-kernel-runtime, nika-kernel-plugin, nika-kernel-mock | — | The trait contracts every effect implements, and their deterministic test doubles |
| **L0** | nika-types, nika-error, nika-event, nika-source, nika-vocab, nika-schema, nika-check, nika-check-analyzer, nika-lints, nika-migrate, nika-graph, nika-tmpl, nika-cel, nika-dataflow, nika-cap, nika-catalog, nika-catalog-codegen, nika-pack, nika-pck-manifest, nika-cadence | nika-chart, nika-proof | Pure, synchronous, zero I/O: the parser and the checker, templates and CEL, the permits boundary as data, the catalogs, the embedded language pack, the cadence calculator |

There is no L5 crate: the public executable is built from `nika-cli`
(ADR-135).

## Memory and retrieval

Two memory crates are in the 0.123.0 workspace: `nika-bm25` (lexical
scoring, admitted) and `nika-store` (signed writes and verified recall,
pre-admission). The other retrieval crates of the original design (vector
index, rank fusion, reranking, spaced repetition, reasoning) are names, not
planned work: there is no orchestrator crate and no whole-subsystem gate.

## Admission history

The original plan (decision Q5) admitted the L0 foundation first, then one
verb per round (infer, exec, invoke, agent), then the effects and the
runtime, then the interfaces. Part of it was never built: there is no
`nika-binding` or `nika-transform` crate, because templates live in
`nika-tmpl`, expressions in `nika-cel` and transformation is jq
([L0 decisions](https://docs.nika.sh/architecture/l0-decisions.md)).

> [!NOTE]
>
> The admission rounds are the historical order of the Diamond rewrite. Each
> admission was one atomic commit; no admission round is planned in the 0.124
> line.

## See also

> [card] [Live state](https://docs.nika.sh/reference/status.md)
>
> The version, the engine commit and the catalog, read from the binary.

> [card] [Layer registry](https://docs.nika.sh/architecture/layers.md)
>
> The layers, the mechanical sort test and the enforcement scripts.

> [card] [Twelve-gate admission](https://docs.nika.sh/architecture/admission.md)
>
> How a crate earns its seat in the workspace.

> [card] [L0 foundation decisions](https://docs.nika.sh/architecture/l0-decisions.md)
>
> The early decisions and what became of them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.