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

@browserbasehq/cli

v0.5.7

Published

Browserbase CLI for platform APIs, functions, and browse passthrough.

Readme

Browserbase CLI

The official CLI for Browserbase. Manage sessions, deploy serverless functions, browse the web, and interact with the full Browserbase platform from your terminal.

Installation

npm install -g @browserbasehq/cli

Requires Node.js 18+.

Quick Start

# Set your API key
export BROWSERBASE_API_KEY=bb_live_...

# Fetch a webpage
bb fetch https://example.com

# Search the web
bb search "browserbase documentation"

# Browse interactively
bb browse https://example.com

# List your sessions
bb sessions list

Commands

bb fetch <url>

Retrieve webpage content without a full browser session.

bb fetch https://example.com
bb fetch https://example.com --output page.json
bb fetch https://example.com --proxies --allow-redirects

| Flag | Description | |------|-------------| | --output <path> | Write response to file | | --proxies | Enable Browserbase proxy support | | --allow-redirects | Follow HTTP redirects | | --allow-insecure-ssl | Bypass TLS certificate verification |

bb search <query>

Search the web using the Browserbase Search API.

bb search "web automation tools"
bb search "browserbase" --num-results 5

| Flag | Description | |------|-------------| | --num-results <n> | Number of results (1-25, default 10) | | --output <path> | Write results to file |

bb browse [args...]

Launch a browser session. Forwards to the @browserbasehq/browse-cli package (auto-installs on first use).

bb browse https://example.com
bb browse --yes  # skip install prompt

bb sessions

Manage remote browser sessions.

bb sessions list                    # List all sessions
bb sessions list --q "status=RUNNING"  # Filter by metadata
bb sessions get <session-id>        # Get session details
bb sessions create --body '{"projectId":"..."}'
bb sessions update <id> --status REQUEST_RELEASE
bb sessions debug <id>              # Get debugger connection URLs
bb sessions logs <id>               # View session logs
bb sessions recording <id>          # Get rrweb recording events
bb sessions downloads get <id>      # Download session artifacts (ZIP)
bb sessions uploads create <id> <file>  # Upload a file to a session

bb functions

Write and deploy serverless browser automation to the cloud.

# Scaffold a new project
bb functions init my-function

# Run locally
bb functions dev handler.ts --port 3000

# Deploy to Browserbase
bb functions publish handler.ts
bb functions publish handler.ts --dry-run  # preview without deploying

# Invoke a deployed function
bb functions invoke <function-id> --params '{"url":"https://example.com"}'
bb functions invoke --check-status <invocation-id>

| Subcommand | Description | |------------|-------------| | init [name] | Scaffold a Functions project (--package-manager npm\|pnpm) | | dev <entry> | Start local dev server (--port, --host, --verbose) | | publish <entry> | Deploy function (--dry-run) | | invoke [id] | Invoke a function (--params, --no-wait, --check-status) |

bb projects

Manage Browserbase projects.

bb projects list
bb projects get <project-id>
bb projects usage <project-id>

bb contexts

Persist browser state (cookies, localStorage) across sessions.

bb contexts create --body '{"projectId":"..."}'
bb contexts get <context-id>
bb contexts update <context-id>   # Refresh upload URL
bb contexts delete <context-id>

bb extensions

Manage Chrome extensions for remote sessions.

bb extensions upload extension.zip
bb extensions get <extension-id>
bb extensions delete <extension-id>

bb skills

Install Browserbase agent skills for Claude Code.

bb skills           # Interactive install
bb skills install   # Non-interactive install
bb skills --yes     # Auto-accept prompts

Configuration

| Environment Variable | Description | |---------------------|-------------| | BROWSERBASE_API_KEY | Your Browserbase API key (required) | | BROWSERBASE_PROJECT_ID | Default project ID for Functions | | BROWSERBASE_BASE_URL | Custom API base URL |

All environment variables can be overridden per-command with --api-key, --project-id, or --base-url flags.

Development

bun install
bun run cli -- --help     # Run locally
bun run check             # Type-check
bun run build             # Build to dist/
bun run test              # Build + run tests

License

This project is licensed under the MIT License — see the LICENSE file for details.