Resilience Utilities (internal - not published)

@heossihq/qnsi-resilience is the small shared utility package QNSI's own services and client layers use for fault handling.

Resilience Utilities (internal - not published)

@heossihq/qnsi-resilience is the small shared utility package QNSI's own services and client layers use for fault handling.

This is an internal package - it is not on npm

It is not published, and there is nothing to install. It ships inside the platform and is readable in the public mirror. The page below documents its behaviour because that behaviour is what backs the retry and timeout semantics you get from the published SDK.

As an SDK consumer you get this behaviour for free - @heossihq/qnsi applies timeouts and retries on every call, and you configure them on the client:

import { QnsiClient } from "@heossihq/qnsi";

const qnsi = new QnsiClient({
  apiKey: process.env.QNSI_API_KEY!,
  timeoutMs: 15_000, // per-request timeout; defaults to 15 000
});

Features

  • circuit breakers
  • timeout controls
  • retry orchestration
  • fault-isolation helpers used by shared client layers

Usage

// Internal platform source (public mirror) - not an npm import for SDK consumers.
// packages/resilience/src/circuit-breaker.ts
import { CircuitBreaker } from "../../packages/resilience/src/index.js";