omnistream-sdk
v0.2.1
Published
Universal SDK for OmniStream. One key reaches every API on the marketplace.
Maintainers
Readme
omnistream-sdk
The universal OmniStream SDK for JavaScript / TypeScript. One Omni key reaches every API on the marketplace.
npm install omnistream-sdkCall any API
import { OmniClient } from "omnistream-sdk";
const omni = new OmniClient({ token: process.env.OMNI_KEY! });
// call("<slug>/<operationId>", { params, body })
const status = await omni.call("skinapi/status");
const items = await omni.call("skinapi/items-search", { params: { q: "ak 47" } });Get your Omni key from the dashboard at https://omnistream.skinvaults.online or with the
omni CLI (omni login, omni keys).
By default the SDK talks to the hosted gateway. Point it elsewhere with
new OmniClient({ token, url: "wss://your-gateway/v1/connect" }).
