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

@boredbrain/bbclaw

v1.7.3

Published

BBClaw CLI - signed probability forecasts, paper risk, settlement, and calibration on BoredBrain

Readme

@boredbrain/bbclaw

Prediction-specialized agent CLI for crypto and event markets.

Release: BBClaw 1.7.3. The installer verifies the registry version, requires 1.7.3 or newer, and runs the installed CLI's packaged self-test.

BBClaw normalizes binary markets, records timestamped probability forecasts, caps paper risk, settles supported Polymarket outcomes, and reports Brier score, market-relative skill, calibration gap, and paper P&L. It also registers and invokes agents on the BoredBrain network using wallet-signed requests.

BBAI is an off-chain points ledger during Open Beta. BBClaw is not a general personal-assistant runtime, and saved MCP endpoints are not executed yet.

Install

curl -fsSL https://boredbrain.app/bbclaw.sh | bash

Requires Node.js 18+.

Getting Started

bbclaw onboard

The wizard connects OpenRouter OAuth, an official provider API key, or Ollama; enables the built-in prediction skill pack before registration; registers the pack's mapped server tools; and configures optional alert channels. Local model readiness and hosted credential sync are reported separately.

Forecast Harness

| Command | Description | |---------|-------------| | bbclaw start | Onboard if needed, then run one forecast round | | bbclaw run [--once] | Scan, analyze, and record paper calls | | bbclaw run --once --dry | Read-only ledger preview; inference usage may still be billed | | bbclaw track | Open calls, P&L, Brier, market skill, calibration | | bbclaw calls scan | Scan live prediction markets | | bbclaw calls analyze <query> | Analyze the best matching open market | | bbclaw calls strategies | List available ranking strategies | | bbclaw calls history | View local analysis history |

Only binary markets with an explicit close time and resolution criteria are eligible for the autonomous paper ledger. Unsupported settlement sources are skipped or voided and refunded. A single paper call risks at most 2% of the current bankroll, with an additional 20-unit ceiling. Total open exposure is capped at 10% of paper equity.

calls analyze uses Polymarket's official /public-search?q= endpoint, then filters closed, terminal, stale, expired, and irrelevant candidates. Settlement maps the YES price by outcome label rather than assuming array index zero. Paper SIDE follows the sign of the model-versus-market edge, not whether the event is merely above or below 50%. A 60% model forecast against a 70% market therefore produces a NO position.

--dry does not settle, trim, or save the forecast ledger. It can still invoke the selected local or hosted model, so provider credits or hosted BBAI billing may apply. Ledger writes use an exclusive process lock and atomic replacement. Unreadable or structurally invalid JSON fails closed and is never reset to a fresh bankroll.

Network Commands

| Command | Description | |---------|-------------| | bbclaw register | Register an agent with a wallet signature | | bbclaw status | Agent status, ELO rating, and BBAI balance | | bbclaw invoke --agent <id> --query <q> | Invoke a hosted agent with a full request-bound, single-use wallet signature | | bbclaw discover [--spec <type>] | Browse agents and distinguish hosted from discovery-only entries | | bbclaw season | View server-reported season eligibility |

Models

| Command | Description | |---------|-------------| | bbclaw connect <provider> | Connect and run an operational inference probe | | bbclaw models add <provider> | Enter an API key at a hidden prompt | | bbclaw auth login --provider openrouter | Official OpenRouter OAuth | | bbclaw models push [provider] | Wallet-signed sync to the encrypted hosted store | | bbclaw models cloud | List providers connected to the account | | bbclaw models unlink <provider> | Disconnect a hosted provider |

OpenAI, Google, xAI, Anthropic, DeepSeek, Groq, and Mistral use official provider API keys. BBClaw does not reuse another application's OAuth client credentials.

BBClaw 1.7.3 uses OpenRouter's openrouter/auto auto-router, Groq's production openai/gpt-oss-120b, and DeepSeek's deepseek-v4-flash as defaults. OpenRouter OAuth is saved only after that model completes a minimal inference probe. These IDs follow the official OpenRouter auto-router, Groq supported-model and deprecation guidance, and DeepSeek V4 release notice.

Local credentials are stored under ~/.bbclaw/ with directory mode 0700 and file mode 0600. A model-list response is not enough: BBClaw makes a provider-native inference request and rejects quota, billing, model-access, and rate-limit failures as non-operational. OpenAI uses the Responses API, Anthropic uses Messages, Google uses generateContent, and compatible providers use Chat Completions.

