Lumagen

AI-powered editor that turns natural language into tiny self-contained WebGPU generative scenes

$npm install

Why Lumagen?

Viral single-file WebGPU demos like Abyssal Garden inspire many, yet creating them demands deep graphics and shader expertise. Lumagen fills the gap with a friendly pastel UI, local-LLM scene generation, live preview, and one-click export to optimized standalone HTMLs. Perfect for digital artists, indie devs and educators prototyping immersive procedural experiences.

Features

Everything you need, nothing you don't.

๐Ÿช„

AI Scene Gen

Converts plain-English prompts into complete WGSL shaders, JS logic and uniform metadata via Ollama.

๐Ÿ‘๏ธ

Live Preview

Real-time WebGPU canvas that instantly reflects prompt changes, uniform tweaks and animation updates.

๐Ÿ“ฆ

One-File Export

Bundles scene into a single dependency-free HTML under 100 KB ready for sharing or embedding.

๐ŸŽ›๏ธ

Smart Controls

Auto-generates pastel sliders, color pickers and toggles for every uniform the AI exposes.

๐Ÿ–ผ๏ธ

Template Gallery

Curated starters including kelp forests, sunbeams, particle fields and fractal explorers.

๐Ÿ“Š

Perf Monitor

Built-in FPS counter, draw-call stats and GPU timing to keep scenes running smoothly.

โ™ป๏ธ

Partial Remix

Regenerate only lighting, motion or color via targeted prompts while preserving the rest.

๐Ÿ“‹

Copy Blocks

One-click extraction of shader, JS or full HTML for quick iteration in any editor.

See it in action

From install to result in seconds.

Lumagen terminal demo

Get started

Three steps. Full docs live in the README.

Install
npm install
Run
npm run dev
Test
npm test

Like it? Give it a โญ

Stars help other developers discover Lumagen. Issues and PRs are very welcome.

Star on GitHub