A keyless, first-party collection of everyday developer utilities hosted by OmniStream: generate UUIDs and secure passwords, hash text, encode base64, slugify strings, decode JWTs, convert colours...
npm install omnistream-sdkimport { OmniClient } from "omnistream-sdk";
const omni = new OmniClient({ token: process.env.OMNI_KEY! });
// One key reaches every API on the marketplace.
const data = await omni.call("omnistream-tools/generateUuid");One install, one key - the same client calls every API on the marketplace.
How many UUIDs to generate (1-100).
Generate one or more v4 UUIDs
Hash text with md5, sha1, sha256, or sha512
Generate a cryptographically-random password
Encode or decode base64
Turn any text into a URL-safe slug
Generate lorem ipsum placeholder text
/**
* OmniStreamDevTools - generated by OmniStream from OmniStream Dev Tools's OpenAPI spec.
* One typed method per endpoint. A single Omni key reaches the API.
*/
const DEFAULT_BASE = "https://grid.skinvaults.online/v1/proxy/omnistream-tools";
export class OmniStreamDevToolsError extends Error {
status: number;
code?: string;
constructor(status: number, code: string | undefined, message?: string) {
super(message || `OmniStreamDevTools error ${status}`);
this.name = "OmniStreamDevToolsError";
this.status = status;
this.code = code;
}
}
export interface OmniStreamDevToolsOptions {
baseUrl?: string;
fetch?: typeof fetch;
timeoutMs?: number;
}
export class OmniStreamDevTools {
/** @param token Your OmniStream key (one key for every API). */
constructor(private token: string, private opts: OmniStreamDevToolsOptions = {}) {
if (!token) throw new Error("OmniStreamDevTools: token is required");
}
rateLimit: { remainingMinute?: number; remainingDay?: number } | null = null;
private async _request(method: string, path: string, { params, body }: { params?: Record<string, unknown>; body?: unknown } = {}): Promise<any> {
const f = this.opts.fetch ?? globalThis.fetch;
const url = new URL((this.opts.baseUrl ?? DEFAULT_BASE).replace(/\/+$/, "") + path);
if (params) for (const [k, v] of Object.entries(params)) if (v != null) url.searchParams.set(k, String(v));
const headers: Record<string, string> = { "x-omni-key": this.token };
if (body !== undefined) headers["content-type"] = "application/json";
const res = await f(url, { method, headers, body: body !== undefined ? JSON.stringify(body) : undefined });
this.rateLimit = {
remainingMinute: Number(res.headers.get("x-ratelimit-remaining-minute")) || undefined,
remainingDay: Number(res.headers.get("x-ratelimit-remaining-day")) || undefined,
};
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new OmniStreamDevToolsError(res.status, data?.error?.code, data?.error?.message);
return data.data ?? data;
}
/** Generate one or more v4 UUIDs */
generateUuid(params: { "count"?: number }): Promise<any> {
return this._request("GET", "/uuid", { params });
}
/** Hash text with md5, sha1, sha256, or sha512 */
hashText(params: { "text": string; "algo"?: string }): Promise<any> {
return this._request("GET", "/hash", { params });
}
/** Generate a cryptographically-random password */
generatePassword(params: { "length"?: number; "numbers"?: boolean; "symbols"?: boolean }): Promise<any> {
return this._request("GET", "/password", { params });
}
/** Encode or decode base64 */
base64(params: { "text": string; "mode"?: string }): Promise<any> {
return this._request("GET", "/base64", { params });
}
/** Turn any text into a URL-safe slug */
slugify(params: { "text": string }): Promise<any> {
return this._request("GET", "/slugify", { params });
}
/** Generate lorem ipsum placeholder text */
loremIpsum(params: { "paragraphs"?: number }): Promise<any> {
return this._request("GET", "/lorem", { params });
}
/** Convert a hex colour to RGB and HSL */
convertColor(params: { "hex": string }): Promise<any> {
return this._request("GET", "/color", { params });
}
/** Convert between unix time and ISO/UTC */
convertTimestamp(params: { "value"?: string }): Promise<any> {
return this._request("GET", "/timestamp", { params });
}
/** Decode a JWT's header and payload (no verification) */
decodeJwt(params: { "token": string }): Promise<any> {
return this._request("GET", "/jwt", { params });
}
}
export default OmniStreamDevTools;
No reviews yet. Be the first to rate this API.
No. OmniStream Dev Tools is included with your Omni key, so a single OmniStream key is enough to start calling it. There is no separate signup with the provider and no second key to manage.
A keyless, first-party collection of everyday developer utilities hosted by OmniStream: generate UUIDs and secure passwords, hash text, encode base64, slugify strings, decode JWTs, convert colours... It exposes 9 endpoints over GET, including GET /uuid, GET /hash, GET /password.
Install the OmniStream SDK for your language and call OmniStream Dev Tools through it. The client is generated from this API's OpenAPI spec, so parameters and responses are fully typed, and the same client also calls every other API in the marketplace.
You can start on the free plan. OmniStream charges for the unified SDK, key storage and proxy rather than for OmniStream Dev Tools itself.
QuickChart: An API to generate charts and QR codes using QuickChart services.
Convert a hex colour to RGB and HSL
Convert between unix time and ISO/UTC
Decode a JWT's header and payload (no verification)