Static sites · Server-side rendering · Islands · SPAs

One component model, from static pages to full-stack apps

Write components in TSX with their styles in the same file. Each route picks how it renders, and a component becomes interactive where you use it, with no rewrite.

npm create lumiose@latest my-app

0.8.1 · pre-release

  • 1.08×vanilla JS on js-framework-benchmark
  • 0 kBJavaScript on server-rendered pages
  • 6.4 kBruntime and app, compressed

Compare the stacks

Feels like React. Runs like vanilla JS.

Components, styles, routing and the server in one project, measured against the stacks you already know.

Lumiose compared with other web framework stacks
StackFull-stack layerStylesJS on a server pageClient speedServer speed
LumioseBuilt inBuilt in0 kB1.08×619 renders/s1,323 req/s
React + Next.jsSeparate projectPick a library119 kB1.54×185 renders/s437 req/s
React RouterBuilt inPick a library101 kB1.54×185 renders/s683 req/s
PreactNone officialPick a libraryNo full-stack layer1.52×208 renders/sNo full-stack layer
Astro (Preact islands)Built inBuilt in0 kB1.52×206 renders/s1,247 req/s
Svelte + SvelteKitSeparate projectBuilt in38 kB1.17×505 renders/s1,067 req/s
Vue + NuxtSeparate projectBuilt in76 kB1.25×204 renders/s608 req/s
Solid + SolidStartSeparate projectPick a library33 kB1.11×580 renders/s999 req/s
Remix 3Built inBuilt in42 kB1.57×44 renders/s823 req/s

JS on a server page: what the fullstack comparison's issue tracker loads for its home page, brotli (2026-10-12 · Apple M1 Max (10 cores) · macOS 27.0.1 · Node 26.8.1). Client speed: js-framework-benchmark's weighted factor, where 1.00 is the fastest framework in the run and vanilla JS scores 1.00. Server speed: renders per second of the SSR benchmark's 5,000-component page to an HTML string (2026-10-12, Node v26.8.1, Apple M1 Max (10 cores, 32 GB), darwin 27.0.0 arm64), then requests per second on the fullstack comparison's home page (2026-10-12 · Apple M1 Max (10 cores) · macOS 27.0.1 · Node 26.8.1). Both React rows use React's client and rendering entries. Rows after Lumiose are ordered by npm downloads of each stack's main package (2026-09-10 to 2026-10-09). Method and every run: benchmarks.

Astro's interactive islands use a second UI framework: Preact in the fullstack comparison, so its client speed is Preact's. Solid islands would be faster on the client.

Before you pick Lumiose: what 0.x allows and who maintains it, in Stability, and the cases where another stack fits better, in When not to use Lumiose.

Why it feels light

Four things, each one click deep

Familiar to write

A .stsx file is React-like JSX with scoped CSS built in: one <style> at the end of the file serves every component in it, typed by stock TypeScript. Edit the sample: it compiles in your browser.

Open the playground
Counter sample
App.stsx
import { signal } from "lumiose";

export default function Counter() {
  const count = signal(0);

  return (
    <div class="counter">
      <button class={{ pill: true, hot: count() > 9 }} onClick={() => count.update((n) => n + 1)}>
        Clicked {count()} times
      </button>
      <Reset onReset={() => count.set(0)} />
    </div>
  );
}

function Reset(props: { onReset(): void }) {
  return (
    <button class="pill ghost" onClick={props.onReset}>
      Reset
    </button>
  );
}

// One block at the end of the file styles both components.
<style>
  .counter {
    --accent: #5546ff;
    --space: 8px;
    display: flex;
    gap: var(--space);
  }
  .pill {
    padding: var(--space) calc(var(--space) * 2);
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font: inherit;
  }
  .ghost {
    background: transparent;
    color: inherit;
  }
  .hot {
    outline: 2px solid tomato;
  }
</style>
App.js
import { signal } from "lumiose";
import { template, bind, toggleClass, insert, createComponent, delegateEvents } from "lumiose/dom";
import "/src/App.stsx?lumiose&type=style&lang.css";
const _t0 = /* @__PURE__ */ template(`<div class=counter data-lum-rdjmzp3m><button class=pill data-lum-rdjmzp3m>Clicked <!> times`);
const _t1 = /* @__PURE__ */ template(`<button class="pill ghost" data-lum-rdjmzp3m>Reset`);
const _a0 = (el, v) => toggleClass(el, "hot", v);
export default function Counter() {
	const count = signal(0);
	const _el = _t0(), _button = _el.firstChild, _marker = _button.firstChild.nextSibling;
	bind(_button, () => count() > 9, _a0);
	_button.$$click = () => count.update((n) => n + 1);
	insert(_button, count, _marker);
	insert(_el, createComponent(Reset, { onReset: () => count.set(0) }));
	return _el;
}
function Reset(props) {
	const _el2 = _t1();
	_el2.$$click = props.onReset;
	return _el2;
}
delegateEvents(["click"]);
// One block at the end of the file styles both components.
App.css
.counter[data-lum-rdjmzp3m] {
  --accent: #5546ff;
  --space: 8px;
  gap: var(--space);
  display: flex;
}

.pill[data-lum-rdjmzp3m] {
  padding: var(--space) calc(var(--space) * 2);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  border-radius: 999px;
}

.ghost[data-lum-rdjmzp3m] {
  color: inherit;
  background: none;
}

.hot[data-lum-rdjmzp3m] {
  outline: 2px solid tomato;
}

Light and fast, measured

The same issue tracker built three ways: the JavaScript a server-rendered page loads.

JS on a server pagekB, brotli, lower is better
  1. Lumiose0
  2. Astro0
  3. SolidStart33
  4. SvelteKit38
  5. Remix 342
  6. Nuxt76
  7. React Router101
  8. Next.js119
All benchmarks

Explicit, for you and your agent

No hidden machinery: client boundaries where you write them, every diagnostic with a LUMxxxx code and a fix, and the docs in the package, served to your agent over MCP.

terminal
$ lumiose check
src/Counter.stsx:5:9 - warning LUM2001: `doubled` is computed once from a reactive value, so the JSX that uses it never updates

5 |   const doubled = count() * 2;
  |         ~~~~~~~~~~~~~~~~~~~~~

  help: Derive it lazily: `const x = () => …` (called as `x()` in JSX) or `computed(() => …)`.
  docs: lumiose docs errors/LUM2001

Found 0 errors, 1 warning in 1 file.
Docs and MCP for agents

Start

Enlighten your next project.