# Visual AI UI editing for Nuxt

> Visually edit a Nuxt 4 app with AI. The guijam/nuxt module gives live UI variants and source-mapped edits in Vue templates, including Vuetify components.

Edit the UI of your Nuxt app by drawing on the running page. GUIJam previews AI variants from Claude Code, Codex or another AI coding CLI live, and writes the one you keep to your Vue templates.

GUIJam ships a Nuxt module for Nuxt 4. Previews are live, and elements in your Vue templates map to source, including component usages.

## Setup

Run `npx guijam@latest init`, or add the module yourself, first in `modules`:

```ts title="nuxt.config.ts" {2}
export default defineNuxtConfig({
  modules: ['guijam/nuxt'],
});
```

## Options

The module reads its options from the `guijam` key:

```ts title="nuxt.config.ts" {3-5}
export default defineNuxtConfig({
  modules: ['guijam/nuxt'],
  guijam: {
    daemonBinary: '/path/to/gjd',
  },
});
```

The module accepts `root` and `daemonBinary`. `root` defaults to your Nuxt root directory. See the [API reference](https://guijam.francistinao.com/docs/reference/api#guijamnuxt).

## Vue and Vuetify

GUIJam marks your templates with your project's own `vue/compiler-sfc`, so the source locations match the compiler you already run.

On Vuetify components, fine-tune writes the component's `color` and `rounded` props instead of classes. See [Styling](https://guijam.francistinao.com/docs/frameworks/styling).

## Dev only

The module only runs in development. Your production build is unchanged.
