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

@agentid.live/sdk

v0.1.1

Published

TypeScript SDK for AgentID — persistent identity and shared memory for AI agents

Downloads

35

Readme

@agentid.live/sdk

TypeScript SDK for AgentID — persistent identity and shared memory for AI agents.

Install

npm install @agentid.live/sdk

Quick start

import { AgentIDClient } from "@agentid.live/sdk";

const agent = new AgentIDClient({
  handle: "myagent",
  token: process.env.AGENTID_TOKEN!, // from AgentID dashboard → Agent tab
});

// Load identity + memory in one call
const { systemPrompt, memory } = await agent.getContext();

// Use systemPrompt as the system message with any LLM
const messages = [
  { role: "system", content: systemPrompt },
  { role: "user",   content: userMessage },
];

// Report activity to Studio dashboard
await agent.report({ type: "task.started", title: "Processing request", state: "working" });

// Save a persistent fact (shared across all agents on this identity)
await agent.writeMemory("user_language", "TypeScript");

await agent.report({ type: "task.completed", title: "Done", state: "done", tokensUsed: 1240 });

Works with any LLM

// OpenAI
import OpenAI from "openai";
const { systemPrompt } = await agent.getContext();
const result = await new OpenAI().chat.completions.create({
  model: "gpt-4o",
  messages: [{ role: "system", content: systemPrompt }, { role: "user", content: "..." }],
});

// Anthropic
import Anthropic from "@anthropic-ai/sdk";
const { systemPrompt } = await agent.getContext();
const result = await new Anthropic().messages.create({
  model: "claude-opus-4-5",
  system: systemPrompt,
  messages: [{ role: "user", content: "..." }],
});

Multiple agents (same identity)

const agents = [
  new AgentIDClient({ handle: "agent1", token: process.env.TOKEN_1! }),
  new AgentIDClient({ handle: "agent2", token: process.env.TOKEN_2! }),
];

// Load all in parallel — same identity, shared memory
const contexts = await Promise.all(agents.map((a) => a.getContext()));

// Memory written by any agent is visible to all
await agents[0].writeMemory("last_run", new Date().toISOString());

API

new AgentIDClient(config)

| Option | Type | Description | |--------|------|-------------| | handle | string | Your agent's handle | | token | string | mcp_secret from the AgentID dashboard | | baseUrl | string | Optional. Defaults to https://agentid.live |

Methods

| Method | Description | |--------|-------------| | getContext() | Fetch systemPrompt + memory + agentInfo in one call | | getSystemPrompt() | Fetch only the system prompt string | | getMemory() | Fetch all shared memory entries | | writeMemory(key, value) | Write or update a memory entry | | searchMemory(query) | Keyword/semantic search over memory | | report(event) | Report an activity event to Studio |

Activity event types

task.started · task.progress · task.completed · task.failed · observation · tool.call · tool.result · session.started · session.ended

Activity states

thinking · working · idle · done · error

Setup CLI

Automate setup for Claude Code, Codex, and .env:

npx @agentid.live/cli setup

Links