@streamoid/sdk
v0.1.0
Published
Streamoid platform SDK (L1): event envelope, C6 object keys, C3 secrets, analytics/audit capture, files index, MCP self-registration.
Readme
@streamoid/sdk
The TypeScript port of the streamoid platform SDK. See the repo root README for the full picture (why this exists, the other language ports, versioning).
Install
bun add @streamoid/sdk # or: npm i @streamoid/sdkPublished to the public npm registry, so there is nothing else to configure —
no scoped .npmrc, no read:packages token, no Docker build secret. It
installs like any other dependency, and like the sibling @streamoid/ui,
@streamoid/icons, @streamoid/settings and @streamoid/tokens packages.
Previously published to GitHub Packages as
@streamoid-technologies/sdk, which needed a token to install even though this repo is public. That name is retired; if you find a@streamoid-technologies:registryline in a consumer's.npmrc, it can be deleted.
Usage
import { capture, recordFile, registerMcpServer, createFileStore } from "@streamoid/sdk";
await capture("file_uploaded", {
actor: { user_id: uid },
tenant: { workspace_id: ws },
properties: { kind: "file-upload", size },
});Every consuming service must set STREAMOID_PRODUCT in its environment — there is
no hardcoded per-service default (see src/config.ts's module docstring for why).
Build / test
bun install
bun run type-check
bun run test
bun run build