
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@trigguard/decision
Advanced tools
TrigGuard HTTP decision client: authorize() → POST /decide (no policy in-process)
@trigguard/decision)Official thin client for the TrigGuard decision endpoint: a single authorize() call. No policy logic in this package — the remote service decides.
Published name (npm scope):
npm install @trigguard/decision
The unscoped name trigguard on the public registry is not this package (different artifact / owner). Use @trigguard/decision for this HTTP client.
Monorepo / path install:
npm install file:./sdk/node
const { authorize } = require("@trigguard/decision");
const decision = await authorize(
{
surface: "spendCommit",
signals: {
riskScore: 0.8,
},
context: {
amount: 1200,
},
},
{
// optional; defaults shown via env
// endpoint: "https://decision.trigguard.ai/decide",
// token: process.env.TRIGGUARD_TOKEN,
}
);
if (decision.decision !== "PERMIT") {
throw new Error("Action blocked by TrigGuard");
}
| Variable | Purpose |
|---|---|
TRIGGUARD_ENDPOINT | Decision URL (default: https://decision.trigguard.ai/decide) |
TRIGGUARD_TOKEN | Bearer token when not passed in options.token |
cd sdk/node && npm login && npm publish --access public
See docs/distribution/PUBLISH_DECISION_CLIENT.md for npm pack verification and registry notes.
Note: The monorepo also ships a broader unified workspace package packages/trigguard-sdk (npm name trigguard when published from that tree). Keep the two packages distinct: @trigguard/decision = HTTP decide only.
sdk/js/trigguard (@trigguard/sdk)FAQs
TrigGuard HTTP decision client: authorize() → POST /decide (no policy in-process)
The npm package @trigguard/decision receives a total of 11 weekly downloads. As such, @trigguard/decision popularity was classified as not popular.
We found that @trigguard/decision demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.