Skip to content

Build ambitious websites, ship plain HTML.

Sklair is an ahead-of-time whole-project HTML compiler. Compose with components, run Lua at compile time, generate complete document trees, and leave the browser with exactly what it understands.

A whole-project compiler for HTML.

Sklair starts with real HTML documents, understands their dependencies as one project, and resolves the work the browser should never have been asked to do.

Components, props, slots, head contributions, assets, compile-time logic, and generated documents become ordinary HTML files. There is no virtual DOM, hydration pass, or mandatory client runtime left behind.

Write the structure once. Compile every variation.

Props, conditions, slots, and nested components remain authoring tools. Sklair resolves every variation before deployment and leaves only the finished structure.

Component definition

<header class="site-header">
    <a class="brand" href="/">Sklair</a>
    <nav sklair-if="links"><slot></slot></nav>
    <ThemeControl></ThemeControl>
</header>

Source document

<SiteHeader links="true">
    <a href="/docs/">Documentation</a>
    <a href="/download/">Download</a>
</SiteHeader>

Compiled HTML

<header class="site-header">
    <a class="brand" href="/">Sklair</a>
    <nav>...</nav>
    <button aria-label="Change colour theme">...</button>
</header>

Browser

Sklair

The browser only gets the finished document.

Sklair treats composition and generation as compiler work, while keeping the source recognisably HTML.

Structural components

Recursive composition, typed-by-use props, slots, head contributions, and co-located assets.

Compile-time Lua

Static work once per definition, dynamic work once per instance, and explicit trusted markup.

Generated documents

Turn Markdown, data, or project sources into complete document trees through reusable layouts.

Ridiculous compilation speed

A small binary does the work once, then writes direct, deterministic output.

HTML deserved better.

Keep the expressive source. Move the machinery to compile time. Ship the document.