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

@ikenga/pkg-browser

v0.1.0

Published

Playwright verb engine behind Ikenga's /iyke/browser/* contract — replaces the Rust chromiumoxide Chrome engine (ADR-018). Managed (dedicated profile) + Attach (everyday Chrome via the official Playwright extension).

Readme

@ikenga/pkg-browser

The browser engine behind Ikenga's /iyke/browser/* contract — a Playwright verb engine the shell (and its agents) use to drive Chrome. Replaces the Rust chromiumoxide engine (ADR-018).

What it gives you

Two ways to drive Chrome, picked per-pane:

  • Managed — launches the installed Chrome on a persistent, headful profile the agent fully controls (separate from your everyday browser). Logs in once, reuses the session; you can watch / take over / review. Best for agent-driven build/test tasks.
  • Attach — connects over CDP to a Chrome you started with --remote-debugging-port, and drives a chosen tab (attach_target: new | active | <id>) without disturbing the rest. (For driving your everyday logged-in Chrome with no relaunch, the official @playwright/mcp --extension is the smoother path — see ADR/plan 12.)

Prerequisites

  • Node on PATH (the sidecar runs on Node — Bun can't do connectOverCDP). Managed-only use works on the shell's bundled Bun, but Node is the supported runtime.
  • Google Chrome installed (the engine drives your installed Chrome via Playwright's chrome channel; it does not download a browser).

Install + use (works today)

The shell resolves the sidecar in this order: IKENGA_PW_SIDECAR env → installed pkg (pkg_installed) → in-workspace dev build. The simplest user path is npm + the env override:

# 1) install the engine (bundles Playwright — ~3.7 MB)
npm install -g @ikenga/pkg-browser

# 2) point the shell at it (add to ~/.bashrc to persist)
export IKENGA_PW_SIDECAR="$(npm root -g)/@ikenga/pkg-browser/dist/sidecar.js"

# 3) (re)start the Ikenga shell — chrome panes now resolve to this engine

Then drive it:

  • Interactive — ⌘K → "Attach Chrome profile / tab…" (the picker).
  • CLIiyke browser open <pane> <url> --engine chrome --mode managed (or --mode attach --attach-target new).
  • Agents / MCP — the /iyke/browser/* verbs (open with engine:"chrome", then snapshot / click / fill / eval / screenshot). Managed defaults headful; pass headless: true per-pane for autonomous runs.

Standalone (no shell — a script or your own MCP host): the pkg is a self-contained HTTP server.

IKENGA_PW_PORT=9333 node "$(npm root -g)/@ikenga/pkg-browser/dist/sidecar.js"
# → prints `IKENGA_PW_READY 9333`; POST the /iyke/browser/* verbs to it.

Coming: one-command install via the Ọba registry

ikenga add @ikenga/pkg-browser (and the in-shell store) need this pkg in the signed Ọba registry. That's pending two things: it diverges from the registry's @ikenga/pkg-* naming convention (a rename-republish or a manual index entry), and the index must be re-signed with the registry's minisign key. Until then, use the npm + IKENGA_PW_SIDECAR path above.

Verbs

| Verb | Playwright | Notes | |---|---|---| | open | launchPersistentContext({channel:"chrome"}) (managed, persistent profile) / connectOverCDP (attach) | per-pane session registry; headless? + attach_target? | | profiles / targets | reads OS Chrome Local State / CDP /json | feeds the profile+tab picker | | launch_profile | spawns Chrome --profile-directory --remote-debugging-port | singleton-gated | | snapshot | re-tag interactive els → e<N> refs | refs invalidate on next snapshot | | click / fill / select / press_key / focus | locator(...) | auto-wait + actionability | | eval | page.evaluate("(() => { …script… })()") | IIFE-return contract | | screenshot | page.screenshot() | base64 PNG | | read_text / wait_for / pause / resume / close / list | — | — |

Managed profiles persist under IKENGA_PW_PROFILES_DIR (or ~/.ikenga/managed-profiles/<partition>).