Skip to content
GUIJam
Please leave a star!11 stars

Visual AI UI editing for Vite apps

Edit the UI of your Vite 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 components.

GUIJam is a Vite plugin at heart. In a Vite app with React, Preact, Solid, Vue or Svelte, every change previews live through hot reload, and every element maps to the line that rendered it.

Setup#

Run npx guijam@latest init, or add the plugin yourself. Put guijam() first in plugins, before your framework's plugin:

vite.config.ts
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import { guijam } from 'guijam/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [guijam(), react(), tailwindcss()],
});

When your project has no vite.config yet, init creates one.

What maps to source#

UI libraryWhat GUIJam marks
React, PreactJSX elements, including polymorphic components such as asChild buttons
SolidJSX elements. Fine-tune writes class and CSS-named style keys.
VueTemplate elements and component usages, with your project's own vue/compiler-sfc
SvelteRegular elements in .svelte files. Components aren't marked.

Plain HTML elements outside these libraries render fine, but don't map to source yet.

Previews#

Previews are served from memory through Vite's module graph and hot reload, so your component keeps its state while you switch variants. Your files on disk change only when you Use or Apply.

Options#

guijam({
  root: './apps/web',
  daemonBinary: '/path/to/gjd',
});

Both are optional. See the API reference.

Production builds#

The plugin applies only to vite dev. Your production build is byte-for-byte the same with or without it.

Documentation