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

pi-playwright

v0.1.2

Published

Playwright browser automation skill package for pi

Readme

pi-playwright

Playwright browser automation skill package for pi.

It adds the playwright-browser skill so pi can open pages, inspect the DOM, click, fill forms, capture screenshots, watch console/network output, and save auth state through the local @playwright/cli.

CLI-first. Token-efficient. Built for coding agents.

Included skill

  • playwright-browser — browser automation via @playwright/cli

Why

This package keeps browser automation simple and inspectable:

  • local CLI execution instead of a large remote tool surface
  • project-scoped browser sessions
  • artifact-friendly workflows for screenshots, PDFs, and snapshots
  • minimal context overhead for coding agents

Install

Install into pi

pi install npm:pi-playwright

To install only for the current project:

pi install -l npm:pi-playwright

Pi installs the package dependencies automatically.

Install the bundled Chromium build once:

npx playwright install chromium

This is the browser open uses by default; a separate Google Chrome installation is not required.

Add to pi config

Global config (~/.pi/agent/settings.json):

{
  "packages": ["pi-playwright"]
}

Explicit npm source:

{
  "packages": ["npm:pi-playwright"]
}

If you want to pin a specific release, use npm:pi-playwright@<version>.

Project-local config (.pi/settings.json) works the same way.

Usage

Ask pi to use the skill naturally, or force it explicitly:

/skill:playwright-browser

Example prompts:

  • Use the playwright browser skill to test http://localhost:3000 login flow.
  • Open the app in a browser, take a full-page screenshot, and inspect console errors.
  • Use playwright-browser to fill the signup form and save auth state.

What the skill provides

Wrapper scripts live in skills/playwright-browser/scripts/:

  • pw.js — local playwright-cli wrapper with auto session selection
  • artifact-dir.js — prints a stable artifact directory for the current session
  • detect-dev-servers.js — probes common localhost dev server URLs

Default behavior:

  • session derived from the current git repo or cwd
  • artifacts stored under /tmp/pi-playwright/<session>/
  • resolves @playwright/cli through Node, so nested and hoisted installs both work
  • open uses the bundled Chromium build installed by npx playwright install chromium

Environment overrides:

| Variable | Effect | | --- | --- | | PLAYWRIGHT_CLI_SESSION | session name (default: git repo or cwd basename) | | PI_PLAYWRIGHT_ARTIFACTS | artifact directory (default: /tmp/pi-playwright/<session>/) | | PI_PLAYWRIGHT_BROWSER | browser for open: chromium, chrome, msedge, firefox, webkit (default: chromium) |

PLAYWRIGHT_CLI_SESSION=my-session node skills/playwright-browser/scripts/pw.js open https://example.com
PI_PLAYWRIGHT_BROWSER=msedge node skills/playwright-browser/scripts/pw.js open https://example.com
node skills/playwright-browser/scripts/pw.js open https://example.com --browser=firefox

Contributing

Issues and pull requests are welcome.

  • Repository: https://github.com/guwidoe/pi-playwright
  • Issue tracker: https://github.com/guwidoe/pi-playwright/issues

Local development:

git clone https://github.com/guwidoe/pi-playwright.git
cd pi-playwright
npm install
npm run setup
npm test
npm run smoke

To try the local checkout with pi:

pi install .

See CONTRIBUTING.md for collaboration and local development notes.

License

MIT