Backend developers
You render HTML in Rails, Laravel, Django, or WordPress and need real interactivity on a few screens — without bolting on an SPA.
Open source · 7 KB gzip · no build step
Micra drops into Wordpress, Rails, Laravel, Django or any other solution and makes server-rendered HTML reactive — the filterable tables, slide-over forms, and dashboards that internal tools and small SaaS apps are made of. 7 KB, no toolchain, no rewrite.
npm install micra.js or one script tag from a CDN.
<div data-component="counter">
<button @click="dec">-</button>
<span data-text="count"></span>
<button @click="inc">+</button>
</div>
<script type="module">
import * as Micra from 'micra.js'
Micra.define('counter', {
state: { count: 0 },
inc() { this.state.count++ },
dec() { this.state.count-- },
})
Micra.start()
</script> Where it fits
Manual DOM, event wiring by hand. Fast to start, hard to keep coherent.
Reactive state and directives over server-rendered HTML. No build, no SPA.
Full SPA and toolchain. Powerful, but heavy for an admin or a content site.
Who it's for
You render HTML in Rails, Laravel, Django, or WordPress and need real interactivity on a few screens — without bolting on an SPA.
Filterable tables, slide-over forms, dashboards, modals — the CRUD-heavy screens where a full framework is overkill but jQuery turns to spaghetti.
Ship a product, or a proof-of-concept, this week. One script tag, no toolchain, no lock-in — and your AI writes it right the first time.
Hand off client sites the next person can actually maintain: plain HTML with data-* directives, not a bespoke build to inherit.
Built for how you code now
One way to do each thing, a tiny directive surface, and expressions an AST can validate. The small surface that makes Micra easy to learn is exactly what makes an LLM generate it right — no hallucinated APIs, no framework soup.
Ships an LLM guide, a ready-made prompt, and a
/llms.txt the model can read.
Add a script tag or import the module. Nothing to compile, bundle, or configure. Open the file and it works.
Drops into Rails, Laravel, Django, or plain HTML. Your server renders the markup; Micra makes it reactive.
The entire runtime. No virtual DOM, no peer packages, nothing extra to keep updated or audit.
A custom expression engine with no eval. Works where unsafe-eval is forbidden — extensions, banking, gov.
Copy, paste, own it
Modal, combobox, command palette, data table, date picker, toast — 14 primitives with keyboard support and ARIA built in. Copy the markup and the component into your project; there's nothing to install beyond Micra.
Proof, not slides
A full admin panel — tables with filters, slide-over forms, dark mode — built as a single no-build HTML file on Micra.
FAQ