TypeScript SDK
npm install @verusidentity/sdkRead-only, with no key and no dependencies. Works in Node 18 or newer and in browsers.
import { Verus } from "@verusidentity/sdk";
const verus = new Verus();leaderboard()
Section titled “leaderboard()”Returns every scored model, ranked.
const { rows } = await verus.leaderboard();console.log(rows[0].model.name, rows[0].summary.score);model(slug)
Section titled “model(slug)”Returns one model. summary is missing if the model has not been scored.
const { model, summary } = await verus.model("glm-5-3-flash");tests()
Section titled “tests()”Returns the tests in the current suite.
const tests = await verus.tests();Errors
Section titled “Errors”Failed requests throw a VerusError with the HTTP status.
import { Verus, VerusError } from "@verusidentity/sdk";
try { await new Verus().model("unknown");} catch (error) { if (error instanceof VerusError && error.status === 404) { console.log("Not a tested model"); }}Options
Section titled “Options”new Verus({ baseUrl }) reads from another deployment. The default is https://verusidentity.co.
