Back to Blog

The Access SDK roadmap

Where the Access SDK is going and what we are building next.

Where we are

The Access TypeScript SDK covers the core API surface verification, subscriptions, checkout, webhooks, and API key management. It is typed end-to-end, ships with zero dependencies, and works in Node.js, Bun, and edge runtimes.

What it does not yet have is first-class support for framework-specific patterns, a webhook helper that handles signature verification and event parsing, and SDKs for languages beyond TypeScript.

This post covers what we are building next.

Webhook helper

The most common support question we receive is about webhook signature verification. The raw implementation is straightforward, but it is easy to get wrong wrong encoding, wrong header name, timing attacks from naive string comparison.

We are adding a constructEvent helper that handles all of this.

import { Access } from "@access/sdk";

const access = new Access({ apiKey: process.env.ACCESS_API_KEY });

// in your webhook handler
const event = access.webhooks.constructEvent(
  rawBody,
  request.headers.get("access-signature"),
);

switch (event.type) {
  case "payment.completed":
    await fulfillOrder(event.data.tx_ref);
    break;
  case "subscription.renewed":
    await extendAccess(event.data.subscription_id);
    break;
}

The helper verifies the signature, parses the payload, and returns a fully typed event object. If verification fails, it throws.

Framework adapters

Handling webhooks in Next.js looks different from handling them in Hono or Express. We are building thin adapters so you do not have to write the boilerplate.

app/api/webhooks/route.ts (Next.js)
import { withAccessWebhook } from "@access/sdk/next";

export const POST = withAccessWebhook({
  secret: process.env.ACCESS_WEBHOOK_SECRET,
  onEvent(event) {
    if (event.type === "payment.completed") {
      // handle it
    }
  },
});

The adapter extracts the raw body, reads the signature header, calls constructEvent, and handles the response. You only write the handler.

Retry and idempotency utilities

Background jobs that call the Access API need retry logic and idempotency keys. We are adding utilities that make this straightforward.

const result = await access.transactions.verify(
  { tx_ref: "Telebirr-abc123", psp: "Telebirr" },
  { idempotencyKey: jobId, retries: 3 },
);

Python and Go SDKs

TypeScript is the primary SDK, but we are working on Python and Go. Both will follow the same design typed, zero dependencies, works in any runtime.

Python is further along. We expect a beta in the next few weeks.

Feedback

If there is something missing from the SDK that is blocking you, open an issue or reach out. The roadmap is shaped by what people are actually building.