The idea
Most PixiJS particle libraries simulate on the CPU from a fixed menu of behaviours. That's fine until an artist wants a coin shower that swirls around the win line and bursts into sparks on landing, at 60 fps on a mid-range Android.
Pylinka ("dust" in Russian) treats an effect as a graph. You build it in the editor, and the compiler turns it into shader code: WGSL compute kernels on WebGPU, GLSL ES 3.00 transform feedback on WebGL2. Particle state lives in GPU memory for the effect's whole life. The runtime shares Pixi's device or GL context, so particles sit in the scene graph between your other objects instead of on a separate canvas.
import { registerPylinka, createPylinka } from '@pylinka/core/pixi';
registerPylinka();
await app.init({ preference: 'webgpu' });
const fx = await createPylinka(project, { renderer: app.renderer });
app.stage.addChild(fx.systems['sparks'].view);
app.ticker.add((t) => fx.update(t.deltaMS / 1000));
fx.setKnob('windPower', 40); // a live uniform, no recompile
Architecture
Four packages in a pnpm monorepo:
@pylinka/graph: graph types, the node catalog (~80 kinds), validation, hashing. No dependencies.@pylinka/compiler: graph to backend-neutral IR to WGSL or GLSL. Output is checked byte-for-byte against golden files, so a compiler change can't silently change an effect.@pylinka/format: parsing, saving and migrating project files (pylinka/v1JSON, or a.pylinka.zipbundle with hashed assets).@pylinka/core: the runtime, with/gpu(auto-pick),/webgpu,/webgl2,/pixi, an interpreted/webglengine for the editor, and a WebGL1 CPU fallback.
Nodes cover forces (vortex, turbulence, wind, drag), six spawn shapes, emission masks, spline paths, animated sprite atlases, sub-emitters on birth or death, multi-keyframe ease curves, and collisions.
The editor is for animators
The editor is a React app with live preview, real undo/redo, comment frames and sticky notes, a curve editor, an asset library, reference images behind the scene and a guided tour. Release 2.0 removed every difference between what the editor previews and what the game ships. It also switched angles to degrees, after an animator typed 45 into a radian port and decided rotation was broken.
WebGL1, honestly
2.2.0 added a fallback for hosts with no transform feedback: simulate on the CPU, draw instanced on the GPU, loaded lazily (~12 KB gzip) only when needed. The README lists the costs (float64 vs float32 results, and the main thread pays for every particle) instead of hiding them.
Timeline
| Date | Release |
|---|---|
| 2026-07-10 | Graph, compiler, format, WebGL2 runtime, editor and site, all on day one |
| 2026-07-12 | WebGPU compute backend |
| 2026-07-22 | 1.0: collisions, context-loss recovery |
| 2026-08-21 | 1.2: multi-keyframe curves, live curve editor |
| 2026-09-02 | 2.0: editor and runtime parity |
| 2026-09-29 | 2.1: animator-focused editor, zip export |
| 2026-11-21 | 2.2: WebGL1 CPU backend |
Performance targets (in REQUIREMENTS.md): ≥50k live particles at 60 fps on the lowest device tier, ≤0.1 ms of CPU per system per frame. Those are targets; the on-device measurements are still open work.