Launched January 6, 2026
Sprae

Sprae

Micro hydration for DOM tree

FreeOpen SourceUI LibraryNoCode208 impressions#13 of its week

Easy progressive enhancement for HTML / JSX. Add UI interactions with reactive attributes.

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
dy/sprae 211 9JavaScriptupdated 18 days ago

Key features

6 features of Sprae
  • 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

SpraeReactSvelteKitAstro
Best forMicro-hydration of static markupComprehensive React UI developmentSvelte applicationsStatic site generation with Astro
PricingOpen sourceFreeFreeFree
DevHunt upvotes0000
LaunchedJan 2026———

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.