This guide uses the Next.js App Router pattern, which matches the maintained example in the widget repository. The widget must run on the client, so the widget component should be a client component and exported through dynamic(..., { ssr: false }).
To create a new app, you can run npx create-next-app@latest <your-app-name>. Then install the Kima Widget and its peer dependencies.
If your app still uses the older Pages Router, the same client-only requirement applies, but the maintained reference example in this repo is App Router first.
Troubleshooting
Turbopack (Development)
The widget is not currently compatible with the --turbopack flag. Please disable this flag when running the development server.