21 ms·
Velox – A <3kb reactive framework with O(1) updates (No VDOM)
- TheRemyyy 9mo agoVelox 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 9mo agoHi 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 9mo agoInteresting. Very first question you will probably be asked at some point: how different is it from solidjs?
- TheRemyyy 9mo agosmaller 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