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

playd

v0.1.4

Published

Browser automation tool using Chrome DevTools Protocol

Readme

playd

Test Homepage

Ever wanted to run a browser from CLI (command-line) and then command it from CLI? Or from LLM?

Here's the Chrome automation tool using the Chrome DevTools Protocol (CDP) for CLI and LLMs to use. Kind of like "Browser Use" without MCP or extensions or puppeteer/playwright./clear

Quickstart

npm install -g playd

playd session create my-run --headed

playd goto https://example.com

playd llm "Does this page have an input for search and what's its ID?" 
# uses gpt-5-nano and requires OPENAI_API_KEY

playd screenshot --path example.png

playd eval "body.html"

playd shutdown

Install

npm install -g playd

Claude Code

Press # in Claude Code (or similar) and paste this line to store playd usage instructions:

Information about `playd` command: it controls Chrome via CDP; create session: `playd session create browser1 --headed` (other commands use last session by default); navigate: `playd goto URL`; interact: `playd click ".selector"`, `playd type "text"` or `playd type "text" --selector ".input"`, `playd type "text" --clear` (clears first), `playd fill ".selector" "text"`, `playd press "Enter"`; wait: `playd wait-for ".selector"`; extract: `playd text`, `playd dom`, `playd attr ".selector" "href"` (html attr, not current value!); AI questions: `playd llm "question"` (analyzes title+text) or `playd llm "question" --on-html` (analyzes full HTML); run JS: `playd eval "code"`; capture: `playd screenshot`; cookies: `playd cookie-get <name>`, `playd cookie-set <name> <value> [--domain <domain>] [--path <path>]`; storage: `playd storage [--export file.json] [--import file.json]`; `playd session close browser1`; `playd wait-for "textarea[name='q']"`; `playd help`; `playd shutdown` (closes all sessions) `npm install -g playd` if not installed

Store it to global memory and now you can have your browser automation.

CLI Overview

Sessions

playd session create <id> [--headed] [--browser chromium]
playd session ls
playd session info <id>
playd session close <id>

Create and manage isolated browser sessions.

Navigation

Navigate and capture the page.

playd goto <url>
playd screenshot [--path file.png]
playd pdf [--path file.pdf]

playd screenshot works surprisingly well with Claude Code - it automatically "sees" the page.

Page Interaction

playd click <selector>
playd type <selector> <text> [--clear]
playd fill <selector> <text>
playd press <key> [--selector <sel>]
playd wait-for <selector> [--state visible]

Automate user actions and waits.

Content Extraction

playd html [--pretty]
playd text [--selector <sel>]
playd attr <selector> <name>
playd eval <javascript>
playd eval-file <file.js>
playd llm <question>

Pull content, run JS, or ask an LLM about the current page (requires OPENAI_API_KEY env var).

Data Management

playd cookies [--set file.json]
playd cookie-get <name>
playd cookie-set <name> <value> [--domain <domain>] [--path <path>]
playd storage [--export file.json]
playd storage [--import file.json]

Move cookies and Web Storage data in and out. Individual cookie commands make it easy to get/set specific cookies without dealing with JSON files.

Server Control

playd status
playd shutdown

Check status or stop the background server.

Global Flags

  • --session <id> – Use a specific session (auto-uses most recent if omitted)
  • --json – JSON output
  • --timeout <ms> – Command timeout These are available across commands.

Environment

  • PLAYD_SESSION – Default session ID
  • OPENAI_API_KEY – Required for the llm command Configure these in your shell profile as needed.

Why playd?

  • Single binary CLI (playd) for scripting and CI.
  • CDP-based automation that’s great for scraping, testing, and quick page ops.

License

MIT