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

buildbear

v1.1.1

Published

BuildBear CLI — manage sandboxes, faucets, snapshots, and contracts from the terminal

Downloads

343

Readme

BuildBear CLI

buildbear is the official CLI for the BuildBear blockchain sandbox platform. It lets developers and AI agents manage sandboxes, fund wallets, take snapshots, and inspect contracts — entirely from the terminal.

Install

curl -fsSL https://install.buildbear.io/cli | bash

Or via npm:

npm install -g buildbear

Requires Node.js 20+.

Quick Start

# 1. Authenticate
buildbear auth setup

# 2. Create a sandbox
buildbear sandbox create --network 1 --name my-env
# → RPC URL: https://rpc.buildbear.io/yielding-mysterio-055e0fb6

RPC=https://rpc.buildbear.io/yielding-mysterio-055e0fb6

# 3. Fund a wallet
buildbear faucet native $RPC --address 0xYourWallet --amount 10

# 4. Snapshot before tests
buildbear snapshot take $RPC
# → Snapshot: 0x1

# 5. Revert after tests
buildbear snapshot revert $RPC --snapshot 0x1

# 6. Clean up
buildbear sandbox delete $RPC

Commands

Authentication

buildbear auth setup      # Interactive wizard (first-time setup)
buildbear auth login      # Direct API key prompt
buildbear auth logout     # Clear stored credentials
buildbear auth status     # Show auth state

Sandbox Management

buildbear sandbox create --network <chainId> [--name label] [--fork-block N] [--chain-id N] [--prefund addr1,addr2]
buildbear sandbox list
buildbear sandbox delete <rpcUrl>
buildbear sandbox networks

Status

buildbear status [rpcUrl]   # Quick health check (live/pending/dead). Falls back to .buildbear.json

Faucet

buildbear faucet native [rpcUrl] --address <wallet> [--amount <ether>]     # default: 1 ETH
buildbear faucet erc20 [rpcUrl] --token <contractAddr> --address <wallet> [--amount <amount>]  # default: 1000

Snapshots

buildbear snapshot take [rpcUrl]
buildbear snapshot revert [rpcUrl] --snapshot <snapshotId>

Contracts

buildbear contract source <rpcUrl> --address <contractAddr>
buildbear contract abi <rpcUrl> --address <contractAddr>
buildbear contract verify <rpcUrl> --address <contractAddr> [--type etherscan|sourcify]  # default: etherscan

Utilities

buildbear rpc [rpcUrl] --method <method> [--params '[...]']   # JSON-RPC passthrough (supports @file.json)
buildbear init                                                 # Interactive project setup
buildbear --version
buildbear --help

When [rpcUrl] is optional, the CLI reads it from .buildbear.json in the current directory if present.

Global Flags

Most commands support:

  • --json — machine-readable JSON output (for CI and AI agents)
  • --quiet — suppress all output except errors

Note: auth setup, auth login, auth logout, and init do not support --quiet.

Authentication

API key is stored at ~/.config/buildbear/config.json (mode 600).

Set BUILDBEAR_API_KEY environment variable to override (CI-safe):

export BUILDBEAR_API_KEY=your_key_here
buildbear sandbox list --json

Project Config (.buildbear.json)

Run buildbear init in your project directory to create a local config file. When present, rpcUrl defaults are read from it so you don't need to pass them every time.

{
  "rpcUrl": "https://rpc.buildbear.io/yielding-mysterio-055e0fb6",
  "network": "Ethereum Mainnet",
  "chainId": 1234,
  "forkChainId": 1,
  "explorerUrl": "https://explorer.buildbear.io/yielding-mysterio-055e0fb6"
}

CI/CD (GitHub Actions)

- name: Install BuildBear CLI
  run: npm install -g buildbear
  env:
    BUILDBEAR_API_KEY: ${{ secrets.BUILDBEAR_API_KEY }}

- name: Create sandbox
  run: |
    RPC_URL=$(buildbear sandbox create --network 1 --json | jq -r .rpcUrl)
    echo "BB_RPC_URL=$RPC_URL" >> $GITHUB_ENV

- name: Run tests
  run: forge test --rpc-url $BB_RPC_URL

- name: Cleanup
  if: always()
  run: buildbear sandbox delete $BB_RPC_URL --json

Agent Usage

# Always use --json for machine-readable output
RPC_URL=$(buildbear sandbox create --network 1 --json | jq -r .rpcUrl)
buildbear faucet native $RPC_URL --address 0xWallet --amount 100 --json
SNAPSHOT=$(buildbear snapshot take $RPC_URL --json | jq -r .snapshotId)
buildbear snapshot revert $RPC_URL --snapshot $SNAPSHOT --json
buildbear sandbox delete $RPC_URL --json