Node.js Overview
Use Nexa in any Node.js server — Express, Fastify, Hono, or raw http.
The @nexa-ed/node package gives you everything you need to integrate Nexa into a non-Next.js server:
verifyWebhookPayload— low-level signature verifier, works with any frameworkproxyProgressStream— SSE proxy helper; returns aReadableStreamyou pipe to your response- Framework adapters — pre-built webhook handlers for Express, Hono, and Fastify
- Full core SDK re-export —
NexaClientfor calling the Nexa API from your server
Install
@nexa-ed/node re-exports everything from @nexa-ed/sdk — you do not need to install @nexa-ed/sdk separately.
Requirements
- Node.js 18+ (uses the built-in Web Crypto API —
globalThis.crypto)
Environment variables
Core usage — NexaClient
NexaClient is the same class used by all SDK adapters. Call it server-side to interact with the Nexa API:
Low-level webhook verification
If you prefer to read the body yourself and verify manually:
SSE progress proxy
Forward a Nexa progress stream to your client:
Framework guides
| Framework | Guide |
|---|---|
| Express | Node.js → Express |
| Hono | Node.js → Hono |
| Fastify | Node.js → Fastify |
For Vue, Svelte, or other frontend frameworks see Other Frameworks.