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, with no rewrite.

Counter.stsxlive
import { signal } from "lumiose";

export default function Counter() {
  const count = signal(0);
  return (
    <button onClick={() => count.update((n) => n + 1)}>
      Clicked {count()} times
    </button>
  );
}

<style>
  button {
    padding: 8px 16px;
    border: 1px solid;
    background: none;
  }
</style>
try it
  1. 01

    Write

    TSX and its styles in one .stsx file, typed by stock TypeScript.

  2. 02

    Render

    Each route picks static, server or SPA. The component doesn't change.

  3. 03

    Hydrate

    Add client:idle where you use a component. It becomes an island.

  4. 04

    Measure

    Compared with the stacks you know, from committed benchmark runs.

@lumiose/ui

Components without opinions.

Accessible behaviour on native HTML, in plain black and white. Style them your way.

Browse components
  • First panel

Enlighten your next project.

npm create lumiose@latest my-app
Read the docs