Scan your whole stack
From OX Research Newsroom
Are you using @quonfig/node?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.3.0
@quonfig/node was last scanned on 30 Nov 2026 at version 2.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.3.0 LATEST | 30 Nov 2026 | No rules fired |
| 2.2.1 | 12 Nov 2026 | No rules fired |
| 2.2.0 | 29 Oct 2026 | No rules fired |
| 2.1.0 | 29 Oct 2026 | Not shown |
| 2.0.0 | 26 Oct 2026 | Not shown |
Findings for v2.3.0. 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 2.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Node.js SDK for Quonfig — Feature Flags, Live Config, and Dynamic Log Levels.
Note: This SDK is stable (v1) and follows Semantic Versioning: breaking changes to the public API land only in a major (
x.0.0) release.
npm install @quonfig/node
import { Quonfig } from "@quonfig/node";
const quonfig = new Quonfig({ sdkKey: "your-sdk-key" });
await quonfig.init();
// Feature flags
if (quonfig.isEnabled("new-dashboard")) {
// show new dashboard
}
// Config values, with the default to use when there is no value
const limit = quonfig.getInt("rate-limit", undefined, 100);
const regions = quonfig.getStringList("allowed-regions", undefined, ["us"]);
// Context-aware evaluation
const value = quonfig.get("homepage-hero", {
user: { key: "user-123", country: "US" },
});
// Bound context for repeated lookups
const userClient = quonfig.withContext({
user: { key: "user-123", plan: "pro" },
});
userClient.get("feature-x");
userClient.isEnabled("beta-feature");
// Clean up when done
quonfig.close();
Migrating from earlier releases:
isFeatureEnabledis still available as a deprecated alias ofisEnabled— both behave identically. New code should preferisEnabled, which matches@quonfig/javascriptand@quonfig/react.inContextis likewise a deprecated alias forwithContext— both behave identically;withContextis the canonical name across all Quonfig SDKs andinContextwill be removed in a future major release.
| Getter | Reads |
|---|---|
getString(key, contexts?, default?) |
string and log_level configs |
getBool(key, contexts?, default?) |
bool configs |
getInt(key, contexts?, default?) |
int configs, and doubles that are whole numbers |
getNumber(key, contexts?, default?) |
int and double configs |
getStringList(key, contexts?, default?) |
string_list configs |
getDuration(key, contexts?, default?) |
duration configs, in milliseconds |
getJSON(key, contexts?, default?) |
json configs (a fresh copy on every call) |
get(key, contexts?, default?) |
any config, as its stored type |
isEnabled(key, contexts?) |
bool flags; false for anything else, and never throws |
Every Quonfig SDK follows the same contract. A typed getter returns a value of its type or "no value". It returns no value when:
"false" is not a
bool and "3" is not a number;"twelve" or a duration config holding
"30s";With no value, the getter returns your default if you passed one. If you did not, onNoDefault
decides: "error" (the default) throws the underlying error (QuonfigTypeMismatchError for a wrong
type), and "warn" and "ignore" return undefined. Every case except a missing key or no
matching rule logs one warning per key per client. The warning names the key, never the value.
Numbers convert only when the result is exact. getNumber reads an int as it is (30), and
getInt reads a double only when it is a whole number within ±(2^53-1) (3.0 becomes 3). 3.9,
1e300 and 2^53 are type mismatches for getInt. It never truncates.
The *Details getters (getBoolDetails, getStringDetails, getNumberDetails,
getStringListDetails, getJSONDetails) never throw. They report reason: "ERROR" with
errorCode: "TYPE_MISMATCH" for a value of another type than the one asked for,
errorCode: "PARSE_ERROR" for a value that does not parse as its declared type (a malformed stored
int, double or duration, or an ENV_VAR value that cannot be converted), and errorCode: "GENERAL"
for an unset ENV_VAR or a decryption failure.
evaluateDetails(key, contexts?) returns any config's value in its stored form, with the same
reason, variant and flagMetadata as the *Details getters. A duration comes back as its ISO
8601 text exactly as stored, for example "PT90S", where getDuration gives milliseconds. It is on
Quonfig and BoundQuonfig and never throws.
const details = quonfig.evaluateDetails("http.timeout");
// { value: "PT90S", valueType: "duration", reason: "STATIC", variant: "static", flagMetadata: {...} }
There is no type check and no parsing, so validate the value yourself. A malformed value such as a
duration stored as "30s" is returned as stored, with a success reason. valueType is the config's
stored type ("duration", "string", "json" and so on). ENV_VAR values and decryption still
apply. A missing key returns value: undefined with reason: "ERROR" and
errorCode: "FLAG_NOT_FOUND".
If a bad config must fail hard, for example a wrong decryption key in production, read it
without a default on a client with onNoDefault: "error". The getter then throws instead of
returning your default.
A secret is a document in your workspace's secrets/ directory. It is a string config whose stored
values are encrypted in the qf1 format (qf1:<KEYSET>:<fingerprint>:<payload>). The SDK decrypts
a value when you read it, so getString("stripe.webhook.secret") returns the plaintext. Create and
change secrets with the qfg CLI; the SDK only reads them.
Keysets. Each value names the keyset it is encrypted to, for example QUONFIG_KEYSET_PROD. The
keyset name is also the name of the environment variable that holds that keyset's private keys in
your runtime:
QUONFIG_KEYSET_PROD="qf1-priv-..." # one key
QUONFIG_KEYSET_PROD="qf1-priv-...,qf1-priv-..." # during a rotation: old and new key
QUONFIG_KEYSET or QUONFIG_KEYSET_<NAME>, where <NAME> is A-Z, 0-9 and _
separated parts (QUONFIG_KEYSET_PROD, QUONFIG_KEYSET_CI_2). The SDK reads only the variable
that a value names, and never reads a variable whose name does not match.When a value cannot be decrypted (the keyset variable is not set, it holds no key with the
value's fingerprint, it is malformed, the value is corrupt, or the runtime's crypto library refuses
X25519, as a FIPS-restricted OpenSSL does), only that read fails. Startup does not fail, and other
configs and secrets on other keysets still work. The read behaves like any other unresolvable value:
your default is returned, else onNoDefault applies, and the *Details getters report
reason: "ERROR" with errorCode: "GENERAL". The encrypted string is never returned as the value.
The error message starts with qf1 <class>: (keyset_missing, key_not_held, keyset_invalid,
malformed, decrypt_failed, ...) and names the keyset and the fingerprints needed and held. It
never contains a key, the encrypted payload or the plaintext.
Telemetry reports a secret evaluation with type secret and a redacted value (***** plus a
short hash of the stored encrypted string), never the plaintext.
The old format is no longer read. A value that carries decryptWith (the earlier secrets
format, a configs/ value decrypted with a key held in another config) now fails to resolve with an
error that mentions decryptWith. Move such values to secrets/ with the CLI. In datadir mode a
document in secrets/ replaces a document with the same key in configs/, so a workspace can carry
both copies while it migrates. A *.json entry in secrets/ that this SDK cannot load as a secret
(invalid JSON, not an object, no string key, environments that is not a list of objects, a
default that is not an object, or a directory named *.json) is skipped with one warning that
names its path, never its content, and startup goes on; other files and subdirectories are ignored.
Detecting the error. Every secret read failure has err.name === "QuonfigDecryptionError" and
an err.code: the qf1 class (keyset_missing, key_not_held, ...) or
"decrypt_with_not_supported" for a decryptWith value. A qf1 failure also carries keyset,
fingerprint, held (fingerprints) or entry (a 1-based position) when they apply. Compare name
and code, not the message text.
Minimum version. Secrets need @quonfig/node 2.3.0 or newer. Earlier releases do not read qf1
secrets. Over the wire (sdkKey) they return the encrypted string as the value, with no error. In
datadir mode they never open secrets/: a secret-only key is missing, and a key that still has an
old copy in configs/ is served from that copy. Upgrade every backend that reads a secret before
you create it.
The old-format helpers encrypt, decrypt, generateNewHexKey and the encryption namespace are
still exported and still work, but they are deprecated: they handle only the old format.
new Quonfig({
sdkKey: "your-sdk-key", // Required (or set QUONFIG_BACKEND_SDK_KEY)
apiUrls: ["https://primary.quonfig.com", "https://secondary.quonfig.com"],
// Ordered failover list. Defaults are derived
// from QUONFIG_DOMAIN (see below).
telemetryUrl: "https://telemetry.quonfig.com",
// Default derived from QUONFIG_DOMAIN.
enableSSE: true, // Real-time updates via SSE (default: true)
fallbackPollEnabled: true, // Engage HTTP polling when SSE is unavailable (default: true)
fallbackPollIntervalMs: 60000, // Fallback poll interval in ms (default: 60000)
sseReadDeadlineMs: 90000, // Drop SSE socket if no chunk arrives within this window
// (default 90000 = 3x the 30s server heartbeat).
initTimeout: 10000, // How long init() retries for the first config, in ms (default: 10000)
onInitFailure: "fail", // "fail" | "wait" | "continue" (default: "fail"); see below
onNoDefault: "error", // "error" | "warn" | "ignore" (default: "error")
globalContext: { ... }, // Context applied to all evaluations
datadir: "./workspace-data", // Load local workspace directories instead of API
datafile: "./config.json", // Legacy local envelope path
dataDirAutoReload: false, // Opt in to fs.watch-based re-read in datadir mode (default: false)
dataDirAutoReloadDebounceMs: 200, // Debounce window for the watcher (default: 200)
collectEvaluationSummaries: true, // Send evaluation counts (default: true)
contextUploadMode: "periodic_example", // "periodic_example" | "shapes_only" | "none"
telemetryFlushIntervalMs: 60000, // How often telemetry is sent (default: 60000)
telemetryTimeoutMs: 15000, // Overall deadline per telemetry POST (default: 15000)
telemetryMaxRetainedBatches: 5, // Failed batches kept for resend (default: 5)
telemetryMaxRetainedBytes: 2097152, // Bytes of failed batches kept (default: 2MB)
telemetryMaxRetainedAgeMs: 300000, // Discard kept batches older than this (default: 5 min)
telemetryMaxEvaluationSummaries: 10000, // Distinct flag/config keys per window (default: 10000)
telemetryMaxContextShapeFields: 10000, // Distinct context fields per window (default: 10000)
telemetryMaxExampleContexts: 10000, // Example contexts per window (default: 10000)
});
See Telemetry for what these send and how failures are handled.
init() fetches config from the primary and secondary delivery hosts and retries through blips for
initTimeout (10 s by default). If no config has loaded by then, onInitFailure decides what
happens:
onInitFailure |
At the timeout |
|---|---|
"fail" (default) |
init() rejects with QuonfigInitError (.reason: "timeout", "unavailable" or "unauthorized"; .cause: the last error). |
"wait" |
init() keeps blocking and retrying with no upper bound, and resolves once config loads. |
"continue" |
init() resolves and the client starts on your code defaults. |
If every delivery host rejects the SDK key (401, 403, 404 or 410), "fail" rejects at once instead
of waiting out the timeout.
initTimeout: 0 (or any value of 0 or less) means one attempt, then the policy: init() makes a
single fetch and, if it loads nothing, applies onInitFailure at once. It never means "no
deadline"; use onInitFailure: "wait" to block until config loads.
QuonfigInitError.reason is "timeout" when the last attempt hung (no host answered in time) and
"unavailable" when it failed with an answer or a fast error. Its message and the init log lines
name each host and its HTTP status, never URL credentials or response bodies.
Calling init() again after catching a QuonfigInitError joins the background retry: it resolves
when the client heals, or rejects again after initTimeout.
The client object always keeps retrying in the background, including after you catch a
QuonfigInitError, and heals on the first successful fetch. Until then getters return the default
you pass (or follow onNoDefault), and get*Details return reason: "ERROR" with
errorCode: "PROVIDER_NOT_READY".
import { Quonfig, QuonfigInitError } from "@quonfig/node";
const quonfig = new Quonfig({ sdkKey, onInitFailure: "fail", initTimeout: 10_000 });
try {
await quonfig.init();
} catch (err) {
if (err instanceof QuonfigInitError) console.error(err.reason, err.message);
throw err; // let the orchestrator restart the process
}
quonfig.isReady(); // true once config is loaded
await quonfig.waitForReady({ timeoutMs: 30_000 }); // rejects with QuonfigInitError on timeout
Under "wait", wire your readiness probe to isReady() so the orchestrator holds traffic until
config loads.
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.