# Installation

Below you will learn how to add Formisch to your project.

## TypeScript

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.

```ts
{
  "compilerOptions": {
    "strict": true,
    // ...
  }
}
```

## Install Valibot

Formisch uses [Valibot](https://valibot.dev/) for schema-based validation. You need to install it first because it is a peer dependency.

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

## Install Formisch

You can add Formisch to your project with a single command using your favorite package manager.

```bash
npm install @formisch/qwik     # npm
yarn add @formisch/qwik        # yarn
pnpm add @formisch/qwik        # pnpm
bun add @formisch/qwik         # bun
deno add npm:@formisch/qwik    # deno
```

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

```ts
import { … } from '@formisch/qwik';
```

## For AI Agents

We provide agent skills that teach AI agents the correct patterns for working with Valibot and Formisch. You can install them by running the following command in your terminal:

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

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