Skip to content

SDK Reference

Node.js SDK

TypeScript/JavaScript client.

Overview

Official Node.js / TypeScript client for the Zof REST API.

Package: @zof-ai/sdk. Supports projects, runs, agents, webhooks, pagination helpers, automatic retries, and typed error handling.

Who should read this

  • QA engineers, SREs, platform teams, and developers operating Zof Console and APIs.

Prerequisites

  • Node.js / TypeScript development environment (see language runtime requirements)
  • Organization API key stored in environment or secret manager

When to use this workflow

  • Onboarding new team members to Zof terminology and workflows
  • Authoring internal runbooks aligned with Console labels
  • Designing CI/CD or webhook integrations against documented behavior

Step-by-step procedure

Install package

npm install @zof-ai/sdk

Initialize client

Pass apiKey from ZOF_API_KEY environment variable.

Use separate client instances per environment (staging vs production keys).

First API call

List projects or create a staging run to verify connectivity.

Handle ZofApiError for validation and rate limit responses.

Key concepts

Organization scope
All Zof Console and API operations are isolated to your authenticated tenant.
Governed execution
Agent output and remediation follow policy packs with human approval when configured.

Best practices

  • Never embed API keys in source; use environment variables or vault injection
  • Prefer waitUntilComplete helpers over tight polling loops
  • Pin SDK version in production services and review changelog before upgrades

Was this page helpful?

01Zof Console

Isang surface para sa posture, operasyon, at kung ano ang kailangang asikasuhin susunod.

Ang authenticated na home na binubuksan araw-araw ng mga team ng engineering, QA, at SRE: quality posture, mga in-flight na run, coverage ayon sa module, at kung ano ang dapat asikasuhin susunod.

OPERATIONAL KPIs

  • Mga Run
  • Coverage
  • Panganib

Live sa bawat environment na sini-ship mo.

WORK SPINE

  • Specs
  • Tests
  • Schedules

Mula sa specification hanggang scheduled regression.

GUARDRAILS

  • RBAC
  • SSO
  • audit

Bawat aksyon ay maiuugnay sa pinangalanang tao.

LIVE/console
Zof AI home command center na nagpapakita ng 12 run sa 94% pass, 3 bukas na kritikal na isyu, 84% coverage, apat na module traceability bar, ang specification pipeline, mga paparating na iskedyul, at mga inirerekomendang susunod na aksyon na may active-runs sidebar.
Home view · Checkout Service · Staging · captured live from the product.
  • 01 · RUNS · 24H

    94% pass

    12 runs across staging

  • 02 · COVERAGE

    84%

    Across four modules

  • 03 · ACTIVE RUNS

    3 running

    Live on this branch

  • 04 · NEXT ACTIONS

    Recommended

    Triage gaps, new spec

Node.js SDK | Zof AI Documentation