@wrkrdev/sdk
v0.1.0
Published
Thin ESM SDK for the current Wrkr /v1 operator auth, project lookup, and deployment rollout surface.
Maintainers
Readme
@wrkrdev/sdk
Thin SDK for the current public Wrkr /v1 operator auth, project lookup, and deployment rollout surface.
Install
bun add @wrkrdev/sdkThis SDK ships compiled ESM entrypoints plus .d.ts declarations for standard package-manager installs.
Quick start
import { createWrkrClient } from '@wrkrdev/sdk';
const client = createWrkrClient({
baseUrl: 'https://wrkr.dev',
operatorToken: process.env.WRKR_TOKEN!,
});
const projects = await client.projects.list();
console.log(projects.projects.map((project) => project.name));Supported surface
createWrkrClient(config)for the current/v1operator boundary.client.auth.session.get(),exchange(), andrevoke().client.auth.pats.list(),create(), andrevoke().client.projects.list().client.deployments.list().client.deployments.releases.list()andcreate().client.deployments.environmentBindings.list(),create(),promote(), androllback().WrkrApiError,isWrkrApiError, and the exported request/auth config types.
Out of scope
- Account mutation, project mutation, worker runtime, and workspaces.
- Direct access to gateway, orchestrator, node-agent, or non-
/v1private routes. - Browser-specific session lifecycle helpers or generated clients beyond the supported methods above.
License
Apache-2.0.
