# Simulating 20M Particles in JavaScript

> Had some fun with shared array buffers over many months of free time. Skip to the end to play around with the final app. Open to ideas on how to simulate more whilst staying in js land.

Page: https://nowfound.app/launch/simulating-20m-particles-in-javascript

- Launched: 2024-07-08
- Launch-day votes: 561, 70 comments; #58 of 4,704 launches that month (top 1%)
- Website: [dgerrells.com](https://dgerrells.com/blog/how-fast-is-javascript-simulating-20-000-000-particles), online when checked 2026-09-16
- Category: [Life & fun](https://nowfound.app/c/life-and-consumer.md)
- Forecast: 96% chance its website is still online in November 2031 (99% in November 2027, 98% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2024: 87%. [Method](https://nowfound.app/forecast.md)
- Originality: 50/100 (familiar idea). More original than 50% of products launched in 2024. On its launch day the archive already held 10 similar products; 1 product like it has launched since.

## In plain words

This project demonstrates a particle simulation system built in JavaScript using shared array buffers to handle 20 million particles. It allows users to experiment with the interactive simulation and explore how to push performance limits while remaining within the JavaScript ecosystem. The creator developed it over several months as a technical exploration and welcomes suggestions for optimizing or expanding the simulation further.

_Written by AI from its launch page and website, 2026-09-05._

## What it does, from its own words

The challenge, simulate 1,000,000 particles in plain javascript at 60 fps on a phone using only the cpu. Let’s go.

## Does a similar job

- [particles.js](https://nowfound.app/launch/particles-js): A lightweight JavaScript library for creating particles. (2014-11-12, 113 votes, forecast: 88% online in 2031, vincentgarreau.com)
- [A 2D Physics Simulator in JavaScript](https://nowfound.app/launch/a-2d-physics-simulator-in-javascript): A 2D Physics Simulator in JavaScript is a web-based physics simulation tool that runs in the browser. (2017-07-27, 126 votes, forecast: 90% online in 2031, htmlpreview.github.io)
- [Million.js](https://nowfound.app/launch/million-js): 🦁 \<1kb compiler-augmented virtual DOM. It's fast! (2021-06-06, 153 votes, free, forecast: 83% online in 2031, github.com)
- [Pts.js](https://nowfound.app/launch/pts-js-a-library-for-visualization-and-creative-coding): Pts is a javascript library for visualization and creative-coding. (2018-08-08, 611 votes, forecast: 93% online in 2031, ptsjs.org)
- [A simple 2D fluid and gravity simulation with](https://nowfound.app/launch/a-simple-2d-fluid-and-gravity-simulation-with-wasm-and-webgl): A browser-based particle simulation where tiny elements gravitate toward the user's cursor or touch point, potentially entering stable orbits around it. (2024-05-08, 137 votes, forecast: 93% online in 2031, aestuans.github.io)
- [Open source balloon simulation with Three.js](https://nowfound.app/launch/open-source-balloon-simulation-with-three-js): Open source balloon simulation with Three.js is a web app for developers that visualizes balloon physics using Three.js, a JavaScript 3D library. (2019-02-12, 307 votes, forecast: 92% online in 2031, alexanderperrin.com.au)

All alternatives: https://nowfound.app/alternatives/simulating-20m-particles-in-javascript.md

## For the maker of Simulating 20M Particles in JavaScript

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/simulating-20m-particles-in-javascript
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/simulating-20m-particles-in-javascript"><img src="https://nowfound.app/badge/simulating-20m-particles-in-javascript.svg" alt="Simulating 20M Particles in JavaScript on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=40902012)
