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

@arlopass/ai-sdk-transport

v0.1.0

Published

Use Vercel AI SDK's `useChat` with the Arlopass browser extension. No API route, no API keys, no server.

Readme

@arlopass/ai-sdk-transport

Use Vercel AI SDK's useChat with the Arlopass browser extension. No API route, no API keys, no server.

Install

pnpm add @arlopass/ai-sdk-transport ai @arlopass/web-sdk

[!IMPORTANT] The Arlopass browser extension must be installed for the transport to work. It provides the AI model that powers your app.

Quick Start

Zero-config — just pass a ArlopassChatTransport instance to useChat:

import { useChat } from "@ai-sdk/react";
import { ArlopassChatTransport } from "@arlopass/ai-sdk-transport";

function Chat() {
  const { messages, sendMessage, status } = useChat({
    transport: new ArlopassChatTransport(),
  });

  return (
    <div>
      {messages.map(m => (
        <div key={m.id}>
          {m.role}: {m.parts.map(p => p.type === "text" ? p.text : "").join("")}
        </div>
      ))}
      <button onClick={() => sendMessage({ content: "Hello!" })}>Send</button>
    </div>
  );
}

With App Metadata

Identify your app in the extension's connection list:

new ArlopassChatTransport({
  appId: "com.acme.copilot",
  appName: "Acme Copilot",
  appDescription: "AI assistant for Acme",
})

Advanced: Pre-connected Client

If you manage the ArlopassClient lifecycle yourself, pass it directly:

import { ArlopassClient } from "@arlopass/web-sdk";

const client = new ArlopassClient({ transport: window.arlopass });
await client.connect({ appId: "my-app" });

useChat({ transport: new ArlopassChatTransport({ client }) });

Options

| Option | Type | Default | Description | |---|---|---|---| | appId | string | auto-derived | App identifier shown in the extension | | appSuffix | string | — | Suffix for auto-derived app ID | | appName | string | — | Human-readable app name | | appDescription | string | — | Short description | | appIcon | string | — | URL to a square icon | | client | ArlopassClient | — | Pre-connected client (skips auto-connect) | | timeoutMs | number | 120000 | Request timeout in ms |

How It Works

The transport detects the Arlopass browser extension (window.arlopass), auto-connects, and routes useChat messages through the extension to whatever AI provider the user has configured. Messages are converted from AI SDK UIMessage format to Arlopass ChatMessage format. Streaming responses are converted back to AI SDK UIMessageChunk events that useChat consumes natively.

Links