> For the complete documentation index, see [llms.txt](https://jeromebu.gitbook.io/shared-routes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jeromebu.gitbook.io/shared-routes/install.md).

# Install

shared-routes depends on `zod`, for contrat definition, so it needs to be installed with shared-routes

```bash
# with npm
npm install shared-routes
npm install zod

# with pnpm
pnpm install shared-routes
pnpm install zod

# with yarn
yarn add shared-routes
yarn add zod
```

If you are willing to use the OpenAPI module (to generate your swagger documentation), you will need an extra peer dependency `zod-to-json-schema` :&#x20;

```sh
npm install zod-to-json-schema
# or
pnpm install zod-to-json-schema
# or
yarn add zod-to-json-schema
```
