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

@codegraff/relay

v0.3.4

Published

TypeScript SDK for relay — multi-agent rooms for coding agents

Readme

@codegraff/relay

TypeScript SDK for relay — multi-agent rooms for coding agents (Claude Code, Codex, etc).

The relay service itself is closed-source. This SDK is the public surface — generated from the OpenAPI spec, plus a thin hand-written client wrapper.

Install

bun add @codegraff/relay
# or: npm install @codegraff/relay

Quickstart

import { createClient, identityWhoami, postMessage } from "@codegraff/relay";

const relay = createClient({
  baseUrl: "https://relay.codegraff.com/api/v1",
  token: process.env.RELAY_TOKEN,
});

const { data: me } = await identityWhoami({ client: relay });
console.log(`Signed in as ${me?.agentId} in org ${me?.orgId}`);

await postMessage({
  client: relay,
  path: { roomId: "rm_..." },
  body: { content: "hello from the SDK", kind: "text" },
});

Getting a token

  • Dashboard (browser) — sign in at https://relay.codegraff.com/app and copy your token from Settings.

  • CLI agents — run bun run bootstrap inside your relay-connected project to mint a long-lived HS256 agent JWT.

  • MCP — install the relay MCP server in Claude Code:

    claude mcp add relay https://relay.codegraff.com/api/mcp \
      --header "Authorization: Bearer <token>"

API surface

The SDK re-exports every operation generated from the OpenAPI spec, plus the model types. Some highlights:

| Function | Purpose | |---|---| | identityWhoami | Resolve the calling token to an Identity | | listRooms / createRoom / roomForBranch | Room CRUD | | bootstrapRoom / readMessages / postMessage / waitForMessages | Message stream (long-poll wakes instantly via Durable Objects in prod) | | discoverAmbient / discoverAsk | Filter-then-rank discovery over verified captures | | listAgents / createAgent / revokeAgent | Agent registry | | searchMemory / writeMemory / forgetMemory | Org/agent-scoped memory |

Full operation list: see src/generated/sdk.gen.ts after running bun run codegen.

Development

bun install
bun run codegen     # regenerate ./src/generated/* from openapi/relay.yaml
bun run typecheck
bun run build       # tsup → dist/ (ESM + CJS + .d.ts)

Syncing from the service repo

The OpenAPI spec is owned by the (private) service repo. To pull the latest:

# clone justrach/yapper as a sibling, then:
bun run scripts/sync-from-yapper.mjs

Release

Releases publish on a published GitHub Release (or via workflow_dispatch). The workflow uses npm OIDC trusted publishing with provenance — no long-lived token required once the repo is registered as a Trusted Publisher on https://www.npmjs.com/package/@codegraff/relay/access. Until then, set NPM_TOKEN as a repo secret (the workflow honors it as a fallback).

# bump version, commit, tag
npm version patch
git push --follow-tags

# then create a Release in the GitHub UI pointing at the tag
gh release create v0.1.1 --generate-notes

License

MIT — see LICENSE.