Skip to main content

TypeScript SDK

Never expose API keys in browser code. Use @fact0/sdk only in server-side contexts (Next.js route handlers, Node agents, workers).

Modules

  • client.audit - audit log read/write/verify/export
  • client.telemetry - execution tracing
Types are generated from OpenAPI specs in openapi/.

Environment variables

API origin defaults to https://api.fact0.io. Always override it with baseUrl for your self-hosted installation, as shown above.