Million.js
Million.js is an extremely fast and lightweight (<4kb
) virtual DOM that makes React components (opens in a new tab) up to 70% faster (opens in a new tab).
Oh man... Another
/virtual dom|javascript/gi
(opens in a new tab) framework? I'm fine with React (opens in a new tab) already, why do I need this?
Million works with React. Million makes creating web apps just as easy (It's just wrapping a React (opens in a new tab) component!), but with faster rendering and loading speeds. By using a fine-tuned, optimized virtual DOM, Million.js reduces the overhead of React (try it out here (opens in a new tab))
TL;DR: Imagine React (opens in a new tab) components running at the speed of raw JavaScript.
Choose Your Own Adventure
If you're just looking into trying out Million.js, you can follow guided examples with the Quickstart. If you know what you're doing, jump right into the Installation Guide.
If you're confused about an error message, you can check out the rules of blocks to see what's allowed and what's not.
Sponsors
Acknowledgments
Million takes heavy inspiration from the following projects:
blockdom
(opens in a new tab) (Géry Debongnie (opens in a new tab)) Thank you to Géry pioneering the concept of "blocks" in the virtual DOM. Many parts of the Million.js codebase either directly or indirectly derive from his work.voby
(opens in a new tab) (Fabio Spampinato (opens in a new tab)) The Million.js "template" concept is derived from Voby'stemplate()
API.bun
(opens in a new tab) for their homepage.react
(opens in a new tab) andturbo
(opens in a new tab) for their documentation. Many parts of the current Million.js documentation are grokked and modified from theirs.ivi
(opens in a new tab), Preact (opens in a new tab), and more (opens in a new tab)
Million is being used at companies like Wyze (opens in a new tab) and Dimension (opens in a new tab), as well as open source work like Quartz (opens in a new tab), TinyPages (opens in a new tab), and more (opens in a new tab).
License
Million is MIT-licensed open-source software by Aiden Bai (opens in a new tab) and contributors (opens in a new tab):