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-frontend-check

v1.0.1

Published

Pi extension: review and test JS frontends headlessly — open dev-server pages in Playwright Chromium, interact with them, capture screenshots the model can see, and collect console/network errors.

Readme

pi-frontend-check

test npm

A pi extension that lets the model review and test JS frontends headlessly, with screenshots it can actually see: frontend_open, frontend_act, frontend_screenshot, frontend_console, and frontend_eval drive a Playwright Chromium against your dev server, static build, or a plain HTML file.

Editing UI code without looking at the result is guesswork. With this extension the agent opens the page after a change, sees the rendered screenshot, walks the user flow (click, type, select), reads the browser console and failed network requests, and checks responsive layouts at phone/tablet/desktop widths — all headless.

Install

From npm:

pi install npm:pi-frontend-check

Or from git:

pi install git:github.com/sebaxzero/pi-frontend-check.git

Add -l to either form to install project-locally (adds to .pi/settings.json only).

No manual setup: the playwright npm dependency installs automatically with the package, and the Chromium binary (~150 MB) downloads once on the first browser launch. To pre-download it instead, run npx playwright install chromium in the install directory.

Tools

| Tool | What it does | |------|-------------| | frontend_open | Navigate to a URL, host:port shorthand, or HTML file path → title, console health line, screenshot | | frontend_act | click / type / press / hover / select / scroll / wait_for on the open page → updated state + fresh screenshot | | frontend_screenshot | Capture the viewport, the full page, or one element; optionally resize the viewport first (e.g. 375×812) for responsive testing | | frontend_console | Full collected log: console messages, uncaught page errors, failed requests, HTTP 4xx/5xx responses | | frontend_eval | Evaluate a JS expression in the page and return the JSON result — exact assertions (counts, text, computed styles) |

Every frontend_open / frontend_act result pairs a text half (title, URL, viewport, console error summary with the first errors inlined) with an image half (a screenshot of the rendered page), so one tool call answers both "does it error?" and "does it look right?".

What it deliberately is not

This is a testing tool for your own frontend, not a web browser:

  • No SSRF protection, no sanitizationlocalhost, private addresses, and file:// are the whole point. For browsing the open web with prompt-injection and SSRF defenses, use pi-browser-search or pi-safe-search.
  • No dev-server management — the agent starts your dev server itself (bash, background) and then points frontend_open at it.

Configuration

/frontend-check shows status, /frontend-check set KEY=VAL changes settings for the session, /frontend-check reset closes the browser. Persistent config lives in extensions/frontend-check.json:

| Key | Default | Meaning | |-----|---------|---------| | HEADLESS | true | Set false to watch the browser during a session | | VIEWPORT_WIDTH / VIEWPORT_HEIGHT | 1280 / 900 | Initial viewport | | NAV_TIMEOUT_MS | 30000 | Navigation timeout | | AUTO_SHOT | true | Attach a screenshot to every open/act result (set false for non-vision models) | | FULL_PAGE | false | Default screenshot mode | | SHOT_FORMAT / SHOT_QUALITY | jpeg / 80 | Screenshot encoding (png for lossless) | | MAX_CONSOLE | 200 | Console log ring-buffer size | | MAX_EVAL_CHARS | 4000 | Truncation limit for frontend_eval results |

Tests

node --test test.mjs

Pure logic (URL normalization, log formatting) lives in extensions/report.ts with no Playwright import, so tests run without a browser.

License

MIT