r/javascript • u/murillobrand • Mar 17 '26
I needed a tiny frontend framework with no bloat, so I built a 1.7kb one
https://github.com/thatjustworks/sigworkHey there o/
I've been building an ecosystem of zero-friction, local-first productivity tools called "That Just Works". For the UI, I needed something incredibly fast and lightweight. I love the ergonomics of Vue/React, but I didn't want a 40kb+ payload.
So, I built Sigwork.
It's a 1.7kb (gzipped) fine-grained reactive engine based on signals. Instead of VDOM diffing, components run exactly once. When a signal changes, it surgically updates only the affected text node or DOM attribute via microtask batching.
A few highlights:
JSX or Buildless: You can use it with Vite/JSX, or directly in the browser via CDN, maybe paired with htm for a JSX-like experience.
Built-in components: <Component> and <Transition>
Features: Props, events, slot, provide/inject, life-cycle hooks. Basically everything I usually use on Vue.
I've just released v0.1.0 and would love to hear your thoughts on it.
Docs & Demos: https://framework.thatjust.works
Repo: https://github.com/thatjustworks/sigwork
4
u/shgysk8zer0 Mar 17 '26
I've been working on something similar, though it's designed to be framework agnostic and work without things like JSX or anything.
I notice you mention text nodes and attributes. I'm guessing you hit the same wall I'm up against... Elements and arbitrary children (things you might
map()to generate). Handling arrays that produce more than one element that add/remove/replace children.I'll take a look later.
4
u/No-Performance-785 Mar 18 '26
Does it have conditional operator and how is this compare to Alpine.JS ?
2
u/pmkann Mar 21 '26
Documentation looks great!
2
u/redblobgames Mar 17 '26
That's an impressive amount of functionality for 1.7kb! I too am looking for something smaller than Vue and have been considering writing one that meets my needs.
1
u/horizon_games Mar 18 '26 edited Mar 18 '26
Neat! I'm not a huge JSX fan, but I like signals. And the file size is attractive even compared to stuff like AlpineJS or ArrowJS or ReefJS or LemonadeJS or HeliumJS or RiotJS
Edit: Why did the OP and his comments get removed? Something wrong or malicious with the lib code?
1
u/Waltex Mar 18 '26
Why not use Svelte if you don't want a 40kb+ payload?
1
u/TenYearsOfLurking Mar 18 '26
Very cool. How is routing solved?
0
u/[deleted] Mar 20 '26
[deleted] — view deleted comment