top | item 46399224

Velox – A <3kb reactive framework with O(1) updates (No VDOM)

2 points| TheRemyyy | 2 months ago |github.com

4 comments

order

TheRemyyy|2 months 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.

TheRemyyy|2 months 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!

aatd86|2 months ago

Interesting. Very first question you will probably be asked at some point: how different is it from solidjs?

TheRemyyy|2 months ago

smaller foot print aims for security and performance, im going to expans the library in next few weeks if you have any ideas or just bad things you dislike about it say it