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

drydock-sdk

v0.1.0

Published

TypeScript SDK for drydock — build and test AI agents and agentic workflows locally.

Downloads

15

Readme

drydock-sdk

TypeScript SDK for drydock — build and test AI agents and agentic workflows locally, one binary, with or without Docker.

Write an agent, tool, or MCP server as a plain function, and the drydock runtime launches it as an isolated node: hot-reloaded during development, wired to other agents (A2A) and MCP servers, and fully traced.

import { defineNode } from "drydock-sdk";

export const greet = defineNode(
  { name: "greeter", role: "agent" },
  async (ctx, { name = "world" }: { name?: string }) => {
    await ctx.emit({ status: "thinking" });   // stream a partial update
    return { message: `hello, ${name}` };
  },
);

Experimental. The TypeScript SDK is at feature parity with the Python SDK and fully tested, but Python is the primary supported path; this SDK is maintained best-effort and its API may change.

Requires the drydock runtime

This package is the author-side SDK only. Nodes are launched and orchestrated by the separate drydock binary (the runtime, HTTP API, web UI, and tracing all live there). Install the runtime first:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/scionoftech/drydock/main/scripts/install.sh | sh

See the project README for tarball and build-from-source options.

Install

npm install drydock-sdk

Zero runtime dependencies, ships type declarations. Install it into each Node node you author.

Write a node

A node is a directory with your handler and a node.yaml manifest. Handlers are compiled to JavaScript (Node has no built-in TypeScript execution), so the manifest's entry points at the built .js:

// handler.ts → compiled to dist/handler.js
import { defineNode, type AgentContext } from "drydock-sdk";

export const hello = defineNode(
  { name: "hello", role: "agent" },   // role: "agent" | "tool" | "mcp"
  async (ctx: AgentContext, { name = "world" }: { name?: string } = {}) => {
    return { message: `hello, ${name}` };
  },
);
# node.yaml
name: hello
version: 0.1.0
role: agent
runtime: node
entry: dist/handler.js:hello
drydock dev                                   # hot-reload daemon + web UI
drydock invoke hello --input '{"name":"Sai"}'

The ctx object

Every handler receives a context as its first argument:

| Call | Does | |---|---| | await ctx.a2a.call(target, input) | Invoke another node by name (agent-to-agent) | | await ctx.mcp.call(alias, tool, args) | Call a tool on a declared MCP server | | await ctx.mcp.list(alias) | List an MCP server's tools | | await ctx.session.append(role, content) | Append to the persistent transcript | | await ctx.session.history(limit) | Read recent transcript entries | | await ctx.emit(data) | Stream a partial chunk (no-op on plain invoke) | | ctx.sessionId, ctx.streaming, ctx.trace | Invocation metadata |

The handler receives the raw invocation input as its second argument. Return any JSON-serializable value.

Full reference — input mapping, session semantics, the error model, streaming, and environment scrubbing — is in docs/SDK.md.

Links

  • Project & docs: https://github.com/scionoftech/drydock
  • SDK reference: https://github.com/scionoftech/drydock/blob/main/docs/SDK.md
  • Issues: https://github.com/scionoftech/drydock/issues

License

MIT