Scan your whole stack
From OX Research Newsroom
Are you using quorgi?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.1
quorgi was last scanned on 30 Nov 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.1 LATEST | 30 Nov 2026 | No rules fired |
| 0.1.0 | 30 Nov 2026 | No rules fired |
| 0.0.0-stage | 30 Nov 2026 | Not shown |
Findings for v0.2.1. 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.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Typed JavaScript and TypeScript wrapper around the quorgi CLI.
The package spawns the quorgi binary, parses its JSON stdout, and returns typed objects. It adds no cache, retry loop, or default timeout. Freshness, backoff, locking, and preconditions stay in the CLI.
quorgi binary installed on PATH, or configured through QUORGI_BIN or the bin option. This package ships no binary.cargo install quorgi-cli
npm install quorgi
import { getUsage, listAccounts } from "quorgi";
const usage = await getUsage();
for (const account of usage.accounts) {
const left = account.windows
.map((w) => `${w.id} ${w.remaining_percent}%`)
.join(" ");
console.log(account.account, account.status, left);
}
const stored = await getUsage({ cachedOnly: true });
const one = await getUsage({ account: "glm" });
const accounts = await listAccounts();
getUsage returns the quorgi get --json envelope. listAccounts returns declared accounts in configuration order.
An account error does not reject the promise. Inspect account.status and account.error on each item in accounts:
const { accounts } = await getUsage();
for (const account of accounts) {
if (account.status !== "ok") {
console.log(account.account, account.status, account.error?.message);
}
}
| Option | Applies to | Description |
|---|---|---|
account |
getUsage |
Single account id, equivalent to quorgi get <account>. Omit to query all enabled accounts. |
cachedOnly |
getUsage |
Pass --cached-only to read stored snapshots without network requests. |
bin |
Both | Path to the quorgi binary. Defaults to QUORGI_BIN, then quorgi on PATH. |
env |
Both | Environment variables merged over process.env, useful for passing QUORGI_HOME. |
signal |
Both | AbortSignal to cancel execution. Rejects with QuorgiAbortedError. |
timeoutMs |
Both | Kill the child process after this duration in milliseconds and reject with QuorgiTimeoutError. |
Every rejected promise throws a QuorgiError subclass with a code property.
| Class | code |
Cause |
|---|---|---|
QuorgiSpawnError |
spawn |
The quorgi binary could not be started or found. |
QuorgiFailedError |
failed |
The CLI exited non-zero, such as invalid config or an unknown account id. Inspect stderr. |
QuorgiMalformedError |
malformed |
Exit status was 0, but stdout was not valid envelope JSON. |
QuorgiSchemaError |
schema |
Envelope schema_version does not match this package (4 for usage, 1 for accounts). |
QuorgiTimeoutError |
timeout |
Execution exceeded timeoutMs. |
QuorgiAbortedError |
aborted |
The signal aborted execution. |
import { getUsage, QuorgiError, QuorgiSpawnError } from "quorgi";
try {
await getUsage();
} catch (error) {
if (error instanceof QuorgiSpawnError) {
console.error(error.message);
} else if (error instanceof QuorgiError) {
console.error(error.code, error.message);
} else {
throw error;
}
}
Exported interfaces (AccountSnapshot, Window, Balance, DeclaredAccount) mirror the CLI JSON fields in order.
The package also exports USAGE_SCHEMA_VERSION, ACCOUNTS_SCHEMA_VERSION, ACCOUNT_KEYS, WINDOW_KEYS, and DECLARED_ACCOUNT_KEYS for runtime schema checks. Contract tests execute the built CLI binary to verify that these keys match the binary output.
Build the CLI binary from the repository root before running tests:
cargo build -p quorgi-cli
cd packages/esm
npm ci
npm run typecheck
npm test
npm run build
Apache-2.0.
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.