Scan your whole stack
From OX Research Newsroom
Are you using @bevorai/sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.3-rc2
@bevorai/sdk was last scanned on 30 Nov 2026 at version 0.2.3-rc2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.3-rc2 LATEST | 30 Nov 2026 | No rules fired |
| 0.2.3-rc1 | 29 Nov 2026 | No rules fired |
| 0.2.2 | 25 Nov 2026 | No rules fired |
| 0.2.2-rc3 | 24 Nov 2026 | Not shown |
| 0.2.2-rc2 | 20 Nov 2026 | Not shown |
Findings for v0.2.3-rc2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.3-rc2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
TypeScript SDK for the Bevor API: smart contract security analysis for Solidity.
Research preview. The API and this SDK may change between minor versions until 1.0.
npm install @bevorai/sdk
# or
pnpm add @bevorai/sdk
Requires Node 22+ (or any runtime with fetch and AbortSignal.any). The package is ESM.
Create an API key in the Bevor dashboard, then:
import { readFile } from "node:fs/promises";
import { BevorClient } from "@bevorai/sdk";
const client = new BevorClient({ apiKey: "bvr_..." });
const code = await client.codes.createPaste({
content: await readFile("Vault.sol", "utf8"),
});
const created = await client.analyses.createRoot({ code_id: code.id });
if (!created.is_created) {
// this code already has analyses in the project; reuse one, or pass on_collision: "force"
console.log(created.candidates.map((c) => c.analysis_meta.id));
process.exit(0);
}
const { analysis } = created;
const run = await client.analyses.run(analysis.id, undefined, {
withStreaming: true,
});
for await (const event of run.streamCompletion()) {
console.log(event.type, event.payload.status);
}
const findings = await client.analyses.listFindings(analysis.id);
for (const finding of findings.results) {
console.log(finding.level, finding.name);
}
Every method takes optional per-call RequestOptions as its last argument: headers, an abort
signal and a timeout in ms. Client-wide defaultHeaders, timeout (default 120 s) and a custom
fetch are set on the constructor.
Responses are the API's JSON, typed. Timestamps are ISO 8601 strings.
with(id) returns the same methods without the id argument:
const analysis = client.analyses.with(analysisId);
await analysis.listFindings({ version_id: versionId });
const graph = client.codes.with(codeId).graph;
const entrypoints = await graph.listNodes({ is_entrypoint: true });
List endpoints return one page. Pass withPagination: true to accumulate pages:
const findings = await client.findings.list(
{ level: "critical" },
{ withPagination: true },
);
while (findings.hasMore) await findings.fetchNext();
console.log(findings.results.length);
analyses.run, codes.uploadFolderZip, codes.createPublicRepo and
codes.createConnectedRepo accept withStreaming: true and return an EventResource. Its
streamCompletion() yields progress events until processing finishes. Status events
(analysis.pipeline, code.status) refresh .data; the others (analysis.run, code.step) are
progress only. Each event's type is its SSE event name, so unions narrow with a switch.
Chat replies stream with chats.stream:
const token = await client.chats.sessionToken(chatId);
for await (const message of client.chats.stream(chatId, token, {
message: "Is deposit reentrant?",
})) {
if (message.event_type === "text")
process.stdout.write(message.content ?? "");
}
import { fingerprintSource } from "@bevorai/sdk";
import { directoryFiles } from "@bevorai/sdk/helpers";
const { zip, nFiles, versionFingerprint } = await fingerprintSource(
await directoryFiles("./contracts"),
"contracts",
);
if (nFiles === 0) throw new Error("no UTF-8 source files found after filters");
const signingKey = await client.codes.generateSigningKey();
const upload = await client.codes.uploadFolderZip(signingKey, zip, {
withStreaming: true,
});
for await (const event of upload.streamCompletion()) {
if (event.type === "code.step") console.log(event.payload.step);
}
The zip and fingerprint follow the same file rules as the API, so versionFingerprint matches the
code version's version_fingerprint.
Graph loads a code version's nodes, edges and files for local traversal:
import { Graph } from "@bevorai/sdk";
const graph = new Graph(client, codeId);
await graph.build();
const chain = graph.getCallChain(entrypointId);
console.log(chain.toText());
const source = await graph.reconstructChunk(entrypointId, {
withDocstring: true,
});
Error responses with a known code throw a typed subclass of BevorError (NotFoundError,
InvalidStateError, RateLimitError, ...) carrying code, statusCode and message.
Any other non-2xx response throws BevorError with the status and raw body.
import { NotFoundError } from "@bevorai/sdk/errors";
try {
await client.findings.get(findingId);
} catch (error) {
if (error instanceof NotFoundError) return null;
throw error;
}
import { bevorToSarif, sarifToBevor } from "@bevorai/sdk/helpers";
const sarif = await bevorToSarif(graph, analysis, findings.results);
// results whose location matches no node, or several, are skipped with a reason
const { findings, skipped } = await sarifToBevor(graph, sarifLog);
await client.analyses.addFindings(analysisId, findings);
Full API reference and guides: https://bevor.io/docs
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.