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

@zaby-ai/sdk

v0.1.1

Published

TypeScript SDK for the Zaby Agentic OS.

Readme

Zaby TypeScript SDK

TypeScript SDK for the Zaby Agentic OS.

The SDK focuses on the APIs needed to configure, deploy, run, observe, and govern agentic systems:

  • managed agents
  • deployments
  • external apps
  • disposable runtime tokens
  • browser/server runtime runs
  • knowledge bases
  • MCP tools
  • memory
  • intelligence and improvement loops
  • approvals
  • usage

It intentionally does not expose general tenant modules such as billing, users, organization, meetings, support, FAQs, WhatsApp, API-key management, or credential lifecycle management.

Install

npm install @zaby-ai/sdk

Configure

Production defaults to https://genapi.zaby.io.

import { configureZaby } from "@zaby-ai/sdk";

configureZaby({
  environment: "production",
});

For private staging or dedicated tenant gateways, pass an explicit API origin through your application config.

Server SDK

Use tenant API keys only from trusted backend code.

import { Zaby } from "@zaby-ai/sdk";

const zaby = new Zaby({
  apiKey: process.env.ZABY_API_KEY!,
  // Optional: required for tenant Agentic OS management APIs.
  accessToken: process.env.ZABY_TENANT_ACCESS_TOKEN,
});

const app = await zaby.externalApps.create({
  name: "Acme Web",
  slug: "acme-web",
  allowedOrigins: ["https://app.acme.com"],
});

await zaby.externalApps.bindDeployment(String(app.id), {
  deploymentId: process.env.ZABY_AGENT_DEPLOYMENT_ID!,
  allowBrowserRuntime: true,
  allowApprovals: true,
});

const token = await zaby.runtimeTokens.create({
  externalAppId: String(app.id),
  deploymentId: process.env.ZABY_AGENT_DEPLOYMENT_ID!,
  externalUserId: "user_123",
  externalSessionId: "session_456",
  ttlSeconds: 600,
  maxUses: 20,
});

Runtime SDK

Use disposable runtime tokens in browser or untrusted runtime contexts.

import { ZabyRuntime } from "@zaby-ai/sdk/runtime";

const runtime = new ZabyRuntime({ token: disposableRuntimeToken });

const run = await runtime.runs.start({
  input: { message: "Help me onboard" },
});

for await (const event of runtime.runs.stream(String(run.runId))) {
  console.log(event);
}

Agentic OS Surfaces

zaby.agents.create(...)
zaby.agents.attachKnowledgeBase(...)
zaby.agents.attachMcpTool(...)
zaby.agents.publish(...)
zaby.agents.deploy(...)

zaby.externalApps.create(...)
zaby.externalApps.bindDeployment(...)
zaby.runtimeTokens.create(...)
zaby.runtimeTokens.recordFeedback(...)

zaby.knowledgeBases.create(...)
zaby.knowledgeBases.uploadTextDocument(...)
zaby.knowledgeBases.createLibraryTextDocument(...)
zaby.knowledgeBases.listLibraryDocuments(...)
zaby.knowledgeBases.linkLibraryDocument(...)
zaby.knowledgeBases.createSource(...)
zaby.knowledgeBases.createIngestionPolicy(...)
zaby.knowledgeBases.listJobs(...)

zaby.mcp.createServer(...)
zaby.mcp.discoverTools(...)
zaby.mcp.installServer(...)
zaby.mcp.preflightInvocation(...)
zaby.mcp.invokeTool(...)

zaby.memory.retrieve(...)
zaby.memory.approveCandidate(...)
zaby.intelligence.listSignals(...)
zaby.intelligence.approveImprovement(...)
zaby.approvals.approve(...)
zaby.usage.getAgentUsage(...)

E2E Smoke

Authenticated smoke tests require tenant credentials:

ZABY_API_KEY=zaby_pk_... npm run test:e2e

Optional overrides:

ZABY_API_ORIGIN=https://genapi.zaby.io npm run test:e2e

Terminal Agentic Chat

Run a full terminal chat UI powered by the SDK:

npm run example:chat

Use one of these auth modes:

ZABY_RUNTIME_TOKEN=<disposable-runtime-token> npm run example:chat

or mint disposable runtime tokens from the server-side SDK:

ZABY_API_KEY=zaby_pk_... \
ZABY_EXTERNAL_APP_ID=<external-app-id> \
ZABY_AGENT_DEPLOYMENT_ID=<deployment-id> \
npm run example:chat

Optional:

ZABY_API_ORIGIN=https://genapi.zaby.io npm run example:chat

Inside the TUI:

  • /help shows commands
  • /clear clears the transcript
  • /exit quits
  • Esc quits

Development

npm install
npm test
npm run typecheck
npm run build

Security Boundary

Zaby is server-side and sends X-Zaby-Api-Key.

ZabyRuntime is browser-safe and sends only short-lived Authorization: Bearer <runtime-token> credentials.