Installation

Install kvant with your package manager and check framework compatibility.

Install kvant with your package manager of choice:

npm install kvantjs

kvant ships as a single package with per-framework entry points:

Entry pointFramework
kvantjs/reactReact (SPA)
kvantjs/nextNext.js (app router)
kvantjs/next/pagesNext.js (pages router)
kvantjs/react-routerReact Router
kvantjs/vueVue
kvantjs/vue-routerVue Router
kvantjs/nuxtNuxt
kvantjs/schemaSchema library (all frameworks)
kvantjsCore adapters and types (advanced)

Only install the peer dependency for the framework you use. The others are optional.

Version compatibility

FrameworkSupported 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.

On this page