Posts about Web Components

I built a live ops dashboard with no chart library and no framework

Stat tiles, a line chart against capacity, meters and a status grid, updating every second from one Server-Sent Events stream. All plain custom elements.

Server-side paging and sorting for an HTML table, with one async function

Hand-written table paging has a race condition almost everybody ships. Let the table ask for pages, pass the abort signal on, and the race is gone.

Your line of business web does not need a framework

Frameworks were built to fill gaps in the browser. Most of those gaps are closed. What is left for a business page is a table, some tabs and a chart, and…

tsc looked at my templates and saw a nice string.

Templates are strings, so tsc cannot see a typo in them. Angular and vue-tsc can. npx @relax.js/core check closes most of that gap by resolving every template…

How an agent verifies a webpage it can never look at

mount, flush, fakeServer and mountRouting. The four helpers that let an agent verify a page the way the app uses it, from vitest, without a server or a browser.

A blank page and a green test: the bug an agent can't see

A template that cannot resolve a path renders an empty string. For a human that is a blank spot on the page. For an agent it is a green test. Here is how the…

No virtual DOM, nothing re-renders: the whole model in four rules

Plain custom elements, a synchronous lifecycle, nothing re-renders on its own, and typed events. Four rules, each chosen because a reviewer can check it by…

Why I stopped handing agents a framework

Coding agents write better Vue and Angular than they will ever write for my library. I use the library anyway, and this is the honest version of why.