SDK Integrations

Integrate Herald into Any Stack

Copy-paste code examples for every major framework. Install the SDK, initialize the client, and start sending zero-PII notifications.

Next.js

Full-Stack Framework

API routes and React dashboard components for server-side notification handling.

Server-side API routes with route handlersClient dashboard with React components

React SPA

Client-Side App

Vite-based React dashboard for sending notifications and monitoring usage.

Protocol dashboard UI componentsNotification form with wallet input

Express.js

Backend Framework

RESTful notification endpoints and webhook receiver for Express servers.

POST /liquidation — single notification with defi categoryPOST /governance — bulk notify with governance category

NestJS

Enterprise Backend

Production-grade module with DI, services, and controllers for scalable notification systems.

Global HeraldModule with factory providerInject HeraldService into feature controllers

Node.js Script

Automation & Scripting

Standalone TypeScript scripts for bots, cron jobs, and automation.

Liquidation warning script with idempotencyGovernance proposal broadcast

CLI Tool

Command Line Interface

Commander-based CLI with commands for sending, checking, and managing notifications.

herald liquidation — send defi warning with argumentsherald governance — broadcast proposal to voters

Hono

Edge Framework

Lightweight edge-native notification API with Hono — runs anywhere (Node, Deno, Bun, CF Workers).

POST /liquidation — edge notification endpointPOST /webhooks/herald — webhook verification at the edge

Cloudflare Worker

Edge Function

Deploy notification endpoints and webhook handlers at the edge with Cloudflare Workers.

Edge governance broadcast with env bindingsEdge webhook verification and dispatch

AI / MCP

AI Agent Integration

Connect AI agents (Claude, Cursor) to Herald via the Model Context Protocol for assisted integration.

AI-assisted SDK integration with Claude DesktopCursor IDE with inline MCP tool calls

Your Framework Here?

View Integration docs →

All examples on
GitHub

Every code snippet on this page comes from real, tested examples in the Herald examples repository. Clone the repo, copy the code, and ship.