GrainJS
a light TypeScript web framework
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
GrainJS is a JavaScript / TypeScript library for building dynamic web applications.- It's in part inspired by React, but based on observables (like Knockout) instead of virtual dom.- It is lightweight, has no dependencies, and takes only ~30KB minified.- It needs no special tooling. It's nothing more than a library.- It supports convenient DOM-building in JS, event dispatching, DOM event subscriptions, 9disposable components, and in-code CSS styling.- It's fully typed for use with TypeScript.- It's proven its worth by powering Grist's rich frontend app.Source code: https://github.com/gristlabs/grainjs/
HN · launched Dec 26, 2025 · 5 upvotes (top 90%) · 0 views
Niche: software development frameworks · 154 launches, 2 in the last 7 days ▼ -89% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 154 launches in software development frameworks →
Could you build this?
No Building a custom reactive UI framework with observable dependency tracking, memory/disposable lifecycles, and direct DOM bindings from scratch requires deep expertise in frontend engine architecture.
What it would actually take: Creating a framework like GrainJS requires designing a custom fine-grained reactivity graph (DAG) with automated topological dependency resolution, glitch-free computation propagation, and explicit memory disposal management. The architecture requires writing a high-performance virtual-DOM-free DOM reconciler in TypeScript that maps observable state updates directly to browser DOM mutations without memory leaks.
Discussion
4 comments analyzed.
Competitors mentioned: React, Vue
Concerns raised: learning curve overhead, unclear value proposition
Competitors
Other products that read as similar to this one : 346 launches clear the similarity bar, closest 8 shown.
Attention rank: #334 of 347 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 55 days after the earliest competitor.
- Crust · hn · 2026-03-17 · 95 upvotes · similarity 0.51
- Titan · hn · 2025-12-11 · 49 upvotes · similarity 0.51
- Iceberg-JS, a TypeScript Client for the Apache Iceberg REST Catalog · hn · 2025-12-09 · 5 upvotes · similarity 0.49
- Nectar, a Rust-like React that compiles to WebAssembly · hn · 2026-07-06 · 29 upvotes · similarity 0.49
- textjs · github · 2026-11-02 · 106 upvotes · similarity 0.48
- Domphy · hn · 2026-06-19 · 11 upvotes · similarity 0.48
- SynCloudOS · github · 2026-10-07 · 11 upvotes · similarity 0.47
- container · github · 2026-09-23 · 11 upvotes · similarity 0.47
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.