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

@tailored-ai/provider-anthropic

v0.1.9

Published

Anthropic Messages API provider for Tailored AI agents. Ships as a register(ctx) plugin — install with `tai plugin install @tailored-ai/provider-anthropic`; supersedes the minimal built-in `anthropic` provider with prompt caching, beta headers, and extra-

Readme

@tailored-ai/provider-anthropic

Anthropic Messages API provider for Tailored AI agents — Claude models with prompt caching, beta headers, streaming, and model discovery.

This plugin provides the anthropic provider id (#236 moved it out of core). Existing providers.anthropic config keeps working, and gains the features below. On older cores that still ship a minimal built-in, the plugin supersedes it — the one-line "Replacing existing entry" notice at startup is expected.

Install

tai plugin install @tailored-ai/provider-anthropic

Configure

plugins:
  - "@tailored-ai/provider-anthropic"

providers:
  anthropic:
    apiKey: "${ANTHROPIC_API_KEY}"     # https://console.anthropic.com
    defaultModel: "claude-haiku-4-5"
    promptCaching: true                # optional, recommended for agents

agent:
  defaultProvider: anthropic

| Field | Required | Notes | |---|---|---| | apiKey | yes | Use ${ANTHROPIC_API_KEY} to read from the environment. | | defaultModel | yes | A Claude model id, e.g. claude-haiku-4-5. tai edit lists them via listModels. | | promptCaching | no | Adds ephemeral cache breakpoints to the system prompt and tool definitions. Agent loops re-send both every iteration, so cache hits cut input cost (cached reads are ~10% of base price) and latency. Default false. | | defaultMaxTokens | no | max_tokens when the agent doesn't set one (the API requires it). Default 4096. | | version | no | anthropic-version header. Default 2023-06-01. | | betas | no | List of beta flags, sent as the anthropic-beta header (e.g. context-1m-2025-08-07). | | baseUrl | no | Default https://api.anthropic.com. Override for proxies. |

Extra request fields

Anthropic-specific parameters the TAI contract doesn't model (extended thinking, top_k, …) flow through ChatParams.extra straight into the request body. Surfaces that expose a providerExtra config bag (briefing, suggestions) can use it today; the main agent loop doesn't set extra per agent yet.

Usage accounting

Cache writes and reads are summed into usage.input, so token counts reflect what the API actually processed rather than silently excluding cached tokens.

Development

pnpm --filter @tailored-ai/provider-anthropic run build
pnpm --filter @tailored-ai/provider-anthropic run test

License

MIT