
Sprae
Micro hydration for DOM tree
FreeOpen SourceUI LibraryNoCode208 impressions#13 of its week
Sprae adds minimal reactivity to HTML/JSX via reactive attributes for progressive enhancement.
- for
- Developers who want lightweight UI interactivity without a framework or build step.
- pricing
- open source
- license
- MIT
Key features
- HTML-first — Enhances existing HTML, JSX, MD or templates without rewriting or a build pipeline.
- Light & fast — Direct DOM updates without a virtual DOM, delivering faster performance than React, Vue, Lit, Alpine.
- Zero dependencies — Runs with no external dependencies; size ~11.6 KiB gzipped.
- CDN or ES-module — Can be loaded via script tag, CDN, or imported as an ES module for manual initialization.
- Configurable init — Built on preact-signals, swappable and configurable for custom setups.
- CSP build — Provides a Content-Security-Policy safe build that executes expressions securely.
Use cases
- Add live character count to a textarea on a static page
- Create interactive markdown documentation without a build step
- Enhance a marketing landing page with dynamic text updates
- Implement simple UI state like toggles or tabs in a static site
Sprae vs alternatives
Sprae | React | SvelteKit | ||
|---|---|---|---|---|
| Best for | Micro-hydration of static markup | Comprehensive React UI development | Svelte applications | Static site generation with Astro |
| Pricing | Open source | Free | Free | Free |
| DevHunt upvotes | 0 | 0 | 0 | 0 |
| Launched | Jan 2026 | — | — | — |
- Sprae vs React: Full UI library with virtual DOM and larger bundle size
- Sprae vs SvelteKit: Component-based framework with its own compiler
- Sprae vs Astro: Content-driven web framework with build step
Sprae FAQ
Why use Sprae instead of a full framework?+
Sprae adds interactivity without a build step, dependencies, or framework constraints, keeping pages simple and fast.
Is evaluating attributes safe?+
Expressions compile with new Function, so they are as safe as inline scripts; for untrusted content use the CSP build.
What happens if the script fails to load?+
Sprae progressively enhances markup, so the original HTML remains functional; hide FOUC with visibility rules.
Does Sprae support components?+
It does not provide a component model; reuse can be done via includes, templates, or custom elements from other libraries.
Is Sprae production-ready?+
Yes, it has been used on many sites for over three years, works in any browser with Proxy, and has no runtime dependencies.
Summarized by DevHunt from dy.github.io · Oct 4, 2026. Details may change; check the official site.
Sprae
React
SvelteKit



.png?width=64)








