# Visual AI UI editing for Laravel and Inertia

> Visually edit Laravel, Inertia or any backend-rendered app with AI when Vite serves your scripts. No extra setup beyond guijam() in vite.config.

Edit the UI of your Laravel or Inertia 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 source.

With Laravel's `@vite` directive, Inertia, or any server that renders the HTML itself, Vite never sees an `index.html`. GUIJam still works, with live previews.

## Setup

Run `npx guijam@latest init`, or add `guijam()` first in your Vite plugins. A typical Laravel and React setup looks like this:

```ts title="vite.config.ts" {2,7}
import react from '@vitejs/plugin-react';
import { guijam } from 'guijam/vite';
import laravel from 'laravel-vite-plugin';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [guijam(), laravel({ input: ['resources/js/app.tsx'], refresh: true }), react()],
});
```

## How GUIJam loads

GUIJam loads from the script entries in `build.rollupOptions.input`, which `laravel-vite-plugin` already sets. No extra setup is needed: the toolbar appears on every page that includes your Vite entry.

The same applies to any backend that serves its own HTML and points its script tags at the Vite dev server.
