All work

open-slot-ui

A slot HUD in one call

Balance, bet, win, spin, autoplay, buy-feature, history and rules, mounted with one function and themed from a typed JSON spec. Headless core with zero dependencies; Pixi and DOM views on top.

Source npm
  • One HUD for every game

    Balance, bet, autoplay, buy features and rules mount with one call and change with a typed spec, not new code.

  • Testable without screenshots

    Every control exposes its state to tests, so end-to-end checks assert meaning instead of reading pixels.

Why

Every slot needs the same bottom bar, and every platform wants it slightly different: currency formatting, turbo rules, autoplay limits, jurisdiction notices. Rebuilding it per game means rebuilding the bugs per game.

mountHud(app, spec); // menu, balance/bet/win, spin, autoplay, buy, history, rules, notices

Architecture

  • @open-slot-ui/core is headless and dependency-free: signals, one state machine per control, theme tokens, layout, an event bus and introspection.
  • @open-slot-ui/pixi is a thin view layer for in-canvas HUDs.
  • @open-slot-ui/dom renders the same HUD as plain markup you style with your own CSS.

Testable without pixels

In dev builds, window.__OPENUI__ exposes every control's state, whether it's clickable, its bounds, and an event log. End-to-end tests click by meaning and assert on state; they never read a pixel. It's the shared HUD in artubeplate and stakeplate.