Show HN: Q.js – Smaller than React/Vue, yet more powerful (40KB gzipped)
10 days ago
- #frontend
- #javascript
- #framework
- Q.js is a lightweight (~40KB gzipped) front-end web framework from Qbix, serving as an alternative to jQuery, Angular, Vue, etc.
- It requires no build step, working directly with plain .html and .js files.
- Features include direct DOM updates (no Virtual DOM overhead), autoloading methods & tools, and built-in batching & caching.
- Q.js supports tools (reusable components), pages (for SPA routing), and a comprehensive event system with automatic cleanup.
- It offers progressive enhancement, SEO-friendly rendering, and a unified full-stack philosophy as part of the Qbix Platform.
- The framework includes built-in internationalization (i18n), templates (Handlebars, HTML, JS), and animations.
- Q.js is designed for high-performance apps with low memory usage and a simple learning curve.
- It supports dynamic element creation, template rendering, and tools can be defined in HTML or JS files.
- The framework automatically handles tool activation, removal, and event cleanup, enhancing developer productivity.
- Q.js is compared favorably against React, Vue, Angular, and Svelte in terms of size, performance, and features.