Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
March 21, 2023 22:07
March 21, 2023 13:47
March 21, 2023 22:09
March 21, 2023 22:09
November 15, 2021 13:42
March 10, 2023 14:05
March 21, 2023 15:22
March 21, 2023 22:07
March 9, 2023 20:54
Million Banner

What is Million?

Million is an extremely fast and lightweight (<4kb) virtual DOM that makes React up to 70% faster.

Oh man... Another /virtual dom|javascript/gi library? I'm fine with React already, why should I need it?

Million makes creating user interfaces as easy (It's just React!), but with faster rendering and loading speeds. By using a fine-tuned, optimized virtual DOM, Million.js reduces the overhead of the React Reconciler.

Furthermore, while alternative libraries like Preact reduce bundle sizes via efficient code design, Million.js can be used inside React and is much faster than Preact.

TL;DR: Imagine React at the speed of raw JavaScript.

πŸ“š Learn Million in <5 minutes! β†’

Installing Million

Inside your project directory, run the following command:

npm install million


This repo is a "mono-repo" with modules. Million ships as one NPM package, but has first class modules for more complex, but important extensions. Each module has its own folder in the /packages directory.

You can also track our progress through our Roadmap.

Module Description
million The main Virtual DOM with all of Million's core.
react A module that gives React compatibility for Million.
compiler An optimizing compiler for Million in React.
jsx-runtime A simple JSX runtime for Million core.

Resources & Contributing Back

Looking for the docs? Check the documentation out.

Want to talk to the community? Hop in our Discord and share your ideas and what you've build with Million.

Have a question about Million? Post it on the Discord or GitHub Discussions and ask the community for help.

Find a bug? Head over to our issue tracker and we'll do our best to help. We love pull requests, too!

We expect all Million contributors to abide by the terms of our Code of Conduct.

β†’ Start contributing on GitHub


Million takes heavy inspiration from the following projects:

  • blockdom (GΓ©ry Debongnie) 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 (Fabio Spampinato) The Million.js "template" concept is derived from Voby's template() API.

  • bun for their homepage. The Million.js homepage is a remix of what they have currently.

  • ivi, Preact, and more

Million is being used at companies like Wyze and Dimension, as well as open source work like Quartz, TinyPages, and more.


Million is MIT-licensed open-source software by Aiden Bai.

View count