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

@faktion-com/tracy-sdk

v0.0.8

Published

SDK for building and consuming agentic AI streams with tool calling support.

Downloads

499

Readme

@faktion-com/tracy-sdk

SDK for building and consuming agentic AI streams with tool calling support.

Overview

Tracy SDK provides a robust solution for streaming AI agent responses with tool calling capabilities. It consists of two main components:

  • Server (@faktion-com/tracy-sdk/server) - For building AI agents that produce agentic results
  • Client (@faktion-com/tracy-sdk/client) - For consuming SSE (Server-Sent Events) streams from agents

The SDK handles the complexity of streaming tool calls, custom message parts, and agent responses in a type-safe, protocol-compatible way.

Installation

npm install @faktion-com/tracy-sdk
# or
pnpm add @faktion-com/tracy-sdk
# or
yarn add @faktion-com/tracy-sdk

Usage

Server (Agent Producer)

import { createAgent } from '@faktion-com/tracy-sdk/server';

// Build an AI agent that produces streaming results
const agent = this._mastra.getAgent('citation-agent');

    if (!isMessageListInput(messages)) {
      throw new Error('Invalid messages');
    }

    const result = await agent.stream(messages);
    const traceId = result.traceId;
    if (traceId) {
      publishCustomEvent(CustomEvents['X-Trace-Id'], traceId, subscriber);
    }
    produceSseStream(
      result.fullStream.getReader(),
      subscriber,
      transformers.mastra
    ).catch((error) => {
      logger.error('Error in stream:', error);
      subscriber.error(error);
    });
  // Your agent configuration
});

Client (Stream Consumer)

import { consumeStream } from '@faktion-com/tracy-sdk/client';

// Consume SSE streams from your AI agent
const stream = consumeStream(agentUrl);

Available Exports

  • @faktion-com/tracy-sdk/server - Server-side agent utilities
  • @faktion-com/tracy-sdk/client - Client-side stream consumption
  • @faktion-com/tracy-sdk/protocol - Shared protocol definitions
  • @faktion-com/tracy-sdk/schemas - Type schemas and validation
  • @faktion-com/tracy-sdk/prompts - Prompt utilities

Features

  •  Tool calling support
  •  SSE streaming
  •  Custom message parts
  •  Type-safe protocols
  •  RAG (Retrieval-Augmented Generation) compatible

Publish

run in root:

pnpm run sdk:changelog // generate changelog for packages to publish
pnpm run sdk:bump // will implement the bumps from temp changelog (runs in cicd)
pnpm run sdk:release // will release bumps to npm

License

MIT