Skip to main content

Installation

info

Zodios packages can be installed using your preferred package manager.
We only show npm and yarn as they are the most popular.

Frontend installation

npm install @zodios/core axios zod

With React

if you want to use the react hooks, you need to install the following packages:

npm install @tanstack/react-query @zodios/core @zodios/react axios react react-dom zod

With Solid

if you want to use the solid hooks, you need to install the following packages:

npm install @tanstack/solid-query @zodios/core @zodios/solid axios solid-js zod

Install type definitions

install those even in javascript projects.

// if you use react
npm install --dev @types/react @types/react-dom

Backend installation

With Express

npm install @zodios/core @zodios/express express zod axios

optional packages for openapi generation:

npm install @zodios/openapi swagger-ui-express

With NextJS

npm install @zodios/core @zodios/express next zod axios react react-dom

Install type definitions

install those even in javascript projects

// if you use express
npm install --dev @types/express
// or with nextjs
npm install --dev @types/express @types/react @types/react-dom