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

@asymmetric-ai/hone

v0.1.0

Published

Hone SDK — send AI-agent conversations and MCP tool calls to Hone for observability.

Readme

hone (TypeScript SDK)

Send AI-agent conversations and MCP tool calls to Hone, an observability platform for AI agents. The SDK is ESM, has zero runtime dependencies (it uses the global fetch), and never throws capture failures into your application by default.

Install

npm install @asymmetric-ai/hone

Node 22+ is required (global fetch, crypto.randomUUID).

Configure

Set an API key and, optionally, an endpoint. Both can come from the environment or from init:

import { init } from "@asymmetric-ai/hone";

init("sk_your_key", { endpoint: "https://api.hone.dev" });

| Value | Source | | ---------- | ----------------------------------------------- | | API key | init(apiKey) or HONE_API_KEY | | Endpoint | init(_, { endpoint }) or HONE_ENDPOINT | | Default | https://api.hone.dev (local: http://localhost:8080) |

Auth is sent as the x-api-key: sk_<hex> header. A 401 means the key is invalid.

Capture a turn with begin / end

begin opens a new conversation (a fresh session_id) and records the start time. end posts the session once, then the event with a computed latency.

import { begin } from "@asymmetric-ai/hone";

const interaction = begin({
  userId: "user-42",
  agentName: "support-bot",
  input: "How do I reset my password?",
});

interaction.setProperty("model", "opus");
interaction.setProperties({ promptTokens: 128, cached: false });

const answer = await runYourAgent();
await interaction.end(answer, { success: true });

One-shot capture with track

For a fully-formed turn, track posts the session and event in one call. Pass conversationId to group several turns under a single session:

import { track } from "@asymmetric-ai/hone";

await track({
  userId: "user-42",
  agentName: "support-bot",
  input: "Hi",
  output: "Hello! How can I help?",
  conversationId: "thread-abc", // optional; groups turns
});

identify

Attach traits to the next session for a user. Traits are string key/values and are consumed once:

import { identify } from "@asymmetric-ai/hone";

identify("user-42", { plan: "pro", region: "us-east" });

MCP tool calls with trackMCP

Wrap an MCP server so every tool invocation becomes a PRIMITIVE_TYPE_TOOL event (primitive_name is the tool name). The @modelcontextprotocol/sdk package is an optional peer dependency — if it is absent, trackMCP simply does nothing.

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { trackMCP } from "@asymmetric-ai/hone";

const server = new McpServer({ name: "my-server", version: "1.0.0" });
trackMCP(server); // wrap before registering tools

server.tool("add", async ({ a, b }) => ({
  content: [{ type: "text", text: String(a + b) }],
}));

Options let you drop sensitive payloads:

trackMCP(server, "sk_scoped_key", { disableInput: true, disableOutput: true });

Error handling

Capture failures are logged and swallowed by default so observability never breaks the host app. For tests (or strict environments) enable throwOnError:

init("sk_test", { throwOnError: true });

API summary

| Export | Purpose | | ------------------------------ | --------------------------------------------------- | | init(apiKey?, options?) | Module-level config (falls back to env). | | begin(args) → Interaction | Open a conversation; end, setProperty(-ies). | | track(args) → Promise<void> | One-shot turn capture; conversationId groups them.| | identify(userId, traits) | Traits for the next session. | | trackMCP(server, key?, opts?)| Instrument an MCP server's tool calls. | | HoneTransportError | Error thrown under throwOnError. |