Installation
Package manager
bash
npm install @bir-tan/crisp-oquentbash
pnpm add @bir-tan/crisp-oquentbash
yarn add @bir-tan/crisp-oquentCompatibility matrix
| Environment | Status | Notes |
|---|---|---|
| Node ≥ 18 | ✅ | Native fetch |
| Modern browsers | ✅ | All Chromium / Firefox / Safari with native fetch |
| Nuxt 3 | ✅ | Plugin: plugins/crisp-oquent.client.ts |
| Next.js 13+ | ✅ | Initialize in root layout or RSC boundary |
| Vue 3 (Vite) | ✅ | Initialize in main.ts |
| React 18+ (Vite/Webpack 5+) | ✅ | Initialize in main.tsx / root |
| SvelteKit | ✅ | Initialize in +layout.ts or hooks |
| Bun | ✅ | Native fetch |
| Deno | ✅ | Native fetch |
| CRA / legacy Webpack 4 | ⚠️ | ESM-only — needs ESM-compatible bundler |
ESM-only
The package ships ESM only — no CommonJS build. This is intentional: every framework above natively understands ESM in 2026.
If you need to consume crisp-oquent from a CommonJS file, use dynamic import:
js
const { CrispOquentConfig, Model } = await import('@bir-tan/crisp-oquent');