Skip to content

StellraiGoverned Execution Runtime

Stellrai doesn't care how you built your app. It governs how it executes.

Stellrai

The integration contract

Build your app with any tools you choose. To run on Stellrai, conform to the runtime contract — so every governed action is decided, executed, and audited by default.

typescript
import { HybriDBClient } from '@hybridb/sdk';

const hdb = new HybriDBClient({
  baseUrl: 'https://hybridb.stellrai.com',
  apiKey:  process.env.HDB_API_KEY!,
});

// 1. Request a decision (policy check)
const decision = await hdb.requestDecision({
  decisionType: 'payment.authorize',
  action:       'payment.initiate',
  inputData:    { amount: 15000, currency: 'USD', actorId: 'user:alice' },
});

if (decision.outcome !== 'approved') throw new PolicyDenyError(decision);

// 2. Execute the governed pipeline
const execution = await hdb.triggerPipelineByName('payment.execute.standard', {
  decisionId: decision.decisionId,
  input:      { amount: 15000, to: 'acct_9k2x' },
});

// 3. Reverse if needed — any time within the reversibility window
await hdb.reversibility.rollback(execution.id, { reason: 'user_request' });

Three method calls. Decision → execution → rollback. Everything else — policy enforcement, checkpointing, audit logging — happens automatically.

hybriDB is the kernel inside Stellrai.