@astra-harness/client
v1.1.0
Published
TypeScript client for the Astra Harness public API: Responses, streaming, sessions, Pro, durable jobs, and files.
Maintainers
Readme
@astra-harness/client
The TypeScript client for the Astra Harness public API. It runs on Node 20 and later and in modern browsers (ESM).
npm install @astra-harness/clientimport { createAstraHarnessClient, textDelta } from "@astra-harness/client";
const client = createAstraHarnessClient({
baseUrl: "https://harness.example.com",
apiKey: process.env.ASTRA_HARNESS_API_KEY ?? "",
});
const stream = await client.responses.stream({
model: "openai/gpt-4.1-mini",
input: "Explain idempotency in two sentences.",
});
for await (const event of stream) process.stdout.write(textDelta(event) ?? "");It covers Responses (streaming, sessions, Pro, background retrieval), durable jobs (drafts, uploads, start, events, outputs), and file downloads, with typed errors and retries only for requests that are safe to repeat. Keep API keys on your server.
Full guide: /docs/sdks/typescript on your Astra Harness deployment. Licensed under MIT.
