---
title: Install and pin the packages
description: Install exact package versions with ESM or CommonJS, TypeScript declarations, and compatible peers.
url: https://docs.intuition.systems/docs/build/install
markdown_url: https://docs.intuition.systems/docs/build/install.md
version: V2
llms_index: https://docs.intuition.systems/llms.txt
kind: how-to
reader:
  - app
  - agent
packages:
  - '@0xintuition/atom-classification@0.1.1'
  - '@0xintuition/atom-enrichment@0.1.1'
  - '@0xintuition/atom-parser@0.1.1'
  - '@0xintuition/atom-runtime@0.1.1'
  - '@0xintuition/classifications@0.1.1'
  - '@0xintuition/cli@0.1.1'
  - '@0xintuition/curves@0.1.1'
  - '@0xintuition/deployments@0.1.1'
  - '@0xintuition/ids@0.1.1'
  - '@0xintuition/iid@0.1.1'
  - '@0xintuition/iid-ladder@0.1.1'
  - '@0xintuition/iid-registry@0.1.1'
  - '@0xintuition/iid-spec@0.1.0'
  - '@0xintuition/periphery@0.1.1'
  - '@0xintuition/pipeline-runtime@0.1.1'
  - '@0xintuition/predicates@0.1.1'
  - '@0xintuition/primitives@0.1.1'
  - '@0xintuition/protocol@4.1.0'
  - '@0xintuition/react@0.1.1'
  - '@0xintuition/schema-org@0.1.1'
  - '@0xintuition/sdk@4.1.0'
---

Install the smallest package set that supports your task and keep its exact versions in your lockfile.

**Prompt for your agent:** Set up a project pinned to the current release

```text
Goal: set up this project to use the Intuition V2 packages with exact, reproducible versions.
Read https://docs.intuition.systems/docs/build/install.md, https://docs.intuition.systems/docs/get-started/choose-packages.md and https://docs.intuition.systems/docs/reference/compatibility.md.
Take every version from https://docs.intuition.systems/intuition-release.json. Install exact pins, never ranges or latest.
Task: [describe what you are building, for example derive atom IDs offline or prepare MultiVault writes]. Install only the packages and peers that task needs.
Keep the existing module format, ESM or CommonJS, and check that the Node version meets the runtime requirements.
Commit the lockfile, then list each installed @0xintuition package and peer with its resolved version.
Add a smoke test that imports one public entry point from each installed package.
Report the checks you actually ran and anything you could not verify.
```

## Before you start

The compiled packages support ESM `import` and CommonJS `require()` on Node 20 or newer. React's CommonJS entry point requires Node 20.19+ on the 20.x line, 22.12+ on the 22.x line, or a newer supported major because its wagmi peer is ESM-only. See the [runtime matrix](https://docs.intuition.systems/docs/reference/compatibility#runtime-requirements) for module identity and parser requirements.

The documentation's TypeScript examples use ESM and run directly on Node 22.18 or newer; Node 22.21.0 and TypeScript 5.9.3 match their pinned environment. An existing CommonJS application can keep its module format.

