Installation
Install kvant with your package manager and check framework compatibility.
Install kvant with your package manager of choice:
npm install kvantjskvant ships as a single package with per-framework entry points:
| Entry point | Framework |
|---|---|
kvantjs/react | React (SPA) |
kvantjs/next | Next.js (app router) |
kvantjs/next/pages | Next.js (pages router) |
kvantjs/react-router | React Router |
kvantjs/vue | Vue |
kvantjs/vue-router | Vue Router |
kvantjs/nuxt | Nuxt |
kvantjs/schema | Schema library (all frameworks) |
kvantjs | Core adapters and types (advanced) |
Only install the peer dependency for the framework you use. The others are optional.
Version compatibility
| Framework | Supported versions |
|---|---|
| React | ^18 || ^19 |
| Next.js | ^14.2.x || ^15 || ^16 |
| React Router | ^7 || ^8 |
| Vue | ^3 |
| Vue Router | ^4 || ^5 |
| Nuxt | ^3 || ^4 |
React-based entry points (kvantjs/react, kvantjs/next, kvantjs/next/pages,
kvantjs/react-router) ship with the 'use client' directive, so they work out
of the box in React Server Components trees.