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

# Runtime lock

> The inkly.lock reference for resolved runtime versions.

`inkly.lock` helps keep published demos stable. It records the exact viewer runtime that Inkly resolved for the hub, so later previews and publishing runs use the same runtime unless you intentionally update it.

Use `inkly lock --check` in CI when you want publishing to fail if the lock file no longer matches `inkly.json`. See [CLI commands](/cli/commands).

```jsonc theme={null}
{
  "$schema": "https://inklyai.dev/inkly.lock",
  "runtime": {
    "version": "0.6.2",
    "url": "https://www.runtime.inklyai.dev/runtime/0.6.2/runtime.js",
    "integrity": "sha384-…"
  }
}
```

## Fields

| Field     | Type     | Required | Default | Notes                                             |
| --------- | -------- | -------- | ------- | ------------------------------------------------- |
| `$schema` | `string` | No       | —       | Optional JSON Schema URL.                         |
| `runtime` | `object` | Yes      | —       | Resolved runtime record. See [Runtime](#runtime). |

## Runtime

| Field       | Type     | Required | Default | Notes                                                                |
| ----------- | -------- | -------- | ------- | -------------------------------------------------------------------- |
| `version`   | `string` | Yes      | —       | Exact semver version that was resolved. Ranges are rejected.         |
| `url`       | `string` | Yes      | —       | Source URL the runtime bundle was fetched from. Must be a valid URL. |
| `integrity` | `string` | Yes      | —       | Integrity string for the resolved runtime bundle.                    |
