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

@websolutespa/bom-pilot

v0.1.7

Published

Development-only overlay: select React components in the running app and prompt Claude Code or GitHub Copilot to change them.

Readme

bom-pilot

A development-only overlay for React apps. Hover any component in the running app, click it, and describe the change. bom-pilot resolves the element to its source (file:line, the owner components including Server Components, and the BOM CMS block). It can also attach a screenshot, then sends everything to a coding agent:

| Agent | Where it runs | Reply | | --- | --- | --- | | Claude Code | Locally through the Claude Agent SDK, with your project settings, CLAUDE.md and skills | Streams in the panel: tool calls, diffs, permission prompts, stop. Continue in VS Code opens the same session in the Claude Code extension. | | Copilot · VS Code | code chat --mode agent in the last active VS Code window, with the source files and screenshot attached | In VS Code (Copilot Chat) | | Claude Code · VS Code | Opens a Claude Code tab with the prompt pre-filled; press Enter there | In VS Code | | Copilot CLI | copilot -p in the project root, when GitHub Copilot CLI is installed | Streams in the panel |

Usage

Add the provider once, inside <body> of the root layout. It is a React Server Component:

import { BomPilot } from '@websolutespa/bom-pilot';

<body>
  <BomPilot>{children}</BomPilot>
</body>

In any environment other than NODE_ENV=development, the provider renders only children, and the overlay code is dropped from the bundle.

Next.js setup:

// next.config.ts
serverExternalPackages: ['@anthropic-ai/claude-agent-sdk'],

Add .bom-pilot/ to .gitignore. Screenshots and long prompts are written there.

Props:

  • enabled
  • port (default BOM_PILOT_PORT or 4597)
  • root (default process.cwd())
  • agents (restricts the picker)
  • shortcut (default Alt+Shift+P)
  • bomContext (default true): adds the CMS block, market and locale to selections. Set it to false in Next.js apps outside the BOM stack.

Requirements: Next.js (App Router, React 19) is required. BOM is not.

Controls

  • Alt+Shift+P or the crosshair button toggles select mode.
  • Click selects an element. Shift+Click adds more elements.
  • ↑ / ↓ or Alt+wheel moves to the parent or child element.
  • ← / → (or Shift/Ctrl + ↑ / ↓) moves to the previous or next sibling.
  • Enter selects the highlighted element (Shift+Enter adds it to the selection) and opens the prompt. Esc cancels.
  • Drag the Pilot pill by its body to move it out of the way. The position is remembered; double-click the pill to reset it.
  • Click a context chip to open that file and line in VS Code.
  • In the composer, Enter sends and Shift+Enter inserts a new line. For Claude Code you can pick the permission mode (edit automatically, ask before edits, plan) and the model.

Requirements

  • Claude Code: @anthropic-ai/claude-agent-sdk installed, and Claude Code logged in on this machine (claude → /login), or ANTHROPIC_API_KEY set.
  • Copilot · VS Code: the code CLI on PATH (in VS Code run Shell Command: Install 'code' command in PATH) and GitHub Copilot Chat enabled.
  • Claude Code · VS Code: the Claude Code VS Code extension.
  • Copilot CLI: copilot on PATH.

Architecture

index.tsx    "."        BomPilot (RSC): starts the sidecar in dev, renders the client overlay
server/      "./server" startSidecar / ensureSidecar: node:http on 127.0.0.1, SSE + JSON, agent runners
client/      "./client" BomPilotClient: Shadow-DOM overlay (picker, composer, chat panel)
shared/      "./shared" protocol types and zod schemas, constants
  • Source resolution: React 19 has no _debugSource. The picker walks _debugOwner (client fibers and Server Component infos) through bippy, reads each _debugStack, and symbolicates the frames:
    • Browser frames are mapped from the chunk source maps in the browser.
    • Server Component frames go through the Next dev endpoint /__nextjs_original-stack-frames. Under Turbopack that endpoint rejects http:// chunk URLs, so it handles only server frames.
    • When a frame still cannot be resolved, the sidecar searches the sources for the component's declaration. It ranks JSX files and functions above same-named objects such as Payload block schemas.
  • Isolation: the UI lives in a Shadow DOM with its own hand-authored stylesheet (client/styles.ts). Site CSS cannot leak in and plugin CSS cannot leak out.
  • Security:
    • The sidecar listens on 127.0.0.1 only.
    • Every call needs a random per-process token.
    • Browser calls are accepted only from localhost origins.
    • The sidecar refuses to start in production.
    • Agents are spawned without a shell.
  • Developing bom-pilot itself: see the repository README. the sidecar is a per-process singleton that survives HMR, so restart the dev server after changing server/ code. Client changes hot-reload. __BOM_PILOT__.store.get() in the browser console shows the overlay state.

Not yet supported

  • Pushing prompts into an already running claude CLI session (Claude Code channels, research preview).