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

playrunner

v0.2.5

Published

Run saved Playrunner workflows from CI/CD.

Readme

playrunner CLI

Run a saved Playrunner workflow from CI/CD with a revocable machine token.

Connect Playrunner Cloud Authentication Profiles

Install the CLI globally on the computer where you want native Chrome to open:

npm install --global playrunner@latest
playrunner login

Approve the matching pairing code in the Playrunner Cloud page that opens, then connect the authentication companion:

playrunner auth connect

Leave that terminal open. In Playrunner Cloud, open Authentication Profiles, choose the online paired device, create or select a profile, and click Authenticate. Complete sign-in in Chrome, return to the terminal, and press Enter. The CLI validates the profile's success condition and uploads the captured state through a one-time session.

Use playrunner auth status to check the pairing and playrunner auth disconnect to revoke the device and remove its local credentials. See Connect the CLI for Cloud Authentication Profiles for the complete setup, service, security, and troubleshooting guide.

Create or update a workflow

Define a project and workflow in JSON. For example, save this as playrunner-workflow.json:

{
  "project": {
    "key": "cli-examples",
    "title": "CLI examples"
  },
  "workflow": {
    "key": "hello-world",
    "title": "Hello world",
    "nodes": [
      {
        "id": "hello",
        "nodeType": "code",
        "label": "Print greeting",
        "x": 300,
        "y": 300,
        "width": 128,
        "height": 128,
        "config": {
          "code": "console.log('Hello from the CLI');\nreturn { ok: true };"
        }
      }
    ],
    "connections": []
  }
}

Then apply it with an unrestricted API token:

export PLAYRUNNER_API_KEY='<your-api-token>'
export PLAYRUNNER_URL='https://playrunner.cloud'
npx playrunner workflow create --file playrunner-workflow.json

The command creates the project and workflow when their keys are new. Running it again with the same project.key and workflow.key updates the existing workflow and prints its visual-editor URL. Use --json for machine-readable output.

See Create a workflow with the Playrunner CLI for the definition format, a complete example, validation rules, token requirements, and update behavior.

Run a workflow

  1. Open the saved workflow in Playrunner and copy its workflow ID from the URL. The ID is the value after /workflow/.
  2. Open Settings → API tokens, create a token, and allow it to run that workflow.
  3. Export the API token:
export PLAYRUNNER_API_KEY='<your-api-token>'
  1. Run the CLI, replacing WORKFLOW_ID with the workflow ID you copied:
npx playrunner WORKFLOW_ID --url https://playrunner.cloud

For example:

npx playrunner 2cc84235-58f7-4cb1-89cd-0c379d3b6908 --url https://playrunner.cloud

For a self-hosted or local installation, replace https://playrunner.cloud with the Playrunner URL for that environment.

In CI/CD, store PLAYRUNNER_API_KEY in your provider's protected, masked secret variables instead of committing it to source control. Pass the workflow ID as the first CLI argument. The CLI never writes the token to disk or includes it in URLs or output.

By default the command streams safe progress, waits up to 30 minutes, and exits successfully only when the workflow completes. Use --no-wait to return after the server accepts the run, --timeout 10m to change the deadline, or --json for newline-delimited JSON output. Run npx playrunner --help for all options.

Package-name acknowledgement

Our warm thanks to Jason Rai (MisterJimson) for generously transferring the playrunner npm package name to the current Playrunner project. Jason's original MisterJimson/playrunner was a separate local Playwright YAML flow runner. This package is a fresh CLI for the current platform and does not incorporate Jason's prior code.

License

See LICENSE.