V2 names the documentation generation, not a package major version. Use the [package chooser](https://docs.intuition.systems/docs/get-started/choose-packages) to match a task to its dependencies, or browse all 21 packages in the [package index](https://docs.intuition.systems/docs/reference/packages). The [compatibility reference](https://docs.intuition.systems/docs/reference/compatibility) records peers and contract artifact boundaries.

## Steps

### 1. Choose your module format

For a new ESM project:

```sh
mkdir intuition-example
cd intuition-example
npm init -y
npm pkg set type=module
```

For a new CommonJS project, run the same setup with `npm pkg set type=commonjs` instead. Existing projects can keep their current `type`. A `.cjs` file always uses CommonJS, including inside an ESM project; a `.mjs` file always uses ESM.

Import public package names and subpaths in either format: `import { buildIidAnchor } from '@0xintuition/primitives/anchor'` or `const { buildIidAnchor } = require('@0xintuition/primitives/anchor')`. Node selects the matching package entry point. Do not append `dist/index.cjs` or import an internal `src` path.

### 2. Install for your task

Choose the relevant command; you do not need every package.

**Build atom identities and triples:**

```sh
npm install --save-exact @0xintuition/primitives@0.1.1 viem@2.31.4
```

**Read creation fields and relationship suggestions:**

```sh
npm install --save-exact @0xintuition/classifications@0.1.1 @0xintuition/predicates@0.1.1 viem@2.31.4
```

**Parse, classify, and enrich in a controlled host:**

```sh
npm install --save-exact @0xintuition/atom-parser@0.1.1 @0xintuition/atom-classification@0.1.1 @0xintuition/atom-enrichment@0.1.1 @0xintuition/iid-registry@0.1.1 viem@2.31.4
```

**Prepare contract operations and action envelopes:**

```sh
npm install --save-exact @0xintuition/sdk@4.1.0 @0xintuition/protocol@4.1.0 @0xintuition/deployments@0.1.1 viem@2.31.4
```

**Use React integration:**

```sh
npm install --save-exact @0xintuition/react@0.1.1 @0xintuition/protocol@4.1.0 @0xintuition/deployments@0.1.1 react@19.1.0 react-dom@19.1.0 wagmi@2.15.4 @tanstack/react-query@5.90.2 viem@2.31.4
```

Install packages that your code imports directly, even if another dependency currently installs them transitively. Keep React and its renderer on matching versions. Use each package's published entry points; internal `src` paths are not public imports.

### 3. Record the resolved dependency graph

Commit `package.json` and `package-lock.json`; use `npm ci` on subsequent installs. For a TypeScript project:

```sh
npm install --save-dev --save-exact typescript@5.9.3 @types/node@22.20.5
```

Set `module` and `moduleResolution` to `NodeNext` and enable `strict`. TypeScript uses your project's module format to select the ESM `.d.ts` or CommonJS `.d.cts` declarations. Existing projects using `moduleResolution: "node10"` also have declaration mappings through `typesVersions`; this does not imply support for Node.js 10 or every older TypeScript compiler. See [TypeScript and older tooling](https://docs.intuition.systems/docs/reference/compatibility#typescript-and-older-tooling).

For React TypeScript code, also install matching type packages:

```sh
npm install --save-dev --save-exact @types/react@19.1.10 @types/react-dom@19.1.11
```

At the December 2, 2026 registry check, `@0xintuition/sdk@alpha` still resolves to `4.0.0-alpha.0` and `@0xintuition/protocol@alpha` to `3.0.0-alpha.0`. The range `@0xintuition/protocol@3` selects `3.0.0`, not the pinned stable release. Avoid copying those older install selectors. `latest` matches the stable pins at that check, but exact pins keep future installs reproducible.

## Check the result

Run `npm ls --depth=0` to inspect direct versions, then compile your project with `npx tsc --noEmit`. Resolve peer errors before running examples. Installing packages does not start a backend: follow [Query a Core node](https://docs.intuition.systems/docs/build/query-core) to read indexed V2 data from your own source-built Core node.

After installing the primitives package, these offline checks exercise the same public subpath in both module formats:

```sh
node --input-type=module -e "import { buildIidAnchor } from '@0xintuition/primitives/anchor'; const result = buildIidAnchor('music-recording', { isrc: 'US-RC1-76-07839' }); if (!result.success) throw new Error(result.errors.join('; ')); console.log(result.value.iid)"
node --input-type=commonjs -e "const { buildIidAnchor } = require('@0xintuition/primitives/anchor'); const result = buildIidAnchor('music-recording', { isrc: 'US-RC1-76-07839' }); if (!result.success) throw new Error(result.errors.join('; ')); console.log(result.value.iid)"
```

Both commands print `int:isrc:USRC17607839`. They do not contact an RPC or submit a transaction.

## Troubleshooting

| Symptom | Check |
| --- | --- |
| Import not exported | Use an entry point listed on that package's reference page. |
| `require is not defined` | Run CommonJS code in a `.cjs` file or a project with `"type": "commonjs"`. |
| `ERR_REQUIRE_ESM` | Check the installed version and runtime. The current pins have CommonJS entry points; React also needs Node 20.19+ / 22.12+ for its wagmi peer. |
| `instanceof` differs between imports | Below Node 20.19 / 22.12, mixing ESM and CommonJS loads separate class copies. Use one format consistently or upgrade Node. |
| Missing peer | Install the package's declared peers in your application. |
| Provider returns nothing | Inspect runtime support, provider configuration, and result diagnostics; installation alone does not enable a provider. |

## Related

[Build a music catalog](https://docs.intuition.systems/docs/examples/music-catalog), [creation profiles](https://docs.intuition.systems/docs/build/creation-profiles), and [action envelopes](https://docs.intuition.systems/docs/build/action-plans) use these pins. Source: [release policy](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/docs/release.md).

Applies to V2 · `@0xintuition/atom-classification` 0.1.1 · `@0xintuition/atom-enrichment` 0.1.1 · `@0xintuition/atom-parser` 0.1.1 · `@0xintuition/atom-runtime` 0.1.1 · `@0xintuition/classifications` 0.1.1 · `@0xintuition/cli` 0.1.1 · `@0xintuition/curves` 0.1.1 · `@0xintuition/deployments` 0.1.1 · `@0xintuition/ids` 0.1.1 · `@0xintuition/iid` 0.1.1 · `@0xintuition/iid-ladder` 0.1.1 · `@0xintuition/iid-registry` 0.1.1 · `@0xintuition/iid-spec` 0.1.0 · `@0xintuition/periphery` 0.1.1 · `@0xintuition/pipeline-runtime` 0.1.1 · `@0xintuition/predicates` 0.1.1 · `@0xintuition/primitives` 0.1.1 · `@0xintuition/protocol` 4.1.0 · `@0xintuition/react` 0.1.1 · `@0xintuition/schema-org` 0.1.1 · `@0xintuition/sdk` 4.1.0
