SDK · TypeScript

@beacons/sdk on npm. Node, Bun, Edge, browser.

The TypeScript SDK ships as a vanilla ESM package on npm. Tree-shakeable, isomorphic, and powered by a Rust-compiled WASM crypto module — signatures behave identically here and in Rust.

Install

bun add @beacons/sdk
# or
npm install @beacons/sdk
pnpm add @beacons/sdk
yarn add @beacons/sdk

What you get

  • Strict TypeScript, no any
  • WASM crypto core — verifies Rust-minted signatures
  • Works in browsers, Bun, Node 22+, edge runtimes
  • AbortController support throughout

Platforms: Bun · Node 22+ · Workers · Vercel Edge · Fastly Compute · Browser

typescript — enroll a peer
import { Client, Did, Fleet } from '@beacons/sdk';

const client = await Client.fromEnv();

const fleet = Fleet.parse('did:oas:acme:fleet:prod');
const me    = Did.parse('did:oas:acme:agent:scribe-7');

const peer = await client.fleet(fleet).enroll(me);

console.log(`admitted in ${peer.compositeVerdictMs}ms`);

Parity

Identical surface in every language.

Every Beacons SDK targets the same set of operations. Cryptographic primitives (Ed25519, HKDF-SHA256, Blake3) come from a shared Rust WASM module so signatures produced in one language verify identically in another. The conformance suite at beacons-conformance exercises cross-language vectors on every release.

Open a fleet

The mesh that fits agents and humans.

A `did:oas`-rooted private mesh that ships peer configurations to any device, anywhere, by policy — not by hand.

Open consoleRead the quickstart