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

@hasna/browser

v0.3.4

Published

General-purpose browser agent toolkit — Playwright, Chrome DevTools Protocol, Lightpanda with auto engine selection. CLI + MCP + REST + SDK.

Readme

open-browser

Unified browser automation MCP for AI agents — wraps Chrome DevTools, Playwright, and Lightpanda with a common interface, screenshot compression, and switchable backends.

Problem

chrome-devtools-mcp is great but has critical issues:

  • take_screenshot returns raw PNG that can exceed 20MB, breaking MCP protocol
  • No compression/resize before returning
  • No backend flexibility (only Chrome)
  • No smart routing (always spins up full Chrome even for simple fetches)

Solution

open-browser provides:

  • Unified tool interface — same tools work across all backends
  • Automatic screenshot compression — max 1200px, JPEG 70%, guaranteed <500KB
  • Switchable backends — Chrome DevTools, Playwright, Lightpanda
  • Smart auto-selection — light pages → Lightpanda, JS apps → Chrome, cross-browser → Playwright
  • All the tools — navigate, click, fill, snapshot, screenshot, upload, evaluate, wait

Backends

| Backend | Speed | JS Support | Use case | |---------|-------|------------|----------| | Chrome DevTools | Medium | Full | Complex SPAs, auth flows, file uploads | | Playwright | Medium | Full | Cross-browser, PDF, reliable selectors | | Lightpanda | Fast (~10x) | Partial | Static pages, scraping, DOM inspection |

Installation

bun install -g @hasna/browser

Requirements

Note: The Bun.WebView engine requires Bun canary until WebView support lands in a stable release. Install with: bun upgrade --canary. Other engines (Playwright, CDP, Lightpanda) work with stable Bun.

Usage

# Default (Chrome DevTools backend)
browser serve

# Playwright backend
BROWSER_BACKEND=playwright browser serve

# Lightpanda backend
BROWSER_BACKEND=lightpanda browser serve

MCP Tools

All tools work identically across backends:

  • navigate_page — Go to URL
  • take_snapshot — Get accessibility tree (text, no size issues)
  • take_screenshotCompressed screenshot (max 1200px, JPEG 70%)
  • click — Click element by UID
  • fill — Fill input
  • type_text — Type text
  • press_key — Press keyboard key
  • upload_file — Upload file to input
  • evaluate_script — Execute JavaScript
  • wait_for — Wait for element/condition
  • new_page — Open new tab
  • close_page — Close tab
  • list_pages — List open tabs
  • get_network_requests — Inspect network traffic

Status

🚧 In development. See tasks for progress.

License

Apache-2.0 — see LICENSE