Labels: Stellar Wave, compat, audit, drips, help-wanted
Tier: M (2–4 days)
Type: compat / audit
Context
The SDK is tested on Node 22. Modern serverless and edge platforms increasingly target Bun and Deno. Cloudflare Workers, Vercel Edge, and Deno Deploy are common deployment targets for "scan announcements for incoming payments" cron jobs. If the SDK silently fails on those runtimes, we've cut off a substantial integration surface.
Scope
Run the SDK test suite under each runtime and document the result:
- Bun (latest)
- Install via
bun install.
- Run
bun test (or wire vitest through bun's compat shim).
- Document failures.
- Deno (latest, with
--unstable-sloppy-imports if needed)
- Use the npm specifier:
import { ... } from "npm:@wraith-protocol/sdk@1.x/chains/stellar".
- Run a smoke script that does the basic flow.
- Cloudflare Workers (workerd runtime)
- Spin up
wrangler dev and import the SDK.
- Note any failures (likely
crypto.randomBytes vs. crypto.getRandomValues).
For each runtime:
- Document working / broken / partially-working state.
- Identify the root cause of each break (missing API, different ESM resolution, etc.).
- Fix the SDK where the fix is small and broadly applicable; document a polyfill or workaround where it isn't.
Acceptance criteria
Why this matters
Spectre, a Stellar-scanning cron, or any "watch this address" service is a natural fit for edge runtimes. Closing the gap unlocks a wave of integrators who don't want to run Node infrastructure.
Resources
Labels:
Stellar Wave,compat,audit,drips,help-wantedTier: M (2–4 days)
Type: compat / audit
Context
The SDK is tested on Node 22. Modern serverless and edge platforms increasingly target Bun and Deno. Cloudflare Workers, Vercel Edge, and Deno Deploy are common deployment targets for "scan announcements for incoming payments" cron jobs. If the SDK silently fails on those runtimes, we've cut off a substantial integration surface.
Scope
Run the SDK test suite under each runtime and document the result:
bun install.bun test(or wire vitest through bun's compat shim).--unstable-sloppy-importsif needed)import { ... } from "npm:@wraith-protocol/sdk@1.x/chains/stellar".wrangler devand import the SDK.crypto.randomBytesvs.crypto.getRandomValues).For each runtime:
Acceptance criteria
COMPAT.mdtable covering Node 20/22, Bun, Deno, Cloudflare Workers, Vercel Edge.Why this matters
Spectre, a Stellar-scanning cron, or any "watch this address" service is a natural fit for edge runtimes. Closing the gap unlocks a wave of integrators who don't want to run Node infrastructure.
Resources