OAuth broker and WebSocket relay server for dicode daemons (v0.1.7). This production-ready TypeScript/Node.js service combines an OAuth authorization-code flow broker with a persistent WebSocket relay tunnel, allowing local dicode daemons behind NAT to receive OAuth callbacks and webhooks without public ports, ngrok, or per-user OAuth app registration. The broker holds shared OAuth client credentials and delivers encrypted access tokens over the relay. Requires Node.js >=22. Active development by dicode-ayo, no notable alternatives in same niche.
npm install dicode-relayNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Starts a dicode-relay server with OAuth broker and WebSocket relay on port 5553 using GitHub provider.
Update Node.js to version 22 or later.
Explicitly set RELAY_CONFIG or create relay.yaml file to avoid unexpected fallback.
Await the run() call or handle the returned promise.
Set a strong RELAY_ENCRYPTION_KEY environment variable.
Provide valid TLS certificates via RELAY_TLS_KEY and RELAY_TLS_CERT env vars, or use a reverse proxy.
Use import syntax in an ESM context, or use dynamic import: const { run } = await import('dicode-relay');Change import to named: import { run } from 'dicode-relay'Run npx dicode-relay directly (no separate install) or install globally: npm install -g dicode-relay
Upgrade Node.js to version 22 or later.
No dependency data recorded yet.