Product · SDK

Build on STAXIS, in your stack.

A typed client with first-class access to swarm state, governance stage, the circuit breaker, and the hash-chained audit log. Custody is never in scope — the SDK trades within the permissions you granted, and nothing more.

your code@staxis/sdk · typed clientswarmsbreakerauditSTAXIS API/api/v1 · non-custodial · breaker

What it gives you

The architecture, as a typed object model.

Typed end to end

Every request and response is typed against the same wire contract the platform uses. A bad payload surfaces as a typed error at the boundary, not as a runtime surprise deep in your code.

Swarm and governance state

Read each swarm’s current stage — paper, canary, live, degraded, retired — and its calibration history directly, so your application always reflects the published governance state.

Breaker-aware

Allocation calls are bounded by the circuit breaker and your venue permission scope. The SDK never lets you express an action the architecture would reject downstream.

Audit access built in

Query the hash-chained, tamper-evident audit log as a first-class object. Reconcile your own records against the chain whenever you need to.

Install

One client, three languages.

  • TypeScript / JavaScript@staxis/sdk
    $ pnpm add @staxis/sdk
  • Ruststaxis-sdk
    $ cargo add staxis-sdk
  • Pythonstaxis
    $ pip install staxis

In practice

Read a swarm, check its stage, audit the change.

The SDK reads the governance stage before you ever express an allocation, so your code cannot quietly act on a swarm that has been demoted to degraded.

import { Staxis } from '@staxis/sdk';

const staxis = new Staxis({ apiKey: process.env.STAXIS_KEY });

const swarm = await staxis.swarms.get('argonaut-trend');

if (swarm.stage === 'live') {
  // Bounded by the breaker and your venue permission scope.
  await staxis.allocations.open({ swarm: swarm.id, weight: 0.25 });
}

// Every change is on the hash-chained audit log.
const entries = await staxis.audit.query({ swarm: swarm.id });

Same invariants

Built on the same invariants.

Whatever you build on the SDK runs under the non-custodial guarantee, the circuit breaker, and the audit log. Read how each one holds.