I got tired of shipping megabytes of JS just to render small bits of dynamic UI.
So I built HMPL.js β a tiny (~24 KB) server-oriented templating language for JavaScript. It lets you send UI directly from the server with a simple block syntax, no framework overhead. Example:
<div>
<button id="btn">Click!</button>
Clicks: {{#request src="/api/clicks" after="click:#btn"}}{{/request}}
</div>
Itβs fetch-based (not XHR), supports events/forms, integrates JSON5, and sanitizes HTML via DOMPurify. Think of it as a smaller alternative to HTMX/Alpine.js when you just want server-driven interactivity with minimal JS.
Docs: hmpl-lang.dev
Would love feedback on where this could actually replace heavier setups ^ ^