> For the complete documentation index, see [llms.txt](https://docs.delegate.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.delegate.xyz/technical-documentation/javascript-sdk/installation-importing.md).

# Installation / Importing

Adding [@delegatexyz/sdk](https://github.com/delegatexyz/delegate-javascript-sdk) to your project is just a single command.

```bash
npm install @delegatexyz/sdk viem
```

## Importing

{% code title="ES6 or Typescript" %}

```javascript
import { http } from "viem"
import { DelegateV1, DelegateV2 } from "@delegatexyz/sdk";
```

{% endcode %}

{% code title="NodeJS require" %}

```javascript
const { http } = require("viem");
const { DelegateV1, DelegateV2 } = require("@delegatexyz/sdk");
```

{% endcode %}
