@timmydev56/hera-ts-sdk
v0.1.5
Published
Standalone TypeScript SDK for Hera privacy compliance workflows
Downloads
80
Maintainers
Readme
@timmydev56/hera-ts-sdk
Standalone TypeScript SDK package for Hera.
It publishes as a single npm package by embedding the generated Wasm bridge inside dist/wasm.
Consumers do not need to build Rust or run wasm-pack themselves.
Publish shape
The npm package contains:
dist/index.jsanddist/index.d.tsdist/types.d.tsdist/wasm/*generated bywasm-pack
At runtime the package loads its own colocated Wasm bundle via dynamic import.
Local build flow
- Build the standalone npm artifact.
cd packages/ts-sdk
npm run build- Typecheck the TypeScript wrapper.
tsc --noEmit -p tsconfig.jsonnpm pack will automatically run prepack, which builds the Wasm bridge and TypeScript wrapper
into dist/.
Usage
import { createHeraClient } from "@timmydev56/hera-ts-sdk";
const client = await createHeraClient({
baseUrl: "https://api.hera.example",
apiKey: "hera_live_...",
});
const workspaces = await client.listWorkspaces({ limit: 10 });The bridge still uses JSON strings across the Wasm boundary on purpose. That keeps the published TypeScript package dependency-free while preserving the Rust implementation underneath.
Examples
examples/node-case-lifecycle.mtsexamples/browser-case-lifecycle.ts
