We are worowered by the REST API.

Getting started

  1. Add the @s2-dev/streamstore dependency to your project:
npm add @s2-dev/streamstore

Runtime instructions are available here.

  1. Generate an authentication token by logging onto the web console at s2.dev.

  2. 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();