# Installation

> This document is the Markdown version of [valibot.dev/guides/installation/](https://valibot.dev/guides/installation/). For the complete documentation index, see [llms.txt](https://valibot.dev/llms.txt).

Valibot is currently available for Node, Bun and Deno. Below you will learn how to add the library to your project.

## General

Except for this guide, the rest of this documentation assumes that you are using npm for the import statements in the code examples.

It does not make a difference whether you use individual imports or a wildcard import. Tree shaking and code splitting should work in both cases.

Valibot's distributed files target **ES2020**. Make sure your bundler or transpiler supports ES2020 syntax.

If you are using TypeScript, we recommend that you enable strict mode in your `tsconfig.json` so that all types are calculated correctly.

> The minimum required TypeScript version is v5.0.2.

```json
{
  "compilerOptions": {
    "strict": true
    // ...
  }
}
```

## For AI Agents

We provide an agent skill that teaches AI agents the correct patterns for generating Valibot schemas. You can install it by running the following command in your terminal:

```bash
npx skills add open-circle/agent-skills --skill valibot
```

You can learn more about the Valibot agent skill [here](https://github.com/open-circle/agent-skills).

## From npm

For Node and Bun, you can add the library to your project with a single command using your favorite package manager.

```bash
npm install valibot     # npm
yarn add valibot        # yarn
pnpm add valibot        # pnpm
bun add valibot         # bun
```

Then you can import it into any JavaScript or TypeScript file.

```ts
// With individual imports
import { … } from 'valibot';

// With a wildcard import
import * as v from 'valibot';
```

## From JSR

For Node, Deno and Bun, you can add the library to your project with a single command using your favorite package manager.

```bash
deno add jsr:@valibot/valibot      # deno
npx jsr add @valibot/valibot       # npm
yarn dlx jsr add @valibot/valibot  # yarn
pnpm dlx jsr add @valibot/valibot  # pnpm
bunx jsr add @valibot/valibot      # bun
```

Then you can import it into any JavaScript or TypeScript file.

```ts
// With individual imports
import { … } from '@valibot/valibot';

// With a wildcard import
import * as v from '@valibot/valibot';
```

In Deno, you can also directly reference me using `jsr:` specifiers.

```ts
// With individual imports
import { … } from 'jsr:@valibot/valibot';

// With a wildcard import
import * as v from 'jsr:@valibot/valibot';
```

## From Deno

With Deno, you can reference the library directly through our deno.land/x URL.

```ts
// With individual imports
import { … } from 'https://deno.land/x/valibot/mod.ts';

// With a wildcard import
import * as v from 'https://deno.land/x/valibot/mod.ts';
```
