@tsparticles/engine
| Install | |
|---|---|
npm install @tsparticles/engine |
|
| Latest Version: | 4.4.0 |
| License: | MIT |
| Last Updated: | Oct 21, 2026 |
| Links: | GitHub · npm |
tsParticles Engine
tsParticles is a lightweight TypeScript library for creating particles. Dependency free (*), browser ready and compatible with React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components.
This is the core engine package that all other features depend on.
Quick checklist
- Install
@tsparticles/engine - Initialize the engine instance in your code
- Load additional plugins/shapes/updaters as needed
- Use
tsParticles.load()to apply particle configurations
How to use it
Installation
npm install @tsparticles/engine
or
yarn add @tsparticles/engine
or
pnpm install @tsparticles/engine
Basic Usage
import { tsParticles } from "@tsparticles/engine";
await tsParticles.load({
id: "tsparticles",
options: {
particles: {
number: {
value: 80,
},
move: {
enable: true,
speed: 2,
},
},
},
});
Features
- Lightweight: Core engine without unnecessary dependencies
- Modular: Load only the features you need (plugins, shapes, updaters)
- Framework agnostic: Works with vanilla JS, React, Vue, Angular, Svelte, and more
- Browser ready: CDN bundles available for immediate use
- Highly customizable: Rich configuration options for particle behavior
Loading Additional Features
To extend the engine with more capabilities, load additional packages:
import { tsParticles } from "@tsparticles/engine";
import { loadSlim } from "@tsparticles/slim"; // or other bundles
await loadSlim(tsParticles); // Load preset features
await tsParticles.load({
id: "tsparticles",
options: {
// Your configuration here
},
});
Common pitfalls
- Loading plugins after calling
tsParticles.load(...)may not work as expected - Ensure all required peer packages are loaded before using their features
- Some shapes or updaters need their specific packages to be loaded
Related docs
- Main documentation: https://particles.js.org/docs/
- Main repository: https://github.com/tsparticles/tsparticles
- Available bundles: https://github.com/tsparticles/tsparticles#bundles
- All options: https://particles.js.org/docs/interfaces/tsParticles_Engine.Options_Interfaces_IOptions.IOptions.html
Related Packages
Basic tsParticles bundle — minimal core engine with only the essential features...
Slim tsParticles bundle — core engine with essential plugins, presets, and inter...
Full-featured tsParticles bundle — create stunning particle, confetti and firewo...
tsParticles confetti bundle — easily create confetti, confetti cannon, confetti...
Official tsParticles Vue.js 3.x Component - Easily create highly customizable pa...
Version History
| Version | Released | License |
|---|---|---|
| 4.4.0 | MIT | |
| 4.3.2 | MIT | |
| 4.3.1 | MIT | |
| 4.3.0 | MIT | |
| 4.2.1 | MIT | |
| 4.2.0 | MIT | |
| 4.1.3 | MIT | |
| 4.1.2 | MIT | |
| 4.1.1 | MIT | |
| 4.1.0 | MIT | |
| 4.0.5 | MIT | |
| 4.0.4 | MIT | |
| 4.0.3 | MIT | |
| 4.0.2 | MIT | |
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 3.9.1 | MIT | |
| 3.9.0 | MIT | |
| 3.8.1 | MIT | |
| 3.8.0 | MIT | |
| 3.7.1 | MIT | |
| 3.7.0 | MIT | |
| 3.6.0 | MIT | |
| 3.5.0 | MIT | |
| 3.4.0 | MIT | |
| 3.3.0 | MIT | |
| 3.2.2 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT |
Showing the latest 30 of 34. See every release on npm
Pre-releases (46)
| Version | Released | License |
|---|---|---|
| 4.0.0-beta.17 | MIT | |
| 4.0.0-beta.16 | MIT | |
| 4.0.0-beta.15 | MIT | |
| 4.0.0-beta.12 | MIT | |
| 4.0.0-beta.11 | MIT | |
| 4.0.0-beta.10 | MIT | |
| 4.0.0-beta.9 | MIT | |
| 4.0.0-beta.8 | MIT | |
| 4.0.0-beta.6 | MIT | |
| 4.0.0-beta.5 | MIT | |
| 4.0.0-beta.4 | MIT | |
| 4.0.0-beta.3 | MIT | |
| 4.0.0-beta.2 | MIT | |
| 4.0.0-beta.1 | MIT | |
| 4.0.0-beta.0 | MIT | |
| 4.0.0-alpha.28 | MIT | |
| 4.0.0-alpha.27 | MIT | |
| 4.0.0-alpha.26 | MIT | |
| 4.0.0-alpha.25 | MIT | |
| 4.0.0-alpha.24 | MIT | |
| 4.0.0-alpha.23 | MIT | |
| 4.0.0-alpha.22 | MIT | |
| 4.0.0-alpha.21 | MIT | |
| 4.0.0-alpha.20 | MIT | |
| 4.0.0-alpha.18 | MIT | |
| 4.0.0-alpha.17 | MIT | |
| 4.0.0-alpha.16 | MIT | |
| 4.0.0-alpha.15 | MIT | |
| 4.0.0-alpha.14 | MIT | |
| 4.0.0-alpha.8 | MIT |
Showing the latest 30 of 46. See every release on npm
