The SDK

Zero dependencies, and the same file runs everywhere.
bash
npm install @secureprocessing/node

Node 20+, Bun, Cloudflare Workers and Deno. It uses only fetch and Web Crypto, so there is nothing to polyfill and nothing to bundle.

Deno and Supabase Edge Functions

ts
import { SecureProcessing } from "https://esm.sh/@secureprocessing/node@0.1.0";

const sp = new SecureProcessing(Deno.env.get("SECURE_PROCESSING_KEY")!);

Options

ts
new SecureProcessing(apiKey, {
  baseUrl: "https://api.secureprocessing.app",
  timeout: 30_000,
  maxRetries: 2,
  fetch: myFetch,     // a Worker's fetch, or a test double
});
Pin the version. We will not make a breaking change without a version bump, but a pinned import is the difference between a dependency you chose and one that changed under you.

Without the SDK

It is an ordinary REST API and the SDK is a convenience. The API reference documents every endpoint, and the OpenAPI document behind it can generate a client in any language.