Quick guide to choose the right package, find the right option reference, and start from presets, palettes, or ready-made configs in a few minutes.
If this is your first time with tsParticles:
@tsparticles/engine@tsparticles/slim for most production websites and apps@tsparticles/all for prototypes, playgrounds, and full feature coverage@tsparticles/configstsparticles/presets repositoryimport { tsParticles } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim";
await loadSlim(tsParticles);
await tsParticles.load({
id: "tsparticles",
options: {
background: {
color: "#0d1117",
},
particles: {
number: {
value: 60,
},
move: {
enable: true,
speed: 1.2,
},
size: {
value: { min: 1, max: 3 },
},
},
},
});
@tsparticles/slim@tsparticles/engine@tsparticles/all@tsparticles/configs or an official preset first@tsparticles/configs)Use configs when you want a concrete example object you can inspect and modify directly.
Use presets when you want a reusable effect name such as stars, fireworks, or confetti.
Main preset catalog:
Use palettes when you already have the behavior you want and only need a reusable color direction.
@tsparticles/basic: simple use cases and reduced payload@tsparticles/slim: recommended choice for most websites and appstsparticles: complete bundle with many extensions@tsparticles/all: includes everything (useful for prototypes/playgrounds)tsParticles.load(...) before loading bundle or preset featuresid that does not exist in the DOM