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

@peekdev/cli

v0.1.0-alpha.23

Published

peek command-line tool. A thin read-mostly client of the native host's ~/.peek/sessions.db: status, sessions list/show/export/delete, the `peek init` MCP-client wizard, and `peek audit log`.

Readme

@peekdev/cli

Your real browser, exposed to your AI coding agent over MCP — capture once, query forever, never leaves your machine.

npm downloads license CI

peek sessions list and drill-down — three real sessions, console + network errors, markdown-formatted output for AI paste

Docs: https://peek.cubenest.in

Requires Node.js ≥ 22. peek's native better-sqlite3 dependency only ships prebuilt binaries for Node 22+ — on Node 20 (notably Windows, which has no C/C++ toolchain by default) the install falls back to compiling from source and fails. Use Node 22 or newer.

npm install -g @peekdev/cli
peek init

peek init is an interactive wizard. It:

  1. Installs the native messaging host for the Peek Chrome extension (writes ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.peekdev.peek.json on macOS, equivalent on Linux + Windows).
  2. Detects your AI coding-agent client (Claude Code, Cursor, Cline, Windsurf, Continue, Zed) and adds the peek-mcp server to its MCP configuration.
  3. Prints a one-line "install the extension" link.

Then you install the Peek Chrome extension (CWS submission pending), open the side panel on the site you want to capture, and click Enable on this site. Your AI agent can now query the recording.

What this is NOT

  • Not a session-replay product for production traffic. Peek is a developer-side tool — captures happen on your machine, in your browser, when you explicitly enable them per site.
  • Not Sentry, LogRocket, or FullStory. There is no cloud, no upload, no telemetry, no signup. Captures live in ~/.peek/sessions.db until you delete them.
  • Not a screen recorder. Peek captures structured DOM/console/network via rrweb, not pixels. AI agents query JSON, not video frames.

Commands

peek init                          # interactive install (see above)
peek status                        # health check — extension connected? DB writable?
peek sessions list [--json]        # list recent recording sessions
peek sessions show <id>            # show one session's metadata + counts
peek sessions export <id> --format <html|json|playwright>  # export for sharing
peek sessions delete <id>          # delete one session + its on-disk events
peek audit [--json]                # show the destructive-action audit log
peek <cmd> --help                  # usage for any subcommand

All commands operate read-only on ~/.peek/sessions.db except sessions delete (and peek init which writes the install config). Nothing leaves your machine.

Querying from an AI agent

After peek init, the peek-mcp server is available to your AI client as an MCP toolset. Sample queries:

  • "what's in my latest peek session?"
  • "show me the console errors from session abc123 between t=10s and t=15s"
  • "find network requests with status >= 400 from the last 5 minutes of recording on example.com"
  • "generate a Playwright reproduction script from session abc123"

The MCP server exposes 10 tools — listing, session summaries, console/network drill-down, user-action history, DOM reconstruction and history, Playwright-repro generation, and (with explicit per-action authorization) actions like clicks/inputs/navigation. See @peekdev/mcp for the tool reference.

Privacy

Peek is local-first. The CLI reads from ~/.peek/sessions.db (SQLite); the extension records into it; the MCP server queries it. There is no network destination. There is no telemetry. There is no auto-update channel. The native host runs as your user, not as a daemon.

The extension uses per-origin host permissions — recording is off for every site by default. You enable it explicitly from the side panel for each origin you care about. The five-level permission model (0 Off → 1 Read-only → 2 Suggest-only → 3 Act-with-confirm → 4 YOLO), plus a cross-level destructive-action blocklist that always prompts, is enforced server-side, not just in the UI.

Full data-handling policy: docs/peek/PRIVACY_POLICY.md. Chrome Web Store permission justifications: docs/peek/PERMISSION_JUSTIFICATION.md.

Supported AI clients

peek init configures the MCP server into:

| Client | Detection | |---|---| | Claude Code (CLI) | ~/.claude/ | | Cursor | ~/Library/Application Support/Cursor/User/ (macOS) | | Cline (VS Code) | VS Code workspace settings | | Continue (VS Code) | ~/.continue/ | | Windsurf | ~/.codeium/windsurf/ | | Zed | ~/.config/zed/ |

If your client isn't auto-detected, peek init prints the JSON config you can paste manually. The MCP server speaks the standard stdio protocol (spec 2025-11-25 + 2025-03-26 back-compat).

Claude Code skill

When Claude Code is among the configured clients (or ~/.claude.json already exists), peek init also drops a SKILL.md into ~/.claude/skills/peek/. Claude Code loads it on session start and uses it to decide when to reach for peek's MCP tools — investigating an error from a manual repro, generating a Playwright test from a session, querying DOM state at a past moment, etc.

The skill is idempotent on re-run (no-op when the on-disk content matches the bundled source). Skip the install with peek init --skip-skill. Want it without running peek init? See the curl-able recipe at docs/peek/distribution/claude-code-skill.md.

Cursor — project-level recipe

peek init writes Cursor's MCP server entry to the global config at ~/.cursor/mcp.json — every project opened in Cursor inherits it. If you'd rather scope peek to one project (a repo where peek captures matter but other repos on the same machine should not surface the tools), drop a .cursor/mcp.json into the workspace root:

{
  "mcpServers": {
    "peek": {
      "command": "npx",
      "args": ["-y", "@peekdev/mcp@latest"]
    }
  }
}

Commit it or add it to .gitignore — Cursor reads either. Cursor's docs document the global file as "tools available everywhere" and the project file as "project-specific tools" (see docs.cursor.com/context/mcp for current merge semantics).

This is the same block peek init writes to the global file, so the two configs are interchangeable. You still need the Peek Chrome extension installed and the native messaging host registered — run peek init --skip-clients if you want the host installed without touching any MCP config.

Versioning & compatibility

Semantic Versioning. Currently 0.1.0-alpha.x — pre-release; the CLI surface is stable in spirit but flags may rename. See SUPPORTED.md for the compatibility matrix.

@peekdev/cli depends on @peekdev/mcp as a workspace peer. Both are versioned and published together via Changesets + OIDC Trusted Publishing.

License

Apache 2.0. The bundled rrweb engine remains MIT-licensed; see NOTICE.

Contributions are accepted under the Developer Certificate of Origin (DCO) — sign your commits with git commit -s. See CONTRIBUTING.md + SECURITY.md.