Skip to content

SDK overview

@edgible-team/sdk is the TypeScript SDK for the Edgible platform — the same client and workflow layer the CLI and webapp are built on, available for you to automate Edgible from your own code. It runs in the browser, in Node, and in CI.

If you have used the edgible CLI, the SDK is the programmable form of everything it does: authenticate, deploy applications, orchestrate multi-app stacks, and wait for work to finish.

import { createClient } from '@edgible-team/sdk';
const client = createClient({ env: 'prod' });
const me = await client.auth.me();
const apps = await client.organizations.listApplications({ organizationId: me.organizations[0]! });
  • Manage resources — applications, devices, device pools, storage, organizations, certificates — through namespaced resource clients (client.applications, client.devices, …).
  • Deploy and wait — kick-off methods return immediately and hand you an Operation with a waitUntilReady() waiter, so you control when to block. See Long-running operations.
  • Orchestrate stacks — declarative, multi-application YAML with a dependency graph, via client.stacks.

The SDK is a single package split into entry points by where the code may run and what it may touch. Almost everyone uses the root import:

ImportFor
@edgible-team/sdkThe control-plane client and orchestration — the surface for almost everyone. Browser, Node, or CI.
@edgible-team/sdk/nodeNode-only extras: explicit credential wiring, stack-file loading, VM helpers.
@edgible-team/sdk/hostOperating on a device host itself — installing the agent, controlling its daemon. Node, privileged.

Two further entry points (/agent and /admin) are platform-internal and not part of the published developer surface. See Tiers & entry points for the full matrix and the guarantees behind the split.

Not yet on npm. Until the first 0.x release, install from the repo checkout (npm install <path-to>/sdk) or npm link. Requires Node 20+; browser builds are supported.