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

astroplayground-bridge

v0.1.0

Published

MCP bridge that lets a local coding agent (Claude Code, Claude Desktop) edit an Astro Playground browser tab

Readme

astroplayground-bridge

Connects an MCP client (Claude Code, Claude Desktop) to an Astro Playground browser tab, so a coding agent can edit the in-browser Astro project while you watch the live preview:

MCP client ──stdio──▶ astroplayground-bridge ◀──WebSocket── playground tab

Browsers can't accept inbound connections, so the tab dials out to this process on ws://127.0.0.1:43210 when you click Agent in the playground toolbar. MCP tool calls are forwarded over that socket and executed inside the page against the in-browser workspace; the agent never needs a server.

Setup

Claude Code:

claude mcp add astro-playground -- npx -y astroplayground-bridge

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "astro-playground": {
      "command": "npx",
      "args": ["-y", "astroplayground-bridge"]
    }
  }
}

Then open the playground, click Agent in the toolbar, and start a conversation. The MCP client launches the bridge automatically on demand.

Tools

| Tool | What it does | | --- | --- | | playground_status | Connection check, preview mode, routes in /src/pages | | list_files | All project file paths | | read_file | Read one file | | write_file | Create/overwrite a file (shows up in the editor immediately) | | delete_file | Delete a file (/package.json, /astro.config.mjs protected) | | build | Build in the browser, refresh the preview, return the build log | | get_page | Built HTML for a route, with data-pg-file/data-pg-loc source annotations |

The intended loop: edit with write_filebuild → verify with get_page (the annotations map any rendered element back to its source file and line).

Options

  • --port <n> or ASTRO_PLAYGROUND_BRIDGE_PORT — WebSocket port (default 43210). The playground page must be told the same port if you change it.

Notes

  • One tab at a time: a newly connected tab replaces the previous one.
  • If no tab is connected, every tool returns a clear error telling the user to click Agent in the playground.
  • Loopback only — the WebSocket listener binds 127.0.0.1 and has no auth; the browser and the MCP client must be on the same machine.