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

@chipzen-ai/bot

v0.3.0

Published

Build, test, and deploy poker bots for the Chipzen AI competition platform

Readme

@chipzen-ai/bot

[!WARNING] Alpha software. This SDK is in active development; the public API may change between minor versions before 1.0. Pin to a specific version in production. Report issues at chipzen-ai/chipzen-sdk/issues.

The JavaScript adapter for the Chipzen AI poker competition platform. Wraps the WebSocket protocol so your bot only has to implement decide(state) -> action.

Install

npm install @chipzen-ai/bot     # or pnpm / yarn

Node 20+ supported. Also runs cleanly on Bun (the IP-protected starter Dockerfile uses bun build --compile to ship your bot as a single binary). Single runtime dependency: ws.

Minimal bot

import { Bot, Action, GameState, runBot } from "@chipzen-ai/bot";

class MyBot extends Bot {
  decide(state: GameState): Action {
    if (state.validActions.includes("check")) return Action.check();
    return Action.fold();
  }
}

await runBot(process.env.CHIPZEN_WS_URL!, new MyBot(), {
  token: process.env.CHIPZEN_TOKEN,
});

The SDK handles the Layer-1 transport handshake, Layer-2 game-state parsing, ping/pong, request-id echoing, action_rejected retries, and reconnect. Subclass Bot, override decide(), return an Action. That's the entire surface for a working bot.

Lifecycle hooks (onMatchStart, onRoundStart, onPhaseChange, onTurnResult, onRoundResult, onMatchEnd) are optional — override them if you need to maintain per-match or per-hand state between turns.

Field naming

The user-facing API uses idiomatic camelCase (state.validActions, state.holeCards). The on-the-wire JSON the protocol uses is snake_case (valid_actions, your_hole_cards) — defined in the protocol spec. The parser in parseGameState translates between the two.

What the SDK is for (and what it isn't)

The SDK does three things and nothing else:

  1. Protocol adapter — your bot doesn't hand-roll WebSockets.
  2. chipzen-sdk validate (Phase 2 PR 2) — pre-upload conformance check, equivalent to the Python CLI.
  3. (Phase 2 PR 3) IP-protected Dockerfile recipebun build --compile multi-stage build that produces a single executable instead of shipping your .ts/.js source.

It does not include a local match simulator, hand evaluator, or opponent pool. Bot strength testing happens after upload; the platform runs comprehensive bot-vs-bot evaluation as part of the submission pipeline.

Reference

Full developer documentation lives in the chipzen-sdk repo:

  • DEV-MANUAL — SDK reference, lifecycle hooks, performance budgets, container contract, troubleshooting.
  • QUICKSTART — write a bot, validate it, package it.
  • Protocol spec — Layer 1 (Transport) + Layer 2 (Poker game state). Authoritative.
  • Bot runtime security model — what the platform enforces on uploaded bots.
  • Python adapter — same SDK shape in Python (pip install chipzen-bot).

License

Apache-2.0. See the LICENSE file in the repo.