Velox – A <3kb reactive framework with O(1) updates (No VDOM)
1 points
2 hours ago
| 3 comments
| github.com
| HN
aatd86
1 hour ago
[-]
Interesting. Very first question you will probably be asked at some point: how different is it from solidjs?
reply
TheRemyyy
2 hours ago
[-]
Velox is a next-generation web framework designed for ultimate performance and developer experience. Unlike traditional frameworks that rely on heavy Virtual DOM diffing, Velox compiles your declarative JSX directly into surgical DOM operations. The result is an application with O(1) updates and a runtime that is barely there.
reply
TheRemyyy
1 hour ago
[-]
Hi HN, I'm the creator of Velox.

I built this because I wanted the fine-grained reactivity of Solid/Svelte but with a mental model closer to what I was used to in React hooks.

The core idea is ditching the Virtual DOM entirely. The compiler (built as a Vite plugin) transforms the JSX directly into DOM instructions. - Runtime is < 3kb. - Updates are O(1) (targeted node updates). - 800+ downloads on npm in the first 12h (unexpectedly!).

Currently working on stabilizing the ecosystem (router, CLI). The compiler logic is in `packages/vite-plugin-velox` if you want to roast my code.

Happy to answer any questions about the implementation!

reply