Mode JS
The grammar. One function reads, writes, traverses and binds the DOM; any object
with get/sub keeps it live. 7.4 KB.
Plain HTML · CSS · JavaScript
The efficient standard for the content web.
Build fast, reactive interfaces with plain HTML, CSS and JavaScript. No build step. No dependency chain. No class soup. Just readable code.
Most of the web is content. It shouldn't cost application infrastructure. Blogs, news sites, documentation, catalogs — more than half the web serves pages, not apps. Microdom is an engineering standard for exactly that web: full interactivity, reactive data, animation — built on the browser's native engine, in kilobytes that respect the reader's battery, data plan and RAM.
What ships today
The core is the grammar; the modules are vocabulary you install by importing. Every piece stands alone, speaks the same protocol, and earns each byte it ships.
The grammar. One function reads, writes, traverses and binds the DOM; any object
with get/sub keeps it live. 7.4 KB.
The unit of state: atom, computed, effect.
Zero DOM. 1.1 KB. @microdom/mode/atom
Identity for collections: keyed rendering with lifecycle — nodes keep their
identity. 1.4 KB. @microdom/mode/list
The live-data engine: a columnar store for high-frequency feeds; every cell
speaks the atom protocol. 2.4 KB. @microdom/mode/data
Animation and movement — slides, fades, tweens — chained through the same
µ(...) call. 5.3 KB, optional. @microdom/mode/move
The design baseline for the content web: classless, cascade-first, semantic HTML styled out of the box. 11.6 KB min, 3.1 KB gzip.
Stable · v1.0.0the whole idea
µ("#price", { text: 42 }) // writes once
µ("#price", { text: priceAtom }) // keeps writing
Pass a value and µ writes it. Pass a reactive source — anything with
get/sub — and the DOM tracks it. Same syntax, no new API,
no virtual layer in between.
Select, read, write, traverse, bind.
Less than one framework's runtime.
Per-cell reactive updates, measured per tick.
On the workbench: Mode Router and Mode Base — see the ecosystem for status and scope.
Philosophy
AI can generate code. Humans still need to understand it.
MicroDOM is not anti-AI. We embrace AI-generated code. But generation is the easy part — what survives is the code a human can read, reason about and maintain six months later.
Designed around a few core ideas
Every byte must justify its existence.
HTML, CSS and JavaScript should be understandable directly.
Plain files, CDN imports and simple hosting are enough.
Include only the pieces you actually need.
The browser already provides the primitives; microDOM embraces web standards instead of abstracting them away.
Apps, widgets, docs, embedded and constrained environments.