million VS Alpine.js

Compare million vs Alpine.js and see what are their differences.

million

Optimize React performance and make your React 70% faster in minutes, not months. (by millionjs)

Alpine.js

A rugged, minimal framework for composing JavaScript behavior in your markup. (by alpinejs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
million Alpine.js
48 242
15,163 26,798
4.9% 1.8%
9.7 9.3
8 days ago 4 days ago
TypeScript HTML
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

million

Posts with mentions or reviews of million. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-04.
  • Show HN: Million Lint – ESLint for Performance
    1 project | news.ycombinator.com | 29 Feb 2024
    Hey HN! Founder of Million – We’re building a tool to that helps fix slow React code. Here is a quick demo: https://youtu.be/k-5jWgpRqlQ

    Fixing web performance issues is hard. Every developer knows this experience: we insert console.log everywhere, catch some promising leads, but nothing happens before "time runs out." Eventually, the slow/buggy code never gets fixed, problems pile up on a backlog, and our end users are hurt.

    We started Million to fix this. A VSCode extension that identifies slow code and suggests fixes (like ESLint, for performance!) The website is here: https://million.dev/blog/lint

    I realized this was a problem when I tried to write an optimizing compiler for React in high school (src: https://github.com/aidenybai/million). It garnered a lot of interest (14K+ stars) and usage, but it didn't solve all user problems.

    Traditionally, devtools either hinge on full static analysis OR runtime profiling. We found success in a mixture of the two with dynamic analysis. During compilation, we inject instrumentation where it's necessary. Here is an example:

      function App({ start }) {
  • Million 3.0: All You Need To Know
    2 projects | dev.to | 4 Feb 2024
    To be honest, it fills me with great joy to finally be able to witness the launch of the 3.0.0 major release of Million.js; this is something that has been talked about since maybe July 2023, but, Aiden Bai finally assembled a team to get it out there and just last week on the day 2 February as at 8:00 am PST (Pacific Standard Time) Million v3 was released!!
  • React Jam just started, making a game in 13 days with React
    5 projects | news.ycombinator.com | 26 Dec 2023
    >> React is not traditionally used for making games, but that's part of the fun and the challenge. R

    > MS Flight Simulator cockpits are built with MSFS Avionics Framework which is React-like and MIT licensed:

    https://github.com/microsoft/msfs-avionics-mirror/tree/main/...

    preactjs may or may not be faster: https://preactjs.com/

    Million.js is faster than preact, and lists a number of references under Acknowledgements: https://github.com/aidenybai/million#acknowledgments

    https://million.dev/docs :

    > We use a novel approach to the virtual DOM called the block virtual DOM. You can read more on what the block virtual DOM is with Virtual DOM: Back in Block and how we make it happen in React with Behind the block().*

    React API reference > Components > Profiler:

  • My Journey to Accelerate Load Times in Heavy Frontend
    3 projects | dev.to | 8 Oct 2023
    Consider replacing the default virtual DOM with an alternative solution. For instance, Million.js
  • Welcome to the dark side. Ree.js awaits you!
    3 projects | dev.to | 5 Oct 2023
    @aidenybai 's Millionjs
  • Show HN: I made a tool that makes React faster automatically
    1 project | news.ycombinator.com | 10 Aug 2023
    In brief: I'm Aiden, 18, and have spent the past 2 years of high school working on Million.js, an open source React alternative with 11K stars on GitHub and hundreds of thousands of npm downloads.

    Recently, I released automatic mode, which detects slow React components and automatically optimizes the reconciliation phase. It's still in beta but chugging along. It's around 70% faster than React on the JS Framework Benchmark and you can see how I did it here: https://million.dev/blog/virtual-dom

    Interested? Check it out here: https://million.dev

  • What are your thoughts on Preact Signals? I've thoroughly enjoyed it but am now thinking of dropping it because it results in a fat stack of issues in the Next 13 server logs and because Dan Abramov himself advised against it. Nothing's broken, but it doesn't feel like it makes sense to use anymore
    1 project | /r/react | 5 Jul 2023
    Either that or add signals to the library itself. I don't get why it isn't in there when a ton of React's competitors are either using signal-like behavior or forgoing the clearly-obsolete way React handles its VDOM. When a high schooler can create something to make the library faster, you know that the core team is either prioritizing the wrong things or someone managing React is too prideful to admit that a lot of what worked a decade ago doesn't work today.
  • Million – Fast and lightweight virtual DOM that makes React up to 70% faster
    1 project | news.ycombinator.com | 11 Jun 2023
  • Introducing Million.js - A Lightning-fast Virtual DOM for React!
    1 project | /r/welovecodes | 11 Jun 2023
    Reference: https://million.dev/
  • React Up to 70% Faster
    1 project | news.ycombinator.com | 11 Jun 2023

Alpine.js

Posts with mentions or reviews of Alpine.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-09.
  • Biometric authentication with Passkeys
    3 projects | dev.to | 9 Mar 2024
    Alpine.js for reactive frontend
  • 🤓 My top 3 Go packages that I wish I'd known about earlier
    6 projects | dev.to | 1 Mar 2024
    ✨ In recent months, I have been developing web projects using GOTTHA stack: Go + Templ + Tailwind CSS + htmx + Alpine.js. As soon as I'm ready to talk about all the subtleties and pitfalls, I'll post it on my social networks.
  • Htmx Is Composable?
    3 projects | news.ycombinator.com | 17 Jan 2024
    > But honestly, torn towards htmx but undecided.

    We are in the middle of migrating from our monster react application into server rendered pages (with jinja2). The velocity at which we are able to ship and the reduction of complexity has been great so far.

    Managing client side state for simple things like (is the dropdown open/closed), listening to keyboard events and such can be done with something like alpine-js [1] without all the baggage that something like react brings.

    It appears this is already the trend with JS frameworks too - with server side rendering being the new norm.

    [1] https://alpinejs.dev/

  • Pocketbase: Open-source back end in 1 file
    15 projects | news.ycombinator.com | 6 Jan 2024
  • Coming to grips with JS: a Rubyist's deep dive
    16 projects | dev.to | 29 Dec 2023
    Sure, you can use any number of JS-avoidance libraries. I'm a fan of Turbo, and there's also htmx, Unpoly, Alpine, hyperscript, swup, barba.js, and probably others.
  • What is your opinion about developers who do direct DOM manipulations instead of using modern web frameworks (like React, Vue, Angular) to achieve maximum performance?
    1 project | /r/webdev | 6 Dec 2023
    Direct DOM, but with a library. Specifically AlpineJS since it follows Vue closely in design practices allowing me to scale into a full web application if necessary (basically swapping to Vue takes minimal work). The Morph plugin is specifically what I like using.
  • Kicking the tires with NestJS and Hotwire: Part II
    2 projects | dev.to | 15 Nov 2023
    If you want more details on the initial setup I encourage you to take a look at the Part I that covers more of the initial implementation. For this portion, I added Prisma as an ORM, a frontend style library called Tachyons, and AlpineJS to handle any client-side interactions. I did this to avoid needing to add a client-side bundler to the build and instead just rely on plain old module imports to compose the frontend. This is now the default for Rails and it is quite nice to not need any additional build tools for the client.
  • Deveplop a simple GUI app by Wails use Golang
    6 projects | news.ycombinator.com | 6 Nov 2023
    - [swallow-pywebview](https://github.com/rangwea/swallow-pywebview): Base on [pywebview](https://pywebview.flowrl.com/) using Python,the frontend base on [alpinejs](https://alpinejs.dev/) and [tailwindcss](https://tailwindcss.com/)。
  • How to Make an Animated Number Counter with Tailwind CSS
    1 project | dev.to | 3 Oct 2023
    If you’ve followed our other tutorials, you might be familiar with Alpine.js. It’s a lightweight JavaScript library that allows you to add interactivity to your site without writing a single line of JavaScript. It’s incredibly easy to use, and we’ll show you how to make the animation trigger when the user scrolls to it.
  • A First Look at HTMX and How it Compares to React
    6 projects | dev.to | 18 Sep 2023
    The approach is not new, essentially a variation of Knockout, Alpine, and similar "JS-in-HTML" approaches.

What are some alternatives?

When comparing million and Alpine.js you can also consider the following projects:

Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

Svelte - Cybernetically enhanced web apps

html2canvas - Screenshots with JavaScript

petite-vue - 6kb subset of Vue optimized for progressive enhancement

React - The library for web and native user interfaces.

htmx - </> htmx - high power tools for HTML

Rete.js - Rete.js is a framework for creating visual interfaces and workflows. It provides out-of-the-box solutions for visualization using various libraries and frameworks, as well as solutions for processing graphs based on dataflow and control flow approaches.

snabbdom - A virtual DOM library with focus on simplicity, modularity, powerful features and performance.

Stimulus - A modest JavaScript framework for the HTML you already have [Moved to: https://github.com/hotwired/stimulus]

FFCreator - 一个基于node.js的高速视频制作库 A fast video processing library based on node.js

hyperscript - Create HyperText with JavaScript.