Wrapper: @tsparticles/astro
Official Astro wrapper for tsParticles.
Install
bash
pnpm add @tsparticles/astro @tsparticles/engine @tsparticles/slimQuick setup flow
- Install wrapper + engine + chosen loader (
@tsparticles/slimsuggested). - Register particles on the client side in Astro components/layouts.
- Pass options object or JSON to the wrapper component.
Monorepo references
- Package folder: https://github.com/tsparticles/tsparticles/tree/main/wrappers/astro
- Demo app: https://github.com/tsparticles/tsparticles/tree/main/demo/astro
