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

@ibh/tube

v0.2.10

Published

React dev tool for visual element selection, annotation, and Claude MCP integration

Readme

@ibh/tube

A floating dev tool you drop into any React app. Pick an element, scribble on it, type a prompt — Claude reads the DOM + your screenshot and edits the code. Browser ⇄ WebSocket ⇄ tube ⇄ MCP (stdio) ⇄ Claude.

Get started

# 1. install
npm i -D @ibh/tube
// 2. mount the dev tool
import { TubeDevTools } from '@ibh/tube';

export default function App() {
  return (
    <>
      {/* your app */}
      <TubeDevTools />
    </>
  );
}
# 3. register tube as a Claude Code MCP server (stdio — recommended)
claude mcp add tube -- npx @ibh/tube --stdio

That's it. The island appears in the corner. Click an element, type, hit send — Claude picks it up. Claude Code spawns npx @ibh/tube --stdio on demand, so you don't need to keep a separate server running.

Fails? Run claude mcp remove tube first, then re-run the add command.

Or via .mcp.json

Equivalent to step 3, but committable to your repo:

{
  "mcpServers": {
    "tube": {
      "command": "npx",
      "args": ["@ibh/tube", "--stdio"]
    }
  }
}

What it does

  • Select elements anywhere on the page and prompt Claude on them.
  • Draw & annotate on top of the UI — strokes + text + a captured screenshot.
  • Simple prompt⌘⇧P (or cmd-click the island) to fire off a one-off prompt with the page screenshot, no selection required.
  • Inspect spaces, gaps, and sizes on hover.
  • Queue prompts; track each one's status (queued → working → done) per task in the browser.
  • Revert · edit · follow up — every prompt can be undone, refined, or chained.
  • Persistent — prompts survive reloads and server restarts.
  • Hotkeys⌘⇧K opens the island; each menu item has its own shortcut shown next to it.

Auto-pick new prompts

Paste this into a connected Claude session so it polls the queue and handles new prompts without being asked:

/loop 20s go through tube tasks

Multiple projects

Auto-discovery matches the consumer app's package.json name to the running tube subprocess, so two projects open in two terminals stay separate without any manual port config. If you do need to pin a port (e.g. running multiple tubes from one browser tab), pass it explicitly:

npx tube --port 4454 --ws-port 4455
<TubeDevTools port={4455} />

HTTP transport (legacy)

If you'd rather run a standalone tube server and have Claude Code talk to it over HTTP:

npx tube
claude mcp add --transport http tube http://localhost:4444/mcp/<project-name>

<project-name> matches your package.json name (URL-encode @scope/pkg%40scope%2Fpkg). The CLI prints the exact command on startup.

License

MIT © Ilyass Ben Hakim