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.3.1

Published

Only 1 tool links to Chrome — the tiniest extension you need.

Downloads

111

Readme

pi-to-chrome

What's new?

The inspection tool suite got a complete rewrite — Onli 1 tool but including a tree-view DOM explorer, a layout debugger, and a CSS tracer that actually pinpoints stylesheet files. Now they are more smart.

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.

Inspired by Pi's philosophy, I built pi-to-chrome for myself. 6 most-used functions, combined into one tool. Minimalist. Token-efficient. Nothing more, nothing less.

The world went quiet, quickly, and clean.

Only 1 tool, 6 actions

The single chrome_inspect tool does everything — 6 actions for your inspection needs:

  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. Summary now shows <tag.class#id>, text snippet, and directly usable selector.
  2. trace_css — When a CSS rule sneaks in from nowhere and ruins your layout, use this to trace the exact stylesheet file and line — no more guessing where it came from.
  3. show_dom_tree — Need to understand the DOM structure at a glance? Display the subtree as a tree with connectors, detect shadow roots, and truncate long sibling lists.
  4. check_layout — Layout broken? Check element dimensions and layout properties, trace up the ancestor chain to find the height constraint or flex issue causing it.
  5. 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.
  6. execute_js — Throw any JavaScript at Chrome. Execute it, get results back, debug on the fly.

Only 2 commands

If pi and Chrome are running on same local computer:

  • /chrome-start — launch a local Chrome automatically (or connect to one already running), enable this toolbox
  • /chrome-stop — closes the local 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]