npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@energy8platform/create-slot

v0.6.12

Published

Scaffolder for a new PixiJS slot game on the Energy8 `@energy8platform/game-engine` framework, ready to run locally, test in the Stake dev harness, generate its math, and build for Stake Engine.

Readme

@energy8platform/create-slot

Scaffolder for a new PixiJS slot game on the Energy8 @energy8platform/game-engine framework, ready to run locally, test in the Stake dev harness, generate its math, and build for Stake Engine.

npm create @energy8platform/slot@latest my-game
# or
npx @energy8platform/create-slot my-game

It asks a few questions (id, title, mechanic, grid, …) and writes a complete, type-checking project.

What it generates

| File | Role | |---|---| | src/game.spec.ts | Single source of truth. defineGame(spec) derives the GameDefinition, the SpinML prelude (SPEC/SYM/PAY_*), the modeMap, the math modes, the paytable, the shell's buy-bonus cards AND the Game Info per-mode table. Edit modes / symbols / bet levels / rtp / maxWin here. | | src/scenes/GameScene.ts | The render-only scene: present(result, ctx) + optional onBonusEnter/onBonusExit. The host owns the play loop; the scene never calls play/ack. | | src/scenes/IntroScene.ts | Tap-to-start splash (skipped on replay). | | src/game/script.spin | The game's math logic in SpinML (typed; returns outcome { win, vars, data } with a bet-multiplier win). See docs/spinml.md. | | src/game/normalize.ts + schema.ts | Map the raw play result → the scene's typed SpinData. | | src/stake/adapter.ts | The Stake book adapter (createGameAdapter) — slices a round-book into segments. | | math.config.ts | Per-mode sim + curate tuning for the math pipeline (independent of the spec's declared rtp/maxWin). | | CLAUDE.md | Guidance for Claude Code on how the project is wired and what the framework already handles. | | vite.config.ts | Dev (DevBridge), the Stake harness, and the build:stake frontend target. |

Workflow

npm install
npm run dev          # local dev via Energy8 DevBridge (e8-server + .spin, hot reload)
npm run stake        # Stake dev harness: iframe wrapper + dev-RGS backed by curated books
npm run math:pool    # Stage A — honest large simulation (the pool)
npm run math:curate  # Stage B — compress into the publishable stake-math/ bundle
npm run build:stake  # the Stake frontend build → dist-stake/

The framework handles the Stake integration end-to-end (RGS bridge, shell, play loop, bonus segment-drain, resume, autoplay, social mode, jurisdiction, money formatting, the math pipeline). You write the spec, the SpinML math, and the rendering — see the generated CLAUDE.md for the full map.

Related packages

  • @energy8platform/game-engine — the PixiJS engine + host the game runs on.
  • @energy8platform/platform-core — renderer-agnostic platform (SpinML runtime, SDK session, DevBridge).
  • @energy8platform/stake-kit — the Stake book adapter + dev harness used by the scaffold.
  • @energy8platform/stake-math-tools — the e8-math simulation + curation pipeline.