All writing
3 min read

2026: the slot stack I open-sourced

Between April and November I published the parts of a slot game that studios keep rebuilding: reels, a Spine runtime, particles, audio, a HUD, wheels and two game cores. What each one changes, and how they fit together.

In short

  • Studios rebuild the same parts for every slot: reels, HUD, round flow, particles, sound. In 2026 I published one version of each.
  • The libraries are separate but stack: artubeplate assembles a playable game from them.
  • The largest changes: mechanics as configuration, Spine cost measured on real phones, and small skeletons batched into one draw call.
  • The process that made this pace possible: the same CI gates in every repo, shipped test harnesses, and docs built from code.

Why

Before 2026, the slot code I wrote lived in closed codebases. In every studio I saw the same components written again: reels, the HUD, the round state machine, particles, sound. Each version had its own bugs, and each bug had to be fixed in each game.

In 2026 I started to publish one version of each part.

What each library changes

PartLibraryFirst releaseWhat changes for a studio
Reelspixi-reelsApr 20New mechanics are builder options, not a rewrite of the reels
AudiozvukMay 3Ducking, voice limits and music stems in a web slot
HUDopen-slot-uiJun 28One HUD for all games, configured by a spec
Game core (Stake)stakeplateJul 9Platform rules in one versioned package
ParticlesPylinkaJul 11Animators build effects; the GPU runs them
ProfilingSpine Benchmark v4Jul 28Animation cost in milliseconds on real phones
Bonus wheelspixi-wheelsSep 14The wheel spins before the server answers
Vector graphicspixi-silkSep 26UI shapes stay sharp at any scale
Game core (Artube)artubeplateOct 3A math export becomes a playable game
Spine runtimepixi-marrowNov 13Small skeletons share one draw call

How they fit together

artubeplate shows how the parts combine. A game supplies four things: a config, a function that turns a math result into presentation steps, a scene built on pixi-reels, and its presentation phases. The core adds the HUD from open-slot-ui, audio from zvuk and particles from Pylinka. It also handles the RGS connection, reconnects, free rounds, autoplay and replay. pixi-silk draws the debug overlays for pixi-reels and pixi-marrow.

The main results

  • Mechanics as configuration. pixi-reels 4.0 added reel sets that grow during a round. Reel construction became a factory that the set keeps, so a reel added at runtime is built by the same code as the first five.
  • Measured animation cost. Spine Benchmark's original score explained 2% of measured frame time. Version 4 removed it and estimates cost per phone with the error shown. The details.
  • Batched Spine. pixi-marrow draws 200 coin skeletons in one draw call instead of 400, and idle skeletons upload nothing. Why I wrote it.
  • One behaviour for preview and game. Pylinka 2.0 removed every difference between the editor preview and the shipped effect. How the compiler works.
  • Specified reel motion. The pixi-reels motion contract found a defect in the shipping engine. The write-up.

How the work was done

The same gates in every repository. Each repo runs lint, type checks, tests, the build, the docs build, a check of the npm package contents, a bundle-size limit, and changesets. Releases use npm trusted publishing. At this pace, the gates catch what attention misses.

Test harnesses ship with the libraries. pixi-reels and pixi-wheels export their fake ticker and test helpers, so game teams can test their own flows in Node.

Docs for people and for coding agents. Every docs site has runnable examples and an llms.txt. pixi-marrow puts an AGENTS.md in its npm package. Many developers now read docs through an assistant, and docs that a model reads correctly are also clear for a person.

Conditions next to every number. "1.03 ms against 3.46 ms" needs "headless Chrome, Apple M4, 200 instances, WebGL2, no phone data" next to it.

One library at a time. I stay on one library until it stands. pixi-marrow went from the first commit to a published 0.3 in eleven days.

Next

  • pixi-marrow 1.0, with a migration guide and phone measurements before GPU skinning becomes the default.
  • On-device performance numbers for Pylinka.
  • More writing. RSS.