Home / Developer Docs
SDK · v2.4.1

Ship your first node js service in 10 minutes.

End-to-end developer documentation for the Adensabais CLI, SDK, and runtime contracts.

Request a Technical Demo →
SDK · TypeScriptCLI · 2.4.1Runtime · node-js 20License · Apache-2.0
// 1 · Install

CLI

npm i -g @adensabais/cli
adensabais login
// 2 · Bootstrap

A new nodejs service

adensabais init orders-api \
  --runtime=node-js@20 \
  --template=http
// 3 · Define routes

service.ts

import { route } from "@adensabais/sdk";

export const createOrder = route({
  path: "/v1/orders",
  method: "POST",
  handler: async (ctx) => {
    return { id: ctx.id, status: "ok" };
  },
});
// 4 · Deploy

One command

adensabais deploy --env=prod
✓ contract validated
✓ 4 replicas ready
✓ canary @ 1% traffic
// Reference

API surface.

SymbolModulePurpose
route()@adensabais/sdkDeclare a typed nodejs HTTP route
worker()@adensabais/sdkBackground node-js worker bound to the event spine
kv@adensabais/stateStrongly-typed KV store with regional pinning
trace()@adensabais/observeManual span when auto-instrumentation is not enough
secret()@adensabais/sdkShort-lived workload secret resolution