Installation
- Package:
@samvad-protocol/sdk - Node: 20+
- Module format: ESM-only (
"type": "module") - Dependencies:
fastify,zod,@noble/ed25519,jose
What the SDK handles automatically
You write a handler. The SDK handles everything else:Core API surface
Agent class (e.g. Next.js API routes, serverless functions).
Building agents without Fastify
TheAgent class uses Fastify under the hood. If you’re building on Next.js, Express, or serverless functions, use createVerifyMiddleware instead — it gives you the full protocol verification pipeline (nonce, rate limit, signature, trust tier) as a framework-agnostic function:
Next steps
Building Agents
Skills, trust tiers, rate limits, async mode.
Calling Agents
Sync calls, async tasks, SSE streaming.
Delegation
JWT delegation tokens for multi-agent chains.
npm
View on npm.