Skip to content

Wrapper: @tsparticles/astro

Official Astro wrapper for tsParticles.

Install

bash
pnpm add @tsparticles/astro @tsparticles/engine @tsparticles/slim

Quick setup flow

  1. Install wrapper + engine + chosen loader (@tsparticles/slim suggested).
  2. Register particles on the client side in Astro components/layouts.
  3. Pass options object or JSON to the wrapper component.

Monorepo references

Readme