tsParticles - v4.0.0-beta.12
    Preparing search index...

    tsParticles

    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:

    1. Install @tsparticles/engine
    2. Pick one runtime path:
      • @tsparticles/slim for most production websites and apps
      • @tsparticles/all for prototypes, playgrounds, and full feature coverage
      • only the packages you need if you want a minimal custom build
    3. Load your chosen bundle once
    4. Start with one of these inputs:
      • manual options
      • a ready-made config from @tsparticles/configs
      • an official preset from the tsparticles/presets repository
    import { 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 },
    },
    },
    },
    });
    • I need a production-ready default: @tsparticles/slim
    • I need only core plus custom plugins: @tsparticles/engine
    • I need every feature for quick prototyping: @tsparticles/all
    • I want a ready visual starting point: use @tsparticles/configs or an official preset first

    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:

    • Ambient
    • Big Circles
    • Bubbles
    • Confetti
    • Confetti Cannon
    • Confetti Explosions
    • Confetti Falling
    • Confetti Parade
    • Fire
    • Firefly
    • Fireworks
    • Fountain
    • Hyperspace
    • Links
    • Sea Anemone
    • Snow
    • Squares
    • Stars
    • Triangles

    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 apps
    • tsparticles: complete bundle with many extensions
    • @tsparticles/all: includes everything (useful for prototypes/playgrounds)
    • Calling tsParticles.load(...) before loading bundle or preset features
    • Using an id that does not exist in the DOM
    • Assuming configs or presets also load the runtime plugins they depend on
    • Mixing too many presets/options in the first iteration instead of starting from one stable base