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-search-on-your-browser

v0.1.1

Published

Search Google in your own visible Chrome — same approach as @antirez's ds4-agent. Zero dependencies, no API keys.

Readme

pi-search-on-your-browser

Search Google in your own visible Chrome browser — the ds4-agent style by @antirez.

"If you need AI to do a search for you in the real world, ds4-agent is basically SOTA, because it can access the web sites without any limitations given that it uses your local Chrome browser (no, not in headless mode, that's the trick...)" — @antirez on X, 2026-06-14

This Pi package uses exactly the same approach: launches your visible Chrome (not headless), navigates to google.com via CDP, runs JavaScript extractors in the page, and returns compact Markdown results. No API keys. No headless detection. Your real browser fingerprint, cookies, and login sessions.

How it works

When you call google_search or visit_page:

  1. A visible Chrome window opens (not headless) with a dedicated profile at ~/.pi-search-browser/
  2. Chrome DevTools Protocol (CDP) is used to navigate and extract content
  3. JavaScript runs in the page to extract readable markdown
  4. Chrome stays alive between calls for speed (kill with /google-search-kill)

This means you're authenticated everywhere — paywalled sites, Twitter, GitHub, Google — because it's your real browser.

Install

pi install npm:pi-search-on-your-browser

Or from git:

pi install git:github.com/xezpeleta/[email protected]

Tools

google_search

Search Google and get compact markdown links + text snippet.

google_search({ query: "TypeScript 5.7 release notes" })

visit_page

Visit any URL and get the page content as markdown.

visit_page({ url: "https://example.com/article" })

Commands

  • /google-search-kill — Kill the Chrome browser

Requirements

  • Google Chrome or Chromium installed (Firefox is not currently supported — see below)
  • Node.js 20+

Why Chrome only?

Firefox uses the WebDriver BiDi protocol for remote control, not the Chrome DevTools Protocol (CDP). While both use WebSocket, Firefox's BiDi server requires a manual WebSocket handshake with specific header handling (no Origin header). Node.js's built-in WebSocket doesn't expose custom headers, and adding a full WebSocket library like ws would break the zero-dependency constraint of this package. Pull requests welcome if you can solve this without dependencies.

Comparison with ds4-agent

| | pi-search-on-your-browser | ds4-agent | |---|---|---| | Language | TypeScript (Node.js) | C | | Chrome connection | CDP WebSocket (manual RFC 6455) | CDP WebSocket (manual RFC 6455) | | Profile | ~/.pi-search-browser/ | ~/.ds4/browser | | Google consent | Auto-click "Accept all" (multi-language) | Auto-click "Accept all" (multi-language) | | Page extraction | Same JS extractors, ported to TS | Inline JS in C | | Dependencies | Zero npm deps (just Node.js built-ins) | Zero deps (just POSIX) |

License

MIT