A free alternative to particles.js

particles.js made the connected-dots background famous, but its npm package hasn’t been updated since 2015. If you want that look with less setup and a smaller file, Constellation does it in one script tag. If you need lots of shapes and modes, tsParticles is the maintained heavyweight.

particles.js vs Constellation

particles.js Constellation
Last release on npm 2.0.0, May 2015. 1.0.0, December 2026, maintained.
Size 43 KB unminified (about 9 KB gzipped). 7.6 KB minified (3.7 KB gzipped).
Setup A container element and a JSON configuration passed to particlesJS(). One script tag. Sensible defaults and a handful of options.
Linking dots Checks every pair of particles each frame. A spatial grid: each dot only checks its neighbours, and lines are drawn in a few batched strokes.
Behind your content You position the container yourself with CSS. Automatic, or inside one section with the root option.
Light and dark pages Colours set in the configuration. “auto” picks colours that suit the page.
Shapes and cursor modes Circles, edges, triangles, polygons, stars and images; grab, bubble, repulse, push and remove. Dots only; grab, repel and attract; a click adds dots.
TypeScript types Not included. Included.

particles.js details from its npm package and repository, checked on 1 December 2026. Versions and licences change, so check the source before deciding: particles.js on npm, particles.js on GitHub, tsParticles. particles.js is an open-source project by Vincent Garreau; Fluri isn’t affiliated with it.

Choose particles.js if…

  • You need particle shapes like stars, polygons or images
  • You use bubble, push or remove interactions
  • You already have a particles.js configuration you’re happy with (or try tsParticles, which is maintained and can load particles.js configurations)

Choose Constellation if…

  • You want the classic connected-dots background with no configuration file
  • You care about page weight and smooth scrolling on phones
  • You want it to sit behind your text and buttons without CSS fiddling
Try Constellation live

Questions

Something else? Send us a message.

Is Constellation really free?

Yes. Constellation is published on npm as @fluritheme/constellation under the MIT licence, including for commercial websites. Load it from the jsDelivr CDN or install it with npm. No account, no limits.

Is Constellation a full replacement for particles.js?

Not in every case. The table above lists what particles.js does that Constellation doesn’t. If you need those features, particles.js is the better choice.

How do I switch?

Remove the particles.js script and its set-up code, add one script tag for @fluritheme/constellation (the README has copy-paste examples) and check the options. It takes a few minutes.

Give your website a little life today.

Pick a theme, pay once, paste one line. It’s live in minutes.