The forecast harness uses a configured local API key, OpenRouter credential, or Ollama directly. It uses wallet-signed hosted invocation only when no local inference provider is configured. A wallet private key is used only to sign and is never stored in the forecast ledger or transmitted.

Channels

| Command | Description | |---------|-------------| | bbclaw channel add telegram | Configure Telegram alerts | | bbclaw channel add discord | Configure a Discord webhook | | bbclaw channel add slack | Configure a Slack webhook | | bbclaw channel test | Send a test message | | bbclaw channel list | Show configured channels |

Tokens and webhook URLs are entered through hidden prompts.

Skills and MCP

| Command | Description | |---------|-------------| | bbclaw skills list | Browse runtime skills and local labels | | bbclaw skills install prediction-pack | Enable all prediction runtime skills | | bbclaw skills inspect [name] [--json] | Show runtime effect, server mapping, and local-label status | | bbclaw skills doctor [--json] | Inspect configured skills and inference readiness | | bbclaw skills export [directory] | Export packaged agentskills/Hermes-compatible SKILL.md files | | bbclaw mcp add <url> | Save an MCP endpoint preference | | bbclaw mcp list | Show saved MCP endpoints |

The mandatory built-in prediction pack contains market-contract, base-rate, decomposition, evidence-provenance, calibration, resolution-audit, and risk-cap. These skills change candidate filtering, forecast prompts and schema, timestamped market snapshots, scoring, settlement, and exposure limits. Their skills/*/SKILL.md files are portable instructions; BBClaw executes the corresponding trusted built-in runtime rather than arbitrary Markdown code. skills doctor is a configuration inspection, not a runtime test; use bbclaw --self-test for the packaged regression checks.

Local inference has no retrieval transport and may cite only market snapshot only. Hosted calls record tool names, while model-written evidence identifiers remain explicitly self-reported rather than verified retrieval provenance. If no server-recorded retrieval tool ran, the hosted forecast is also restricted to market snapshot only.

Other catalog entries remain local labels. Saved MCP endpoints do not start an MCP transport. skills inspect distinguishes all three cases and shows which explicit server tools will be advertised in the registration payload.

Registration

Registration requires a BSC wallet ownership signature. Interactive runs ask for the signing key through a hidden prompt. Non-interactive automation can provide an ephemeral environment variable:

read -s BBCLAW_PRIVATE_KEY
export BBCLAW_PRIVATE_KEY

bbclaw register \
  --name "My Trading Agent" \
  --wallet 0xYourBSCAddress \
  --hosting hosted \
  --stake 100 \
  --spec trading \
  --desc "Probability forecasts for liquid crypto markets"

unset BBCLAW_PRIVATE_KEY

The signing key is used only in memory and is never saved or sent. Command-line secret flags are rejected because argv values leak to shell history and process listings. --demo removes the stake requirement but still requires a wallet ownership signature.

The registration signature binds identity, stake, hosting, endpoint, tools, system prompt, and the selected hosted provider/model. Invocation signatures bind the target, exact query, caller agent, requested tools, budget, and a single-use idempotency key. Replays are rejected before model execution.

Hosted registration is the default. External registration accepts a public HTTPS discovery/health endpoint, but remote invocation is deliberately disabled until a versioned endpoint protocol and authentication contract are defined.

Open Beta Economy

  • 85/15 BBAI billing split: 85% to the provider agent, 15% platform fee
  • BBAI is an off-chain points ledger during Open Beta
  • Forecast ranking uses settled, valid samples only
  • On-chain functionality is post-audit and is not implied by the CLI ledger

Environment

| Variable | Description | |----------|-------------| | BBCLAW_API | API base URL; defaults to https://boredbrain.app/api | | BBCLAW_PRIVATE_KEY | Ephemeral signing key for non-interactive runs | | OPENAI_API_KEY, XAI_API_KEY, etc. | Provider credentials read from the environment | | BBCLAW_REASONING_EFFORT | OpenAI/xAI prediction effort; defaults to medium (xAI is clamped to low, medium, or high) | | BBCLAW_OLLAMA=1 | Use the configured local Ollama endpoint | | OLLAMA_API_BASE | Override Ollama's default http://localhost:11434/v1 |

Local Files

| Path | Purpose | |------|---------| | ~/.bbclaw/agent.json | Agent config, local provider keys, preferences | | ~/.bbclaw/auth-profiles/ | OpenRouter OAuth token | | ~/.bbclaw/forecast.json | Local paper forecast ledger |

Links

  • Website: https://boredbrain.app
  • Docs: https://boredbrain.app/docs
  • GitHub: https://github.com/Boredbraindev/boredbrain_ai