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

ai-gambling

v0.7.1

Published

AI gambling API SDK by Agent Casino (Rollhub) — provably fair dice, crypto betting, zero-trust verification for autonomous AI agents. 99% RTP, 70+ chains.

Readme

🎲 rollhub-dice

npm version PyPI version License: MIT MCP Compatible

The AI agent gambling API SDK for JavaScript/TypeScript — provably fair dice & coinflip, crypto betting, and zero-trust verification for autonomous agents.

🎰 Agent Casino — The first provably fair crypto casino built for AI agents

What is this?

rollhub-dice is the core JS/TS SDK for Agent Casino, the provably fair crypto betting API built for AI agents. Every dice roll is cryptographically verified using SHA3-384 + AES-256-CTR commit-reveal — zero-trust gambling with 99% RTP. Supports 70+ cryptocurrency chains and autonomous agent operation.

Features

  • Provably fair dice & coinflip gambling for AI agents — auto-verification of every bet
  • Zero-trust gambling — SHA3-384 + AES-256-CTR cryptographic commit-reveal proof
  • 70+ cryptocurrency chains for deposits and withdrawals (SOL, ETH, BTC, USDT, USDC...)
  • 99% RTP, 1% house edge, transparent math
  • 30% affiliate earnings — agent affiliate program with instant credit
  • AI agent crypto — deposit, bet, verify, withdraw across 70+ blockchains
  • Full TypeScript types, ESM + CJS dual build, zero dependencies

Quick Start

npm install rollhub-dice
import { DiceAgent } from 'rollhub-dice';

const agent = new DiceAgent({ apiKey: 'your-key' });

// Place a dice bet
const result = await agent.bet({ target: 50, direction: 'over', amount: 100 });
console.log(`Roll: ${result.roll}, Won: ${result.win}, Verified: ${result.proof?.verified}`);

// Coinflip
const flip = await agent.coinflip({ side: 'heads', amount: 50 });
console.log(`Result: ${flip.side}, Won: ${flip.win}`);

🤖 Claude Desktop / MCP Integration

Use Agent Casino directly from Claude Desktop, Cursor, or any MCP client:

npm install -g rollhub-dice-mcp

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "rollhub-dice": {
      "command": "npx",
      "args": ["-y", "rollhub-dice-mcp"],
      "env": {
        "ROLLHUB_API_KEY": "your-api-key"
      }
    }
  }
}

Then ask Claude: "Roll a dice over 50 for 100 units" — it just works!

See rollhub-dice-mcp for full MCP server docs.

💰 Affiliate Program — Earn Crypto with AI

Earn 30% of house edge on every bet by agents you refer. The agent affiliate program provides instant credit — AI agents can earn money autonomously by referring other agents.

Use rollhub-affiliate-mcp to let your AI agent promote Agent Casino and earn commissions automatically.

Full Ecosystem

| Package | Registry | Description | |---------|----------|-------------| | rollhub-dice | PyPI | Core Python SDK for AI agent gambling API | | rollhub-dice | npm | Core JS/TS SDK for AI agent gambling API | | rollhub-dice-mcp | npm | MCP server casino for Claude Desktop & Cursor | | rollhub-affiliate-mcp | npm | Affiliate marketing MCP server | | langchain-rollhub | PyPI | LangChain gambling tool | | crewai-rollhub | PyPI | CrewAI gambling tool | | rollhub-openai-tools | npm | OpenAI function calling gambling | | rollhub-ai-tools | npm | Vercel AI SDK tools | | eliza-rollhub | npm | ElizaOS plugin | | autogpt-rollhub | PyPI | AutoGPT plugin |

Keywords

AI agent gambling API, provably fair dice, crypto betting SDK, MCP server casino, Claude Desktop gambling, AI casino API, zero-trust verification, autonomous agent betting, Solana gambling, cryptocurrency dice game, AI agent crypto, coinflip API

Links