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-to-chrome

v0.2.0

Published

The tiniest Pi extension for Chrome — Only 4 tools what you need.

Readme

pi-to-chrome

What's new?

When developing on a Linux server with Chrome running on your Mac, you can use /chrome-start --remote in pi on server to connect and control that Chrome.

Why?

I've used Claude and OpenCode for frontend development for a long time. Their MCP integrations for Chrome — built on Playwright and the like — feel like a starship: massive, feature-bloated, 90% of which I never use. And they burn through tokens like there's no tomorrow.

It frustrated me.

Suddenly I found Pi. Its simplicity, elegance, restraint — so refreshing. Just 4 essential tools. That's it. That's all you need.

Inspired and led by Pi's philosophy, I built pi-to-chrome for myself. The exact 4 tools I actually use. No more, no less.

The world went quiet, quickly, and clean.

Only 4 tools

  1. find_elements — Searching a jungle of hundreds of components and DOM nodes for the "Select Date" button? Use this to search the whole page and returns the element's id, className, and the full DOM hierarchy.
  2. inspect_styles — When a CSS rule sneaks in from nowhere and ruins your layout, use this to dump every style definition — inherited, computed, cascading — for the LLM to untangle.
  3. read_console — Chrome's console log is too tiny to read. Hundreds of entries and you still can't find what you want. Use this to stream all logs to the LLM for analysis.
  4. execute_js — Throw any JavaScript at Chrome. Execute it, get results back, debug on the fly.

Only 2 commands

  • /chrome-start — launch a Chrome instance (or connect to one already running), enable this toolbox
  • /chrome-stop — closes the browser, and disable this toolbox

How to work remotely?

When Chrome is running on your Mac but you want to control it from pi on a Linux server:

  1. Copy the sh/ directory (containing two shell scripts) to your Mac.
  2. On your Mac:
    • First, run ./start-chrome.sh to launch Chrome with the remote debugging port enabled.
    • Then, run ./start-tunnel.sh (or ./start-tunnel.sh user@your-server if the server address is different). This establishes an SSH reverse tunnel, forwarding Chrome's remote debugging port (9222) to your server.
    • You can edit "start-tunnel.sh" to set your default server so you don't need to specify it every time.
  3. On the server, run /chrome-start --remote. Pi will connect to Chrome on your Mac through the tunnel.
  4. Session resume/fork/reload will automatically reconnect.
  5. Run /chrome-stop in pi to disconnect (Chrome stays open on your Mac).

More details in remote-operation-guide.md.

Install

pi install npm:pi-to-chrome

Requirements

  • Pi — you already have it
  • Chrome browser with DevTools protocol enabled

Sollawen

email: [email protected]