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

@pluno/product-agent-web

v0.1.107

Published

Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.

Readme

Pluno Product Agent Web SDK

Stack-agnostic browser SDK and default widget for embedding Product Agent into customer webapps.

Install

npm install @pluno/product-agent-web

Keep your Product Agent secret_key on your server. Browser code should only receive a short-lived session token, or call your own authenticated token endpoint.

Headless SDK

import { PlunoProductAgent } from "@pluno/product-agent-web";

const agent = await PlunoProductAgent.init({
  tokenProvider: async () => {
    const response = await fetch("/api/pluno-product-agent-token", {
      method: "POST",
      credentials: "include",
    });
    const payload = await response.json();
    return payload.token;
  },
});

agent.on("state", (state) => {
  renderYourOwnChatUi(state);
});

agent.sendMessage("Update my settings");

The SDK captures passive resource URL/timing metadata with PerformanceObserver and adds bounded method, header, status, and small textual body metadata through shared fetch/XMLHttpRequest instrumentation. Capture is best effort and detached from host requests: streaming, unknown-length, large, upload, token, Pluno, and internal bodies are not read, captured values are capped and redacted, and the instrumentation is removed after the final SDK instance is destroyed.

Drop-In Widget

<script
  type="module"
  src="https://app.pluno.ai/product-agent/product-agent-widget.js"
  data-pluno-token-endpoint="/api/pluno-product-agent-token"
  data-pluno-launcher-label="Ask for anything..."
  data-pluno-accent-color="#7c3aed"
  data-pluno-font-family='Inter, system-ui, sans-serif'
  data-pluno-scribble-style="false"
></script>

Scribble style is enabled by default. Set data-pluno-scribble-style="false" in the snippet, or scribbleStyle: false for programmatic mounts, to use the standard widget appearance.

The floating widget launcher includes a minimize control by default. Its compact state survives reloads in the current tab, while a new tab or browser session starts with the regular launcher. Programmatic mounts can set showLauncherMinimizeButton: false to hide it.

This script-tag setup is the recommended integration. If your token endpoint needs custom browser-side authentication, import the same hosted widget module and provide the request logic programmatically:

const { mountPlunoProductAgentWidget } = await import(
  "https://app.pluno.ai/product-agent/product-agent-widget.js"
);

const widget = await mountPlunoProductAgentWidget({
  tokenProvider: async () => {
    const response = await fetch("/api/pluno-product-agent-token", {
      method: "POST",
      credentials: "include",
      headers: {
        Authorization: `Bearer ${customerAccessToken}`,
        "X-CSRF-Token": csrfToken,
        "X-Tenant-ID": tenantId,
      },
    });
    if (!response.ok) throw new Error("Could not create Pluno session token");
    return (await response.json()).token;
  },
});

function removeProductAgentWidget() {
  widget.destroy();
}

Importing the hosted module does not mount anything by itself. mountPlunoProductAgentWidget returns a handle containing the underlying agent, openPanel(), appearance/auth update methods, and destroy().

The token endpoint must be implemented by the customer backend. It should authenticate the current user, then call Pluno's /api/product-agent/embed/token endpoint with:

  • public_key
  • secret_key
  • origin
  • optional metadata, including metadata.user_id when the customer has a stable user id
  • optional context