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

@johnhenry/browsermesh-embed

v0.1.0

Published

Embeddable browsermesh-pod-backed agent workspace widget — drop an interactive agent pod into any web app

Readme

browsermesh-embed

Embeddable agent-backed workspace pod — drop an interactive agent into any web app.

EmbeddedPod extends @johnhenry/browsermesh-pod's Pod with a minimal messaging API (sendMessage, on/off/emit), a lazy-attached agent slot, and a real vanilla-DOM widget rendered into config.containerId's element, so a host app can wire up its own agent implementation and drive it through a stable embedding surface. The agent is duck-typed (sendMessage, getEventLog().query(), run()) — this package has no dependency on any specific agent implementation.

Widget

Calling mount() (or just constructing EmbeddedPod when the container element already exists in the DOM) attaches an open shadow root (container.attachShadow({ mode: 'open' })) to the configured container and renders a small self-contained widget into it: a status line (state/role/live peer count, reactive to Pod's own 'ready', 'peer:found', and 'peer:lost' events), a scrollable message log (user turns, agent turns with tool-call chips, and inline error entries — never an uncaught rejection), and an input+submit form wired to sendMessage(). mount() is idempotent and safe to call from Node/SSR contexts where document doesn't exist (it's simply a no-op there). It is not a customElements/Web Component — it renders directly into the existing containerId contract, using the shadow root purely for CSS isolation.

Colors are themeable via config.theme (or the shadow DOM's CSS custom properties directly): --bm-accent, --bm-bg, --bm-fg. theme: {} (or omitting it entirely) falls back to sane defaults.

Provenance

Extracted from the private clawser monorepo (previously packages/clawser-embed), where it was manually published to npm, unscoped, as [email protected] (2026-07-17) with no CI ever automating that publish. This is its first release as part of the @johnhenry/browsermesh monorepo; the version restarts at 0.0.0 per family convention.

Install

npm install @johnhenry/browsermesh-embed @johnhenry/browsermesh-pod

Usage

<div id="my-agent"></div>
import { EmbeddedPod } from '@johnhenry/browsermesh-embed'

// If #my-agent already exists in the DOM, the widget mounts automatically.
// Otherwise, call pod.mount() explicitly once the container exists (e.g. in
// an SPA that creates it after this runs).
const pod = new EmbeddedPod({
  containerId: 'my-agent',
  agent: myAgent,
  theme: { accent: '#7c3aed' },
})

// 'response' fires with the same normalized object sendMessage() resolves
// with — this is what the widget's own message log listens to internally.
pod.on('response', (msg) => console.log(msg))

const { content, toolCalls } = await pod.sendMessage('Summarize this page')

config.agent accepts any object implementing sendMessage(text, opts), getEventLog().query({ type }), and run() — see src/index.mjs for the exact contract sendMessage() relies on.

Backward compatibility

ClawserEmbed is exported as an alias of EmbeddedPod for callers migrating from an earlier naming.