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

@ahpd/agent-claude

v0.4.0

Published

The Claude backend for @ahpd/sdk

Readme

@ahpd/agent-claude

npm CI license MIT node >=22 Agent Host Protocol 0.9.0

The Claude backend for @ahpd/sdk.

Install

pnpm add @ahpd/agent-claude @ahpd/sdk @microsoft/agent-host-protocol

Use

import { createHost, listen } from '@ahpd/sdk';
import { claude } from '@ahpd/agent-claude';

const path = process.cwd();
const host = createHost({ path, agents: [claude({ paths: [path] })] });
await listen({ port: 9187 }, (peer) => host.accept(peer));

createHost takes a list of agents, so this can run alongside other backends.

What it does

It starts the Claude agent SDK, converts its message stream into AHP state actions, and reads Claude's transcript files.

| export | | | --- | --- | | claude(options) | the Agent to pass to createHost | | createSession(options) | one live session | | catalogue(dir) | Claude's sessions in a directory, as rows a host can list | | turnsOf(sessionId, dir) | a past session read from its transcript, as turns | | probe(options) | runs a CLI at startup to read the available models and commands |

Supported

Turns and streaming, tool calls and approvals, questions from the agent, model and effort selection, permission modes, MCP servers and OAuth sign-in, skills and slash commands, multiple chats per session, forking a chat from a turn, truncating a chat back to a turn, session titles, token usage, and context compaction.

Sessions the host is not running are read from Claude's transcripts, so clients can browse and read them without starting a process. The agent starts when a turn is sent.

Credentials

Sessions use whatever the Claude CLI is signed in with. A client can push a token instead. Pushed tokens are held per connection and are not used for other clients' sessions.

Documentation

| | | | --- | --- | | AGENT.md | The Agent and Session contracts this implements | | AHP.md | Which actions are served, which are refused, and why |

License

MIT © Softov