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

jarvin-widget

v1.0.1

Published

Jarvin chat widget — drop-in AI chat bubble for any website

Readme

Jarvin Chat Widget

Drop-in AI chat bubble for any website. One script tag or one React component — that's it.

Option 1: Script Tag (any website)

Paste this before </body>:

<script
  src="https://jarvin-widget-api.intromatic.ai/widget/v1/jarvin-widget.js"
  data-api-key="YOUR_API_KEY"
></script>

Done. The widget handles everything — renders the chat bubble, manages sessions, streams responses.

Option 2: React

npm install jarvin-widget @jarvinbyintromatic/react
import { JarvinChatWidget } from '@jarvinbyintromatic/react';

function App() {
  return <JarvinChatWidget apiKey="YOUR_API_KEY" />;
}

Show only for logged-in users

import { JarvinChatWidget } from '@jarvinbyintromatic/react';

function App() {
  const { user } = useAuth(); // your auth hook

  return (
    <>
      {user && <JarvinChatWidget apiKey="YOUR_API_KEY" />}
      {/* rest of your app */}
    </>
  );
}

The widget cleans up automatically when unmounted — no manual DOM cleanup needed.

Option 3: Next.js

npm install jarvin-widget @jarvinbyintromatic/react @jarvinbyintromatic/nextjs
import { JarvinChatWidget } from '@jarvinbyintromatic/nextjs';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <JarvinChatWidget apiKey="YOUR_API_KEY" />
      </body>
    </html>
  );
}

SSR-safe out of the box — the component loads client-side only.

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | apiKey | string | Yes | Your Jarvin public API key (jvn_pub_...) | | apiUrl | string | No | Custom API URL (defaults to Jarvin cloud) | | defaultOpen | boolean | No | Open the chat panel on load |

Programmatic Access (script tag only)

When using the script tag, the widget exposes window.__jarvinWidget:

window.__jarvinWidget.open();
window.__jarvinWidget.close();
window.__jarvinWidget.toggle();

How It Works

  • Shadow DOM — the widget renders inside a closed Shadow DOM so it never conflicts with your site's styles
  • Session persistence — conversations persist in localStorage across page loads
  • SSE streaming — responses stream in real-time, token by token
  • Auto-cleanup — unmounting the React/Next.js component removes all widget DOM elements automatically