All work

Pylinka

Node-graph particles, compiled to GPU shaders

Wire an effect in a browser editor; Pylinka compiles the graph to WGSL compute for WebGPU or transform-feedback GLSL for WebGL2. Particle state never leaves the GPU, and tweaking a knob is one uniform write.

Open the editor Source npm
  • Animators build effects, the GPU runs them

    Effects are wired in an editor and compiled to GPU shaders. Particle work leaves the main thread, which is where phones drop frames.

  • What you preview is what ships

    The editor and the game share one behaviour. An approved effect looks the same in production.

  • Tuning without a rebuild

    Exposed parameters are live GPU values. A designer adjusts wind or spread in the running game.

The Ember Rise recipe from the Pylinka editor, compiled to a GPU shader in this page. Move the pointer to move the emitter.

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/v1 JSON, or a .pylinka.zip bundle with hashed assets).
  • @pylinka/core: the runtime, with /gpu (auto-pick), /webgpu, /webgl2, /pixi, an interpreted /webgl engine 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

DateRelease
2026-07-10Graph, compiler, format, WebGL2 runtime, editor and site, all on day one
2026-07-12WebGPU compute backend
2026-07-221.0: collisions, context-loss recovery
2026-08-211.2: multi-keyframe curves, live curve editor
2026-09-022.0: editor and runtime parity
2026-09-292.1: animator-focused editor, zip export
2026-11-212.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.