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

andru-security-sensor

v1.0.0

Published

Distributed security sensor + WARDEN intake contract for the Andru platform. Runs npm-audit (SCA), regex SAST, and runtime header probes; emits a signed, versioned SensorReport to WARDEN.

Readme

andru-security-sensor

Distributed security sensor + WARDEN intake contract for the Andru platform.

This package is the single source of truth shared by the sensors that scan each service and the central WARDEN intake that aggregates their findings. It provides:

  • SensorReport contract (contract.ts) — versioned zod schema imported by both senders and WARDEN.
  • SCAscanDependencies(dir) runs npm audit in a checkout.
  • SASTscanCodeForVulnerabilities(dir) regex static analysis over src/ and app/.
  • DASTprobeRuntime(url) checks a live URL's security headers and obvious exposure.
  • Signing — HMAC-SHA256 over ${timestamp}.${rawBody} with a 5-minute replay window.
  • buildSensorReport() / postReport() — assemble and deliver a signed report.
  • security-sensor CLI — for CI sensors.

Architecture

backend resident worker ─┐
frontend CI sensor ──────┼─ signed SensorReport ─▶ WARDEN POST /v1/warden/intake
                         │                          verify → evidence gate → dedupe →
                         │                          incident ledger → Slack

A finding's provenance is attested: the verified HMAC signature + the report's commit vouch that the sensor found it in its own checkout, so WARDEN trusts remote file:line refs it cannot see on its own host (it still rejects unsigned/hallucinated findings).

CLI

npx andru-security-sensor \
  --sensor frontend \
  --dir . \
  --categories dependency,code \
  --probe-url https://platform.andru-ai.com

Env: WARDEN_SENSOR_SECRET (sign), WARDEN_INTAKE_URL (or --intake). Without them, runs dry-run (prints the report, sends nothing). Exits 0 by default — pass --fail-on high|critical to fail CI on matching findings (the platform's security-scan.yml owns PR-blocking).

Library

import { buildSensorReport, postReport, verifySignature, SensorReportSchema } from "andru-security-sensor";

const report = await buildSensorReport({ sensor: "backend", dir: process.cwd(), probeUrls: ["https://hs-andru-test.onrender.com"] });
await postReport(report, { intakeUrl: process.env.WARDEN_INTAKE_URL!, secret: process.env.WARDEN_SENSOR_SECRET! });

Versioning

version == contract v. Any breaking change to SensorReport bumps both. Consumers pin a major range; WARDEN validates v on intake.