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

@rushiv/expect-cli

v0.1.5

Published

Let agents test your code in a real browser

Readme

Expect

version downloads

Expect is a skill for testing your agent's code in a real browser.

Demo →

Getting Started

  1. Ask your agent to Fetch https://www.expect.dev/ and run init script
  2. Run /expect inside Claude Code, Codex, and more
  3. Expect spawns subagents simulating real logged-in users to find issues and regressions
  4. Your agent will fix any issues Expect finds, then re-run to verify

FAQ

1. What is Expect?

A skill that reads your git changes, generates a test plan, and runs it in a real browser with Playwright. It hooks into your existing agent (Claude Code, Codex, Cursor) and runs entirely on your machine. It checks for performance (long animation frames, INP, LCP), security (npm deps, CSRF attacks, vulns), design tweaks (broken hover states, links, buttons), and app completeness (missing metadata, dead links).

2. Why not just use Puppeteer, Playwright, or Cypress?

Instead of writing scripts, maintaining selectors, and wiring up assertions, Expect reads your code changes and tests them in a real browser automatically. It's like giving your agent QA superpowers.

3. How is this different from computer-use agents?

General-purpose browser tools rely on screenshots and mouse coordinates. Expect is purpose-built for testing: it uses Playwright for fast DOM automation, reads your code changes, generates a test plan, and runs it with your real cookies, then reports back what's broken so the agent can fix it.

4. Does it work in CI?

Yes. Use --ci or the add github-action command to set up a workflow that tests every PR. In CI mode it runs headless, skips cookie extraction, auto-approves the plan, and enforces a 30-minute timeout.

5. Does it support mobile testing?

Coming soon.

6. Is there a hosted or enterprise version?

Coming soon. Email [email protected] if you have questions or ideas.

Options

| Flag | Description | Default | | ----------------------------- | -------------------------------------------------------------------------------------- | ----------- | | -m, --message <instruction> | Natural language instruction for what to test | - | | -f, --flow <slug> | Reuse a saved flow by its slug | - | | -y, --yes | Run immediately without confirmation | - | | -a, --agent <provider> | Agent provider (claude, codex, copilot, gemini, cursor, opencode, droid) | auto-detect | | -t, --target <target> | What to test: unstaged, branch, or changes | changes | | -u, --url <urls...> | Base URL(s) for the dev server (skips port picker) | - | | --browser-mode <mode> | Browser mode: headed or headless | headed | | --cdp <url> | Connect to an existing Chrome via CDP WebSocket URL | - | | --profile <name> | Reuse a Chrome profile by name (e.g. Default) | - | | --no-cookies | Skip system browser cookie extraction | - | | --ci | Force CI mode: headless, no cookies, auto-yes, 30-min timeout | - | | --timeout <ms> | Execution timeout in milliseconds | - | | --output <format> | Output format: text or json | text | | --verbose | Enable verbose logging | - | | -v, --version | Print version | - | | -h, --help | Display help | - |

Supported Agents

Expect works with the following coding agents. It auto-detects which agents are installed on your PATH. If multiple are available, it defaults to the first one found. Use -a <provider> to pick a specific agent.

| Agent | Flag | Install | | ------------------------------------------------------------- | ------------- | ------------------------------------------ | | Claude Code | -a claude | npm install -g @anthropic-ai/claude-code | | Codex | -a codex | npm install -g @openai/codex | | GitHub Copilot | -a copilot | npm install -g @github/copilot | | Gemini CLI | -a gemini | npm install -g @google/gemini-cli | | Cursor | -a cursor | cursor.com | | OpenCode | -a opencode | npm install -g opencode-ai | | Factory Droid | -a droid | npm install -g droid |

Resources & Contributing Back

Want to try it out? Check out our demo.

Find a bug? Head over to our issue tracker and we'll do our best to help. We love pull requests, too!

We expect all contributors to abide by the terms of our Code of Conduct.

→ Start contributing on GitHub

Acknowledgements

Expect wouldn't exist without the ideas and work of others:

  • dev-browser by Sawyer Hood — the Playwright-first ("bitter lesson") approach that inspired Expect's core design: give the agent real browser APIs instead of screenshots and coordinates.

License

FSL-1.1-MIT © Million Software, Inc.