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

@jamunlabs/gameu-sdk

v0.3.4

Published

TypeScript-first SDK for building gameu games — Reducer/Renderer/GameRunner primitives, bridge codec, sound module, manifest + catalog schemas.

Readme

@jamunlabs/gameu-sdk

TypeScript-first SDK for building games on the gameu platform. Game devs get the shared runtime library, bridge codec, manifest schema, and catalog types without cloning the gameu host repo.

Status: v0.1.1 — runtime + tooling published. The full game-runtime surface (Reducer, Renderer, GameRunner, createTvScene, sound, …) re-exports from the bare @jamunlabs/gameu-sdk main entry. The companion CLI (@jamunlabs/gameu-cli) ships gameu create, gameu dev, gameu build, and gameu publish.

Install

npm install @jamunlabs/gameu-sdk

Exports

All exports are ESM-only; the package requires Node 18+.

| Export | Purpose | |---|---| | @jamunlabs/gameu-sdk (main) | Runtime primitives (Reducer, Renderer, GameRunner, createTvScene, installTvSceneDefaults, installDevMode, sound, simulate, EFFECT_KINDS, …) plus validateManifest + validateCatalogEntry | | @jamunlabs/gameu-sdk/manifest | GameManifest, GameId, RuntimeKind, validateManifest | | @jamunlabs/gameu-sdk/catalog | CatalogSource, CatalogEntry, Catalog, validateCatalogEntry | | @jamunlabs/gameu-sdk/runtime | Direct ES-module facade over gameu-v1.js + gameu-sound-v1.js (the same exports the bare main re-exports) | | @jamunlabs/gameu-sdk/gameu-v1.js | Shared runtime library (raw JS, also served via <script type="module">) | | @jamunlabs/gameu-sdk/gameu-sound-v1.js | Sound helper (raw JS) | | @jamunlabs/gameu-sdk/bridge_schema.js | Bridge message codec (raw JS) | | @jamunlabs/gameu-sdk/client_schema.js | Client message codec (raw JS) |

Build a game (typical pattern)

import {
  Reducer, Renderer, GameRunner,
  createTvScene, installTvSceneDefaults, installDevMode,
  EFFECT_KINDS, msg, sound,
} from "@jamunlabs/gameu-sdk";

const scene = createTvScene({ name: "my-game-tv" });
installTvSceneDefaults(scene);
scene.seal("production");

const runner = new GameRunner({ seams: scene.seams, reducer, renderer });
await runner.start();

See the scaffolded CLAUDE.md produced by gameu create for the full recipe.

Validate a bundle manifest

import { validateManifest } from "@jamunlabs/gameu-sdk/manifest";

const err = validateManifest(JSON.parse(manifestText));
if (err !== null) {
  throw new Error(`Invalid manifest: ${err}`);
}

Validate a catalog entry

import { validateCatalogEntry } from "@jamunlabs/gameu-sdk/catalog";

const err = validateCatalogEntry(rawEntry);
if (err !== null) {
  console.error("Bad catalog entry:", err);
}

Companion CLI

npm install -g @jamunlabs/gameu-cli
gameu create my-game
cd my-game && npm install && npm run build
gameu dev

gameu dev resolves a platform-specific host binary via npm optionalDependencies (@jamunlabs/gameu-host-{linux,darwin,win32}-{x64,arm64}). Until the binary publish pipeline runs, contributors can fall back to a local cargo build via GAMEU_DEV_FROM_REPO=/path/to/gameu.

Repo

Source lives in the gameu monorepo: packages/sdk/. The four starter games (TTT, S&L, Ludo, UNO) live in their own external repos and consume this package via @jamunlabs/gameu-{tictactoe,snakesandladders,ludo,uno} on npm.