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

@unbrowse/stagehand-shim

v0.1.0

Published

Drop-in replacement for @browserbasehq/stagehand. act/extract/observe route through Unbrowse's resolved-route cache. Same import line, same API, no per-browser-hour billing.

Readme

@unbrowse/stagehand-shim

One-line drop-in for @browserbasehq/stagehand. $0 on cache hits.

- import { Stagehand } from '@browserbasehq/stagehand';
+ import { Stagehand } from '@unbrowse/stagehand-shim';

  const stagehand = new Stagehand({ env: 'BROWSERBASE', apiKey, projectId });
  await stagehand.init();
  await stagehand.page.goto('https://example.com');
  const data = await stagehand.extract('product list', mySchema);
  await stagehand.close();

act / extract / observe routed through Unbrowse's marketplace cache. Cache hit → returns immediately, no Browserbase session, no LLM screen-acting. Miss → falls through to real Stagehand (optional peer dep) with your existing Browserbase apiKey, so you pay them only on miss.

Install

npm i @unbrowse/stagehand-shim
# Optional fallback (only fires on cache miss):
npm i @browserbasehq/stagehand

Env

| Var | Meaning | |---|---| | UNBROWSE_API_KEY / UNBROWSE_X_PAYMENT | Auth for Unbrowse path | | BROWSERBASE_API_KEY / BROWSERBASE_PROJECT_ID | Already-set Browserbase fallback | | UNBROWSE_API_URL | Override default https://beta-api.unbrowse.ai |

What works on cache hit

| Method | Behavior | |---|---| | new Stagehand(config) | Stateless constructor | | init() | No-op — no browser spawn | | page.goto(url) | Remembers URL for next resolve call | | act(intent) | Resolves URL+intent via marketplace; returns ActResult on hit | | extract(instruction, schema) | Returns structured data from marketplace endpoint | | close() | Tears down any real-Stagehand instance that was spawned mid-flight |

What falls through to real Stagehand

  • observe() — Unbrowse doesn't model "observable elements on a live DOM" in v0.1.
  • Anything called after a cache miss — once the shim spawns a real Stagehand, subsequent calls go through it.

Cost comparison

| Browserbase tier | Monthly cost | Then | |---|---|---| | Free | $0 | 1 hr/mo, then refuse | | Dev | $20 | 100 hrs included, $0.12/hr after | | Startup | $99 | 500 hrs, $0.10/hr after | | @unbrowse/stagehand-shim | $0 base | $0 on cache hits; falls back to your existing tier on miss |

The break-even is at 0% cache rate (you pay the same as today). Anything above is direct savings.

Stickiness loop

Every fall-through Stagehand session publishes captured routes back to Unbrowse's marketplace under your wallet. Next call from any caller becomes a cache hit. You earn x402 micropayments when other agents hit your contributed routes.

License

MIT.