Write HTML. Ship a website, a web app, or both.
sinter compiles plain HTML pages into fast sites. A page with nothing to run ships no JavaScript. A page that talks to your JSON API gets live data, instant updates and a first frame that already has its data, from a few attributes. It's the same tool and the same syntax in both cases, and the build checks every expression, so a typo fails the build and never reaches a visitor.
npm create sinter my-app or try a live dashboard in the browser, with nothing to install.
| 631 lines for the RealWorld app. Angular's official one is 2,210 |
100 / 100 Lighthouse, mobile and desktop. No layout shift |
0 KB of JavaScript on a static page. About 16 KB on an app page |
~10× cheaper than server rendering for a first frame with data |
Each implementation passes RealWorld's official end-to-end suite in its mode (spa, or ssr for a server-rendered one) and was measured on the same machine under the same conditions: comparison, first-paint benchmark. The Lighthouse score depends on the data and the styles: when the largest element on the screen is filled from the API, the largest paint waits for that response. The server layer avoids this by putting the data in the first frame. The running copy is served that way, and PageSpeed Insights gives it a performance score of 100 (2026-11-26).
1. Start with a page. A layout and components are HTML files. The build expands them, so the result is just HTML, with no JavaScript and nothing to hydrate.
<!-- about.html -->
<site-layout data-sn-with="{ title: 'About' }">
<h1>About us</h1>
<team-grid data-sn-with="{ people: [{ name: 'Ada' }, { name: 'Grace' }] }"></team-grid>
</site-layout>sinter: about.html: no JavaScript
2. Add data. Point a resource at your API and bind it. You don't write fetch code or a store.
<sn-resource name="contacts" src="/api/contacts" key="id" order="name"></sn-resource>
<ul>
<template data-sn-for="c in contacts">
<li data-sn-text="c.name"></li>
</template>
</ul>The request starts before the page has finished parsing, and last visit's data can be on screen in the first frame. With the optional server layer, today's data is there too, and the server does no rendering.
3. Make it interactive. Filter as you type. Delete at once, and put the row back if the server refuses.
<section data-sn-state="{ q: '' }">
<input type="search" data-sn-model="q">
<template data-sn-for="c in contacts.filter(c => c.name.includes(q))">
<li>
<span data-sn-text="c.name"></span>
<button data-sn-delete="/api/contacts/{c.id}" data-sn-optimistic="remove(c)">Delete</button>
</li>
</template>
</section>4. Make it live. Changes other people make show up as they happen, in the right list.
<sn-sync src="/api/events">
<sn-event name="contact_updated" resource="contacts" op="upsert" value="$event.contact"></sn-event>
<sn-event name="contact_removed" resource="contacts" op="remove"></sn-event>
</sn-sync>5. Get it wrong, and the build tells you. The compiler knows every name an expression can use. Give it your OpenAPI spec or TypeScript types, and it checks fields too.
contacts.html:5:52 error SN201 unknown-identifier: `qq` is not defined here. Did you mean `q`?
contacts.html:7:29 error SN208 type-error: Property 'nmae' does not exist on type 'Contact'. Did you mean 'name'? (TS2339)
Your editor shows the same errors as you type, along with completion and hover.
Most of what you'd otherwise assemble from separate libraries ships with sinter. There's nothing to configure until you want something different.
| Pages and content | Layouts and components with typed props, slots, events and scoped styles · pages with no JavaScript · several languages from one source · markdown · sitemaps, canonical URLs and redirects |
| Data | Resources with caching, background refresh and fan-out · live updates over SSE, WebSocket or SignalR · pagination with the page in the URL |
| Changing data | Optimistic updates that stay correct when requests overlap · server validation errors on the right field · retries that survive a dropped connection · dialogs, popovers and keyboard shortcuts in markup |
| Speed | First frame with data · next-page data on hover, prerendering and page transitions · optimized images and self-hosted fonts · heavy packages loaded on demand · list rendering on par with ivi and faster than Solid and Svelte on CPU |
| Servers (optional) | Layers that write your API's JSON into the page as it's sent, for Node, Bun, Deno and Workers, Rust (axum) and .NET |
| Tooling | Diagnostics that suggest a fix · type checking against OpenAPI or TypeScript · editor support for VS Code, Neovim, Helix and Emacs · testing in plain Vitest · llms.txt for coding assistants |
| Safety | Runs under a strict CSP (script-src 'self') · nothing is evaluated in the browser · markup from the network stays inert |
When attributes aren't enough (a canvas, a chart library, an editor), give a component a script. sinter renders the markup and your code handles the rest.
- Dashboard: four services with live metrics, checked against the backend's OpenAPI file.
- RealWorld: the full Conduit app, passing the official end-to-end suite. Running copy (PageSpeed Insights: 100).
- Static site and multilingual site: pages that ship no JavaScript, plus one page that loads data.
- Recipes: 22 small pages, each one tested: filters, dialogs, offline drafts, SignalR and more.
- SPA frameworks (React, Vue, Angular): you get the same app with no router, store or services to write. sinter apps are multi-page. Navigation is fast, and swaps can keep elements such as a player running across pages, but there is no client-side router.
- SSR frameworks (Next, Nuxt, SvelteKit): you get the same first frame without rendering on the server, so a server core handles about ten times the traffic.
- htmx, Datastar: sinter uses the JSON API you already have instead of an HTML-rendering server, its updates are optimistic, and its attributes are checked at build time, not at runtime.
- Alpine, petite-vue: sinter includes fetching, caching, live updates and rollback, and needs no
unsafe-eval.
Details and numbers: RealWorld comparison.
When not to use sinter: you need an app shell that stays in memory for the whole session; the app is mostly one canvas or editor; you can't have a build step; your backend has no JSON API; or you need 1.0 stability (renames are listed in the changelog).
npm install @tiaforge-ui/sinter// vite.config.js
import sinter from '@tiaforge-ui/sinter/vite';
export default { plugins: [sinter()] };Then read the attribute reference, or start with resources and components. It works in current Chromium, Firefox and Safari. A few navigation extras depend on the browser and fall back to a normal page load (navigation).
See CONTRIBUTING.md. MIT license.