Node SDK · Credential binding

Three ways to construct, depending on how many surfaces you need.

Bind credentials once, then build per-surface clients:

import { create } from "@everscribe/sdk-node";

const es = create(projectId, apiKey);

From environment

import { createFromEnv } from "@everscribe/sdk-node";

const es = createFromEnv();

Reads EVERSCRIBE_PROJECT_ID and EVERSCRIBE_API_KEY. Throws naming the missing variable if either is unset or empty.

Direct (single-surface)

If you only need one surface, skip the root client:

import * as recorder from "@everscribe/sdk-node/recorder";
import * as minter from "@everscribe/sdk-node/minter";

const rec = recorder.create(projectId, apiKey, { bufferSize: 2000 });
const m = new minter.Client(projectId, apiKey);