npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beezshield/sentinel

v0.1.0

Published

Official BeezShield Sentinel Alpha TypeScript SDK for pre-execution smart-contract risk decisions

Readme

@beezshield/sentinel

Minimal TypeScript SDK for Sentinel Alpha (BeezShield) — call /contracts/risk-score, normalize decisions, and handle x402 payment challenges when no settlement header is supplied.

Status / publishing

  • Planned package name: @beezshield/sentinelnpm publish is not done yet. This package ships in-repo first (packages/sentinel-sdk).
  • The SDK does not perform automatic x402 settlement. You supply x402Payment when you already have one, or handle the 402 challenge yourself.

Install from the workspace (until published):

npm install ./packages/sentinel-sdk

The following is the canonical name after publish (not live on npm today):

npm install @beezshield/sentinel

Quick start

import {
  createSentinelClient,
  isX402Challenge,
  SentinelPaymentRequiredError,
} from "@beezshield/sentinel";

const client = createSentinelClient({
  // apiUrl defaults to https://api.beezshield.com
  // lane defaults to "basic"
  // timeoutMs defaults to 10000
});

try {
  const result = await client.scoreContract({
    contract_address: "0x1111111111111111111111111111111111111111",
    chain: "base",
  });
  console.log(result.risk_metrics.score);
} catch (e) {
  if (e instanceof SentinelPaymentRequiredError) {
    console.log("x402 challenge:", e.challenge);
  }
  throw e;
}

x402 challenges

Without a valid X402-PAYMENT (or a dev-only paymentHeader you control), the API typically returns HTTP 402. The SDK throws SentinelPaymentRequiredError with a typed challenge parsed from the response body.

import { isX402Challenge, SentinelPaymentRequiredError } from "@beezshield/sentinel";

function handle(err: unknown) {
  if (err instanceof SentinelPaymentRequiredError || isX402Challenge(err)) {
    // Surface pay_to, amount_usdc, etc. from err.challenge when using SentinelPaymentRequiredError
    return "payment_required";
  }
}

Decide before execution

Map the API decision to a simple execution gate (not legal/financial advice — your policy may differ later):

const gate = await client.decideBeforeExecution({
  contract_address: "0x…",
  chain: "base",
});
if (!gate.shouldExecute) {
  // block or review flows
}
  • ALLOWshouldExecute: true
  • REVIEW, REDUCEshouldExecute: false / action: "review"
  • BLOCK or emergency EXIT_NOWshouldExecute: false / action: "block"

Configuration

| Field | Default | Notes | |-------|---------|--------| | apiUrl | https://api.beezshield.com | Trailing slashes stripped | | lane | basic | Sent as X-SENTINEL-LANE | | timeoutMs | 10000 | Abort via AbortSignal | | x402Payment | — | Set X402-PAYMENT when you have a settlement | | paymentHeader | — | Optional PAYMENT-SIGNATURE (e.g. local demo only) |

AgentKit

Coinbase AgentKit provider integration is not live in this package — treat as a future extension; wire this client manually for now.

Build

cd packages/sentinel-sdk
npm install
npm run build
npm test

License

MIT