Official Typescript SDK for S2
We are worowered by the REST API.
@s2-dev/streamstore
npm add @s2-dev/streamstore
Runtime instructions are available here.
Generate an authentication token by logging onto the web console at s2.dev.
Make a request using SDK client.
import { S2Client } from "@s2-dev/streamstore"; const s2 = new S2Client({ authToken: "<AUTH_TOKEN>" }); async function run() { await s2.account.createBasin("my-favorite-basin"); await s2.account.basin("my-favorite-basin").stream("test").append({ appendInput: { records: [{ body: "hello" }] } }); } run();