Skip to content
GUIJam
Please leave a star!11 stars

Live previews

When you switch between variants, your page updates instantly and your files don't change. Here's how.

Served from memory#

In Vite-based frameworks, the plugin serves the preview's code from memory through Vite's own module graph, in place of the file on disk, and triggers a hot update. Your component keeps its state, and a preview typically applies in a few dozen milliseconds.

In Next.js, the loader reads previews from files GUIJam keeps in .guijam/run/overlays/ and registers them as dependencies, so Next.js rebuilds just that module.

Your source files are written only when you click Use or Apply.

Checked before you see them#

Every preview is compile-checked before the browser sees it. The widget then reports whether the hot update applied, failed to compile, or needed a full reload, so a broken preview never reaches the page silently.

New Tailwind classes work#

A variant might use a Tailwind class that appears nowhere else in your project yet. GUIJam mirrors preview content into .guijam/run/candidates/ and points Tailwind at it, so those classes get their CSS during the preview.

Astro#

Fine-tune changes Astro pages in place. AI variants for .astro files re-render the page, and the panel comes back after the reload. Islands update live. See Astro.

Documentation