Skip to content

Commit 429c2b7

Browse files
committed
build: improving docs
1 parent 2e04b3b commit 429c2b7

169 files changed

Lines changed: 5171 additions & 373 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,23 @@ React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.j
7373
- [`@tsparticles/wordpress`](#@tsparticles/wordpress)
7474
- [Elementor](#elementor)
7575
- [Presets](#presets)
76+
- [Ambient](#ambient)
7677
- [Big Circles](#big-circles)
7778
- [Bubbles](#bubbles)
7879
- [Confetti](#confetti)
80+
- [Confetti Cannon](#confetti-cannon)
81+
- [Confetti Explosions](#confetti-explosions)
82+
- [Confetti Falling](#confetti-falling)
83+
- [Confetti Parade](#confetti-parade)
7984
- [Fire](#fire)
8085
- [Firefly](#firefly)
8186
- [Fireworks](#fireworks)
8287
- [Fountain](#fountain)
88+
- [Hyperspace](#hyperspace)
8389
- [Links](#links)
8490
- [Sea Anemone](#sea-anemone)
8591
- [Snow](#snow)
92+
- [Squares](#squares)
8693
- [Stars](#stars)
8794
- [Triangles](#triangles)
8895
- [Templates and Resources](#templates-and-resources)
@@ -163,18 +170,30 @@ Useful docs for the next step:
163170
- Migration guide: <https://github.com/tsparticles/tsparticles/blob/main/markdown/pjsMigration.md>
164171
- Presets catalog: <https://github.com/tsparticles/presets>
165172

166-
Choose your quick-start path:
173+
## Quick checklist
174+
175+
- Install `@tsparticles/engine` and one bundle (`@tsparticles/slim` is the common default)
176+
- Load the bundle before calling `tsParticles.load(...)`
177+
- Start from a small config, then extend incrementally
178+
179+
## Choose your quick-start path
167180

168181
- **I want fewer dependencies**: use `@tsparticles/engine` + only needed feature packages
169182
- **I want the easiest default**: use `@tsparticles/slim`
170183
- **I need everything enabled**: use `@tsparticles/all`
171184

172-
Common pitfalls:
185+
## Common pitfalls
173186

174187
- Loading options that require plugins before loading those plugin packages
175188
- Starting with very high particle counts before checking FPS
176189
- Mixing legacy snake_case keys with modern camelCase options
177190

191+
## Related docs
192+
193+
- Main docs: <https://particles.js.org/docs/>
194+
- Root options guide: <https://github.com/tsparticles/tsparticles/blob/main/markdown/Options.md>
195+
- Migration guide: <https://github.com/tsparticles/tsparticles/blob/main/markdown/pjsMigration.md>
196+
178197
## **_Library installation_**
179198

180199
### **_Hosting / CDN_**
@@ -492,6 +511,16 @@ the `Premium Addons for Elementor` plugin collection.
492511
There are some presets ready to be used in [this repository](https://github.com/tsparticles/presets), and they also have a bundle file that contains everything
493512
needed to run.
494513

514+
### Ambient
515+
516+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-ambient/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-ambient) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-ambient.svg)](https://www.npmjs.com/package/@tsparticles/preset-ambient) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-ambient)](https://www.npmjs.com/package/@tsparticles/preset-ambient)
517+
518+
This preset loads ambient circles on a dark background.
519+
520+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/ambient/images/sample.png)](https://particles.js.org/samples/presets/ambient)
521+
522+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/ambient#readme)
523+
495524
### Big Circles
496525

497526
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-big-circles/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-big-circles) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-big-circles.svg)](https://www.npmjs.com/package/@tsparticles/preset-big-circles) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-big-circles)](https://www.npmjs.com/package/@tsparticles/preset-big-circles)
@@ -522,6 +551,46 @@ This preset loads white and red confetti launched from the screen center on a tr
522551

523552
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/confetti#readme)
524553

554+
### Confetti Cannon
555+
556+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-confetti-cannon/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-confetti-cannon) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-confetti-cannon.svg)](https://www.npmjs.com/package/@tsparticles/preset-confetti-cannon) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-confetti-cannon)](https://www.npmjs.com/package/@tsparticles/preset-confetti-cannon)
557+
558+
This preset loads confetti launched from a draggable cannon.
559+
560+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/confettiCannon/images/sample.png)](https://particles.js.org/samples/presets/confettiCannon)
561+
562+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/confettiCannon#readme)
563+
564+
### Confetti Explosions
565+
566+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-confetti-explosions/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-confetti-explosions) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-confetti-explosions.svg)](https://www.npmjs.com/package/@tsparticles/preset-confetti-explosions) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-confetti-explosions)](https://www.npmjs.com/package/@tsparticles/preset-confetti-explosions)
567+
568+
This preset loads confetti bursts at multiple points on the screen.
569+
570+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/confettiExplosions/images/sample.png)](https://particles.js.org/samples/presets/confettiExplosions)
571+
572+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/confettiExplosions#readme)
573+
574+
### Confetti Falling
575+
576+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-confetti-falling/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-confetti-falling) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-confetti-falling.svg)](https://www.npmjs.com/package/@tsparticles/preset-confetti-falling) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-confetti-falling)](https://www.npmjs.com/package/@tsparticles/preset-confetti-falling)
577+
578+
This preset loads slowly falling confetti particles.
579+
580+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/confettiFalling/images/sample.png)](https://particles.js.org/samples/presets/confettiFalling)
581+
582+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/confettiFalling#readme)
583+
584+
### Confetti Parade
585+
586+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-confetti-parade/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-confetti-parade) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-confetti-parade.svg)](https://www.npmjs.com/package/@tsparticles/preset-confetti-parade) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-confetti-parade)](https://www.npmjs.com/package/@tsparticles/preset-confetti-parade)
587+
588+
This preset loads confetti moving horizontally across the screen like a parade.
589+
590+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/confettiParade/images/sample.png)](https://particles.js.org/samples/presets/confettiParade)
591+
592+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/confettiParade#readme)
593+
525594
### Fire
526595

527596
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-fire/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-fire) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-fire.svg)](https://www.npmjs.com/package/@tsparticles/preset-fire) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-fire)](https://www.npmjs.com/package/@tsparticles/preset-fire)
@@ -552,6 +621,16 @@ This preset loads a beautiful fireworks effect.
552621

553622
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/fireworks#readme)
554623

624+
### Hyperspace
625+
626+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-hyperspace/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-hyperspace) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-hyperspace.svg)](https://www.npmjs.com/package/@tsparticles/preset-hyperspace) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-hyperspace)](https://www.npmjs.com/package/@tsparticles/preset-hyperspace)
627+
628+
This preset loads a hyperspace tunnel effect with fast-moving particles.
629+
630+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/hyperspace/images/sample.png)](https://particles.js.org/samples/presets/hyperspace)
631+
632+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/hyperspace#readme)
633+
555634
### Fountain
556635

557636
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-fountain/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-fountain) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-fountain.svg)](https://www.npmjs.com/package/@tsparticles/preset-fountain) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-fountain)](https://www.npmjs.com/package/@tsparticles/preset-fountain)
@@ -584,6 +663,14 @@ You can find the instructions [here](https://github.com/tsparticles/presets/tree
584663

585664
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/snow#readme)
586665

666+
### Squares
667+
668+
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-squares/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-squares) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-squares.svg)](https://www.npmjs.com/package/@tsparticles/preset-squares) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-squares)](https://www.npmjs.com/package/@tsparticles/preset-squares)
669+
670+
[![demo](https://github.com/tsparticles/presets/raw/main/presets/squares/images/sample.png)](https://particles.js.org/samples/presets/squares)
671+
672+
You can find the instructions [here](https://github.com/tsparticles/presets/tree/main/presets/squares#readme)
673+
587674
### Stars
588675

589676
[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/preset-stars/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/preset-stars) [![npmjs](https://badge.fury.io/js/@tsparticles/preset-stars.svg)](https://www.npmjs.com/package/@tsparticles/preset-stars) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/preset-stars)](https://www.npmjs.com/package/@tsparticles/preset-stars)

bundles/all/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ ba --> s
201201
ba --> u
202202
```
203203

204+
## Quick checklist
205+
206+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
207+
2. Call the package loader function(s) before `tsParticles.load(...)`
208+
3. Apply the package options in your `tsParticles.load(...)` config
209+
204210
## How to use it
205211

206212
### CDN / Vanilla JS / jQuery
@@ -350,3 +356,14 @@ let particlesInit = async engine => {
350356
await loadAll(engine);
351357
};
352358
```
359+
360+
## Common pitfalls
361+
362+
- Calling `tsParticles.load(...)` before `loadAll(...)`
363+
- Verify required peer packages before enabling advanced options
364+
- Change one option group at a time to isolate regressions quickly
365+
366+
## Related docs
367+
368+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
369+
- Main docs: <https://particles.js.org/docs/>

bundles/basic/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ bb --> s
5656
bb --> u
5757
```
5858

59+
## Quick checklist
60+
61+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
62+
2. Call the package loader function(s) before `tsParticles.load(...)`
63+
3. Apply the package options in your `tsParticles.load(...)` config
64+
5965
## How to use it
6066

6167
### CDN / Vanilla JS / jQuery
@@ -205,3 +211,14 @@ let particlesInit = async engine => {
205211
await loadBasic(engine);
206212
};
207213
```
214+
215+
## Common pitfalls
216+
217+
- Calling `tsParticles.load(...)` before `loadBasic(...)`
218+
- Verify required peer packages before enabling advanced options
219+
- Change one option group at a time to isolate regressions quickly
220+
221+
## Related docs
222+
223+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
224+
- Main docs: <https://particles.js.org/docs/>

bundles/confetti/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ bc --> s
7070
bc --> u
7171
```
7272

73+
## Quick checklist
74+
75+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
76+
2. Call the package loader function(s) before `tsParticles.load(...)`
77+
3. Apply the package options in your `tsParticles.load(...)` config
78+
7379
## How to use it
7480

7581
### CDN / Vanilla JS / jQuery
@@ -200,3 +206,14 @@ options object without the id, which will be `confetti` by default. The `options
200206

201207
And for those asking, yes you can paste your canvas-confetti code and migrate to tsParticles Confetti without changing a
202208
thing
209+
210+
## Common pitfalls
211+
212+
- Calling `tsParticles.load(...)` before `package loader(...)`
213+
- Verify required peer packages before enabling advanced options
214+
- Change one option group at a time to isolate regressions quickly
215+
216+
## Related docs
217+
218+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
219+
- Main docs: <https://particles.js.org/docs/>

bundles/fireworks/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ bf --> p
5656
bf --> u
5757
```
5858

59+
## Quick checklist
60+
61+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
62+
2. Call the package loader function(s) before `tsParticles.load(...)`
63+
3. Apply the package options in your `tsParticles.load(...)` config
64+
5965
## How to use it
6066

6167
### CDN / Vanilla JS / jQuery
@@ -137,3 +143,14 @@ The `fireworks` has only a single `options` object parameter, with the following
137143
- `sounds` Boolean: Whether to play sounds or not.
138144
- `speed` Number or { min: number; max: number; }: The speed of the fireworks particles.
139145
- `splitCount` Number or { min: number; max: number; }: The number of particles to split the emitter in.
146+
147+
## Common pitfalls
148+
149+
- Calling `tsParticles.load(...)` before `package loader(...)`
150+
- Verify required peer packages before enabling advanced options
151+
- Change one option group at a time to isolate regressions quickly
152+
153+
## Related docs
154+
155+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
156+
- Main docs: <https://particles.js.org/docs/>

bundles/full/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ bf --> s
6868
bf --> u
6969
```
7070

71+
## Quick checklist
72+
73+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
74+
2. Call the package loader function(s) before `tsParticles.load(...)`
75+
3. Apply the package options in your `tsParticles.load(...)` config
76+
7177
## How to use it
7278

7379
### CDN / Vanilla JS / jQuery
@@ -220,3 +226,14 @@ let particlesInit = async engine => {
220226
await loadFull(engine);
221227
};
222228
```
229+
230+
## Common pitfalls
231+
232+
- Calling `tsParticles.load(...)` before `loadFull(...)`
233+
- Verify required peer packages before enabling advanced options
234+
- Change one option group at a time to isolate regressions quickly
235+
236+
## Related docs
237+
238+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
239+
- Main docs: <https://particles.js.org/docs/>

bundles/pjs/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ bp --> ce
3535
bp --> p
3636
```
3737

38+
## Quick checklist
39+
40+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
41+
2. Call the package loader function(s) before `tsParticles.load(...)`
42+
3. Apply the package options in your `tsParticles.load(...)` config
43+
3844
## How to use it
3945

4046
### CDN / Vanilla JS / jQuery
@@ -112,3 +118,14 @@ Here you can use ParticlesJS options.
112118
| `pauseAnimation` | Pauses/stops the particle animation |
113119
| `resumeAnimation` | Continues the particle animation |
114120
| `destroy` | Destroys the plugin |
121+
122+
## Common pitfalls
123+
124+
- Calling `tsParticles.load(...)` before `package loader(...)`
125+
- Verify required peer packages before enabling advanced options
126+
- Change one option group at a time to isolate regressions quickly
127+
128+
## Related docs
129+
130+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
131+
- Main docs: <https://particles.js.org/docs/>

bundles/slim/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ bs --> s
9696
bs --> u
9797
```
9898

99+
## Quick checklist
100+
101+
1. Install `@tsparticles/engine` (or use the CDN bundle below)
102+
2. Call the package loader function(s) before `tsParticles.load(...)`
103+
3. Apply the package options in your `tsParticles.load(...)` config
104+
99105
## How to use it
100106

101107
### CDN / Vanilla JS / jQuery
@@ -245,3 +251,14 @@ let particlesInit = async engine => {
245251
await loadSlim(engine);
246252
};
247253
```
254+
255+
## Common pitfalls
256+
257+
- Calling `tsParticles.load(...)` before `loadSlim(...)`
258+
- Verify required peer packages before enabling advanced options
259+
- Change one option group at a time to isolate regressions quickly
260+
261+
## Related docs
262+
263+
- All packages catalog: <https://github.com/tsparticles/tsparticles>
264+
- Main docs: <https://particles.js.org/docs/>

demo/electron/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Electron Demo
2+
3+
Desktop demo application using Electron to showcase tsParticles capabilities.
4+
5+
## Quick checklist
6+
7+
1. Install dependencies from the repository root
8+
2. Build workspace packages
9+
3. Run the Electron app from this folder
10+
11+
## Usage
12+
13+
From the repository root:
14+
15+
```bash
16+
pnpm i
17+
pnpm run build
18+
cd demo/electron
19+
pnpm start
20+
```
21+
22+
## Build process
23+
24+
```bash
25+
cd demo/electron
26+
pnpm run build:client
27+
```
28+
29+
This builds the client bundle using webpack in production mode.
30+
31+
## Common pitfalls
32+
33+
- Running without building packages first may load outdated or missing modules
34+
- Ensure all workspace dependencies are properly linked before starting
35+
- Build artifacts in this folder should not be committed to version control
36+
37+
## Related docs
38+
39+
- Main docs: <https://particles.js.org/docs/>
40+
- Repository README: <https://github.com/tsparticles/tsparticles/blob/main/README.md>
41+

0 commit comments

Comments
 (0)