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

@ignorenarrative/agent-builder-sdk

v0.1.0

Published

Client SDK for Agent Builder — thin wrapper over the official Anthropic SDK that points at a deployed agent's Anthropic-compatible endpoint.

Readme

@agent-builder/sdk

TypeScript client SDK for Agent Builder. A thin wrapper over the official @anthropic-ai/sdk that points your client at a deployed Agent Builder agent's Anthropic Messages-compatible endpoint.

Phase 2 item 2.11 — pairs with the Anthropic-compatible endpoint shipped in Phase 2 item 2.15.

Install

npm install @agent-builder/sdk @anthropic-ai/sdk
# or
pnpm add @agent-builder/sdk @anthropic-ai/sdk
# or
yarn add @agent-builder/sdk @anthropic-ai/sdk

@anthropic-ai/sdk is a peer dependency so you can pin your own version.

Quick start

import { createAgentClient } from '@agent-builder/sdk';

const client = createAgentClient({
  agentUrl: 'https://my-agent.agents.buildragent.ai',
  apiKey: process.env.AGENT_BUILDER_API_KEY!,
});

// Non-streaming
const response = await client.messages.create({
  model: 'claude-sonnet-4-6', // server-configured, ignored
  max_tokens: 4096,
  messages: [{ role: 'user', content: 'Hello!' }],
});

console.log(response.content);

// Streaming
const stream = client.messages.stream({
  model: 'claude-sonnet-4-6',
  max_tokens: 4096,
  messages: [{ role: 'user', content: 'Write a poem.' }],
});

for await (const event of stream) {
  if (event.type === 'content_block_delta' && event.delta.type === 'text_delta') {
    process.stdout.write(event.delta.text);
  }
}

What's different from the raw Anthropic SDK

The deployed agent at agentUrl is configured with a specific system prompt, model, tools, and other parameters that its tenant chose at deploy time. When you call messages.create through this SDK:

  • model in your request is ignored. The agent's deployed model is always used.
  • system in your request is ignored. The agent's deployed system prompt is always used.
  • tools in your request is ignored. The agent's deployed tool set is always used.
  • messages, max_tokens, and other per-turn fields work as expected.

The Authorization: Bearer <apiKey> header is attached automatically — the tenant UI issues per-app API keys (Phase 1 item 1.3 Mode B) that the deployed agent's middleware validates.

Advanced

createAgentClient accepts any ClientOptions the Anthropic SDK understands (minus baseURL and apiKey, which the wrapper manages). Useful knobs:

createAgentClient({
  agentUrl: '...',
  apiKey: '...',
  maxRetries: 5,
  timeout: 60_000,
  defaultHeaders: {
    'x-request-id': 'my-correlation-id',
  },
});

Raw Anthropic SDK access

If you need the raw client for direct Anthropic API calls alongside your agent calls, import it from this package:

import { Anthropic } from '@agent-builder/sdk';

const rawClient = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY! });

This avoids having to list @anthropic-ai/sdk separately in your imports when you're already depending on this package.