@openpromo/sdk-runtime
v0.2.3
Published
Shared runtime primitives for @openpromo ad platform SDKs — fetch-based HttpClient, cursor pagination, rate limiter, retry.
Downloads
72
Maintainers
Readme
@openpromo/sdk-runtime
Shared runtime primitives for @openpromo ad platform SDKs.
Powering openpromo.app — the AI-native social media workspace.
What
The low-level building blocks shared by every @openpromo/* package: a fetch-based HttpClient for JSON/Bearer APIs, cursor pagination, retry with exponential backoff, and pluggable rate limiting. Runtime-agnostic — works in Bun, Node, Deno, and edge.
You don't install this directly. It's a transitive dependency of the platform SDKs.
What's inside
HttpClient— JSON POST/GET/DELETE with pluggable header builder, retry, rate limiter hooksApiClient— the original Meta-shaped client (form-encoded POST,access_tokenquery)Cursor— generic async-iterable pagination adapterRateLimiter/DelayFn— runtime-agnostic throttling interfacesApiError— base error type
Used by
License
MIT © OpenPromo
