aihu — The reactive Web Components framework

aihu aihu

Durable Web Components your AI agent can drive — not disposable UI it generates.

A complete Web Components framework — routing, SSR, auth, data, and deploy — where every component is also an MCP tool.

npx create-aihu my-app --template agent

What is aihu?

aihu builds durable Web Components your AI agent can read and drive — not disposable UI it has to generate. You write .aihu Single-File Components (block-structured with @state, @template, @style, and @agent), and a Rust compiler emits standards-compliant Web Components plus a machine-readable agent manifest. An agent inspects a real component (llms.txt + MCP) and calls its actions on the live, on-screen instance over a server-mediated capability bridge — the component the user sees is the one the agent drives. The runtime is sub-2 kB and the output is vanilla custom elements. Under the hood it's a full meta-framework — file-based routing, SSR, loaders, auth, and cloud adapters are first-class, not add-ons.

Why durable, not generative

Try it in one command — npx create-aihu my-app --template agent — or read the introduction, getting started, or API reference.