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

@getdiff/acp

v0.1.0

Published

ACP agent wrapper — run GetDiff in any ACP-compatible editor

Readme

@getdiff/acp

ACP (Agent Control Protocol) wrapper for GetDiff. Run GetDiff as a coding agent in any ACP-compatible editor — Zed, JetBrains, Neovim, Emacs, VS Code — with one package.

What This Does

Wraps @getdiff/sdk as an ACP-compatible subprocess. Editors spawn it, send prompts over stdin, and receive streaming responses on stdout via JSON-RPC 2.0. The editor handles all UI (chat panel, diffs, terminal, approvals). This package handles the agent logic.

Quick Start

# Install globally
npm install -g @getdiff/acp

# Or run directly
npx @getdiff/acp

No API key needed — defaults to the free Diff hosted provider.

Editor Setup

Zed

GetDiff appears in Zed's agent picker once registered in the ACP registry. Select "GetDiff" and start chatting.

VS Code

Install the ACP extension, then configure it to use GetDiff:

{
  "acp.agents": [{
    "name": "GetDiff",
    "command": "npx",
    "args": ["@getdiff/acp"]
  }]
}

JetBrains / Neovim / Emacs

Any editor with ACP support can spawn getdiff-acp (or npx @getdiff/acp) as a subprocess.

Configuration

Config is read from ~/.getdiff/config.json:

{
  "provider": "anthropic",
  "model": "claude-sonnet-4-6",
  "apiKey": "sk-..."
}

Environment variables override the config file:

| Variable | Description | |----------|-------------| | GETDIFF_PROVIDER | Provider name (diff, anthropic, openai, google, etc.) | | GETDIFF_MODEL | Model identifier | | GETDIFF_API_KEY | API key for the provider | | GETDIFF_API_BASE_URL | Custom API base URL |

How It Works

Editor (Zed, VS Code, etc.)          @getdiff/acp
  │                                      │
  ├─── session/initialize ──────────────►│  negotiate capabilities
  ├─── session/new ─────────────────────►│  create session
  ├─── session/prompt ──────────────────►│  user message
  │                                      │
  │◄─── agent_message_chunk ────────────┤  streaming text
  │◄─── agent_thought_chunk ────────────┤  thinking (if enabled)
  │◄─── tool_call ─────────────────────┤  Read, Edit, Bash, etc.
  │                                      │
  ├─── requestPermission ──────────────►│  editor shows approval UI
  │◄─── permission result ─────────────┤
  │                                      │
  │◄─── tool_call_update ──────────────┤  tool result
  │◄─── PromptResponse ───────────────┤  done

The agent runs @getdiff/sdk's query() in-process (no CLI subprocess). SDK messages are translated to ACP notifications in real time.

Development

# From the monorepo root
npm install

# Build
cd acp && npm run build

# Type-check
npm run typecheck

# Run locally
node dist/index.js

License

Apache-2.0