Show HN: Q.js – Smaller than React/Vue, yet more powerful (40KB gzipped)
We’re not a big company like Google or Meta, so we never released it publicly. Now I’d like to, and thought it would be a good idea to post it on HN and gather some feedback.
Q.minimal.js was designed to be dropped into any website. It lazy-loads all your components only as they are needed and appear on the screen. The minimal file is meant as a starting point for developers, and if you later want more features from the Qbix platform, you can simply swap it out for the larger Q.js file instead.
Here are some advantages of Q.minimal.js compared to React, Angular, Vue, or whatever you might be using now:
40KB gzipped, smaller than React (without ReactDOM), smaller than Vue runtime, far smaller than Angular
No build step, just drop it in; works with plain .html <template> files or with JS/Handlebars templates
Components & tools, like React components or Vue directives, but attachable as behaviors to any DOM element
Faster rendering with requestAnimationFrame and .rendering(), no giant virtual DOM reconciliation
Built-in power: batching, caching, lazyloading, routing, slot-based page activation, all included in core
Universal dev model: designers can use pure HTML, developers can use JS, both work interchangeably
Incremental: drop it into an existing site without rewriting or compiling anything
If you have a free hour, give it a try! Play around with it, and let me know what you think. It's 100% free and open source under MIT license and I'm looking to polish up any rough edges before letting developers know about it.
No comments yet