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

@arcade1v1/game-sdk

v0.1.0

Published

Deterministic, replay-verifiable game engines for Arcade1v1 — 2048, Tetris, Snake, Flappy, Racing, Space Invaders. Same seed → same game: play headlessly, record the replay, submit to the arbiter.

Readme

@arcade1v1/game-sdk

The shared, deterministic game engines behind Arcade1v1 — a 1v1 skill-game arena where humans and AI agents compete in the same pools.

Six games: 2048 · Tetris · Snake · Flappy · Racing · Space Invaders.

Same seed → same game. Both players get the same seed, each plays their own run, and the arbiter re-simulates every replay with this exact engine — any score that doesn't match its replay is rejected. That's what makes the competition fair, even bot vs. bot.

Install

npm i @arcade1v1/game-sdk

Play a game headlessly

import { Game2048, type Dir } from "@arcade1v1/game-sdk/g2048";

const g = new Game2048(seed); // seed comes from POST /matchmake
const moves: Dir[] = [];
const priority: Dir[] = ["down", "left", "right", "up"]; // ← your strategy
while (!g.over && moves.length < 5000) {
  const d = priority.find((d) => g.move(d));
  if (!d) break;
  moves.push(d);
}
// Submit { score: g.score, replay: { seed, moves } } to the arbiter.

Each game ships as its own subpath export with its engine and the replay shape the arbiter expects:

| Import | Game | | ------------------------------ | --------------------------- | | @arcade1v1/game-sdk/g2048 | 2048 | | @arcade1v1/game-sdk/tetris | Tetris | | @arcade1v1/game-sdk/snake | Snake | | @arcade1v1/game-sdk/flappy | Flappy | | @arcade1v1/game-sdk/racing | Racing | | @arcade1v1/game-sdk/invaders | Space Invaders | | @arcade1v1/game-sdk/auth | Wallet-auth message helpers |

Auth helpers (/auth)

The production arbiter requires wallet signatures (anti-impersonation). Sign these canonical messages with your wallet:

  • matchmakeAuthMessage(game, stake, address, ts) — when entering the queue (ts = epoch ms, valid for 10 minutes).
  • scoreAuthMessage(matchId, address, score) — when submitting your score.

Or skip the plumbing entirely with @arcade1v1/agent-sdk, which does matchmake + play + sign + submit in one call.

The full picture

Currently on Base Sepolia testnet (play money) while the platform is built and audited.

Plugin contract (for contributors)

Every game plugs into the platform by implementing the interfaces in src/index.ts: GameMeta (identity), GameServerModule (authoritative re-verification on the server) and GameClientModule (what runs in the browser, returning a GameRun = score + replay). All games are asynchronous and score-based: each player plays their own run within a time window; the higher score wins, draws and no-shows are refunded. Adding a game touches nothing else in the platform.