# Nuxt

> A module, configured once in nuxt.config.

Source: https://docs.usejot.co/docs/install/nuxt

<Callout title="Packages are on their way to npm">
  Until `@usejot/nuxt` is published, add the [script tag](/docs/install/script) through
  `app.head.script` — it works today.
</Callout>

```bash
npm install @usejot/nuxt
```

```ts title="nuxt.config.ts"
export default defineNuxtConfig({
  modules: [["@usejot/nuxt", { projectKey: "jot_pk_your_key" }]],
});
```

The module registers a client-only plugin: nothing runs during server
rendering, and the widget loads after hydration.

Every [script option](/docs/install/script#options) is a module option:
`trigger`, `edge`, `offset`, `environment`, `autostart`.

## Wait for consent

Pass `autostart: false`, then call `window.Jot?.init()` once your cookie banner
grants consent.
