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

bwsr

v0.3.4

Published

Fast CLI for managing browser daemons via Playwright CDP

Readme

bwsr

Fast CLI for managing browser daemons via Playwright CDP.

Inspiration

agent-browser is a powerful tool for AI agents to interact with browsers via CDP. However, it expects a browser already running with CDP enabled.

bwsr fills that gap - it manages browser lifecycles so you can:

bwsr start                    # Start a browser daemon
agent-browser connect $(bwsr cdp) && agent-browser snapshot
bwsr stop --all               # Clean up when done

Installation

npm install bwsr playwright-core

Then install a browser:

npx playwright install chromium

Verify your setup:

bwsr doctor

Direct Download

Download binaries from GitHub Releases.

Note: You still need playwright-core installed separately:

npm install playwright-core
npx playwright install chromium

Requirements

  • playwright-core >= 1.40.0 (peer dependency)
  • Browser - At least one of: Chromium, Firefox, or WebKit
  • Platform - Linux or macOS (no Windows support)

Quick Start

# Start a browser (returns session name)
bwsr start
# → happy-fox

# Get CDP port for agent-browser
bwsr cdp
# → 42711

# Use with agent-browser
agent-browser connect $(bwsr cdp)
agent-browser open https://example.com
agent-browser snapshot

# Stop all browsers
bwsr stop --all

Commands

bwsr start

Start a new browser instance.

bwsr start                        # Use default profile
bwsr start --profile my-profile   # Use specific profile
bwsr start --session my-session   # Custom session name
bwsr start --verbose              # Show detailed output

bwsr stop

Stop browser instances.

bwsr stop happy-fox    # Stop specific session
bwsr stop --all        # Stop all sessions

bwsr list

List running browser instances.

bwsr list
# happy-fox  default  42711  healthy

bwsr cdp

Get CDP port for connecting tools like agent-browser.

bwsr cdp              # First available session
bwsr cdp happy-fox    # Specific session

bwsr profile

Manage browser profiles.

bwsr profile create work
bwsr profile set work --browser chromium --headless
bwsr profile set work --viewport 1920x1080
bwsr profile list
bwsr profile show work
bwsr profile remove work

Profile options:

  • --browser <chromium|firefox|webkit>
  • --headless / --no-headless
  • --viewport <width>x<height>
  • --locale <locale>
  • --timezone <tz>
  • --color-scheme <light|dark>
  • --user-agent <string>

bwsr doctor

Check runtime requirements, browser availability, and system configuration.

bwsr doctor

# bwsr doctor
# ==================================================
#
# [Runtime]
#   ✓ playwright-core: 1.57.0
#
# [Configuration]
#   Config dir: ~/.bwsr
#   Profiles:   ~/.bwsr/profiles
#   Sockets:    ~/.bwsr/sockets
#
# [Browsers]
#   ✓ chromium: ~/.cache/ms-playwright/chromium-1194/chrome-linux/chrome
#   - firefox: not found
#   - webkit: not found
#
# [Status]
#   Running instances: 0
#
# ==================================================
# ✓ All checks passed. Ready to use bwsr.

If something is missing, doctor will suggest installation commands.

Architecture

┌─────────┐     ┌──────────┐     ┌─────────┐     ┌─────────┐
│   CLI   │────▶│ Watchdog │────▶│ Wrapper │────▶│ Browser │
└─────────┘     └──────────┘     └─────────┘     └─────────┘
                     │                │               │
                     │    IPC         │    IPC        │    CDP
                     │   (Unix        │   (Unix       │   (HTTP)
                     │   Socket)      │   Socket)     │
                     ▼                ▼               ▼
               Auto-starts      Manages          Playwright
               on first use     lifecycle        instance
  • CLI: User-facing commands
  • Watchdog: Central daemon that manages all browser instances
  • Wrapper: Per-browser process with IPC server
  • Browser: Actual Chromium/Firefox/WebKit via Playwright

The watchdog auto-starts when you run bwsr start and exits when no browsers remain.

Platform Support

| Platform | Status | |----------|--------| | Linux x64 | ✅ | | Linux ARM64 | ✅ | | macOS x64 | ✅ | | macOS ARM64 | ✅ | | Windows | ❌ (no Unix sockets) |

License

MIT