Skip to content

manifesto

HTML is the application, not the target.

01 — our mission

Offer a small, cohesive set of primitives that any team can adopt progressively1 — and shrink the distance between "the server delivers HTML" and "the interface reacts as if a framework were behind it".

02 — two schools

React, Vue, and Angular treat the DOM as an implementation detail to be abstracted away. State lives in JavaScript, the UI is a function of it, and the cost is a parallel universe: a runtime shipped to the browser, a build step, and a state model that has nothing to do with the DOM it produces.

htmx goes the opposite direction and restores HTML as the application. But it has no dataflow inside the client: a filter reacting to an input becomes a network request, because there is no other channel.2

The gap between these two schools is the one kuba closes: client-side dataflow without leaving HTML, and without a JavaScript state runtime to maintain.

fig-1.svg
kb-inputkb-fetchkb-renderchangedsucceeded
fig. 1 — the DOM event system, available since 19953

03 — how kuba solves it

Every element can dispatch an event; every element can listen for one. Frameworks reinvented this in userland — props, stores, observables — because raw DOM events are too unstructured to compose an application from.

kuba's answer is to standardize the vocabulary, not to replace the mechanism. An on attribute describes, in plain markup, which event of which element drives which method, property, or attribute.

The native CustomEvent does the actual delivery; kuba only supplies the grammar. Two elements react to each other, and neither imports the other.

Written in plain JavaScript, with zero runtime dependencies.4

04 — four things we believe

belief-1.txt

Trust the platform before reinventing it

We write code only when the browser genuinely doesn't offer the behavior — never out of stylistic preference.

belief-2.txt

Be creative, but stay accountable

A types.d.ts with no implementation isn't a contract; an implementation with no types.d.ts isn't a public component.

belief-3.txt

Every interaction matters

How an event is named, the wording of a validation message, the aria-* attribute missing from an element.

belief-4.txt

Don't treat a constraint as an excuse

When a scenario doesn't fit the model, the way forward is to understand why it resists, not to route around it.

05 — what we're aiming for

Lower the cost of change. Leaning on native APIs, each element evolves in isolation, with no cascade of edits across other layers.

Living documentation. This site runs against the published package from a CDN — so a broken release breaks the documentation, visibly, instead of passing unnoticed.

Make the reasoning visible. Why Echo overrides dispatchEvent, why there is no central store. That's what lets someone extend the library instead of only consuming it.

We build with the DOM, not on top of it.