Bundle: Slim
@tsparticles/slim is the recommended default for most projects.
When to choose Slim
- You want a great size/features balance.
- You use the
tsParticlesengine API directly. - You need common shapes/interactions without loading everything.
Installation
bash
pnpm add @tsparticles/engine @tsparticles/slimSetup
ts
import { tsParticles } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim";
await loadSlim(tsParticles);
await tsParticles.load({
id: "tsparticles",
options: {
particles: {
number: { value: 80 },
move: { enable: true, speed: 2 },
links: { enable: true },
},
},
});Common pitfalls
- Calling
tsParticles.load(...)beforeloadSlim(...). - Mixing package versions across engine/plugins.
Related pages
- Overview:
/guide/bundles - Installation matrix:
/guide/installation
