Motus

Everything you need. Nothing you don't.

A complete compiled template language designed for edge-first rendering.

Partial Evaluation

Built from the ground up around partial evaluation. Static expressions fold at compile time into constants — only dynamic holes become bytecode. The edge does minimal work.

SQL as First-Class

Streaming Bytecode

Pages begin rendering before the full payload arrives. Chunked transfer from origin to edge to browser.

Component System

Props, slots, scoped CSS. Position-based syntax with no namespace noise. Nest freely.

AI-Friendly by Design

Pure HTML + CSS output. LLMs already know XML. No virtual DOM, no JSX transforms — just markup that any AI can read, write, and reason about.

Strong Schema

Write Less. Render Faster.

Motus templates read like HTML, compile like a programming language.

ProductCard.mot
Output
Rendered HTML

Wireless Headphones

$99.99

products.mot
Pipeline
Compilation Flow

.mot sourcebytecodeWASM VMstreamed HTML

reactive.mot
Output
Browser-side Reactivity

Count: 0

Double: 0

Increment

Reactive binding markers enable targeted DOM updates without full re-renders.

schema + page.mot
Output
Compile-time Validation

From Source to Stream

The compilation pipeline that powers every page render.

.mot Source
Lexer / Parser
Compiler
Bytecode
WASM VM
HTML Stream
Origin

Origin Server

Compiles .mot files to binary bytecode on first request. Caches compiled modules. Handles data RPCs for SQL queries.

Edge

Edge Worker

Cloudflare Worker interprets bytecode via WASM. Streams HTML chunks to the browser as they're rendered.

Browser

Browser Runtime

Receives streamed HTML progressively. Reactive binding markers enable targeted DOM updates without re-renders.

Write .mot templates, hit compile, see streaming HTML rendered at the edge. No setup required.