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

@opencodehub/scanners

v0.1.0

Published

OpenCodeHub — Priority-1 scanner wrappers (semgrep, betterleaks, osv-scanner, bandit, biome)

Readme

@opencodehub/scanners

Subprocess wrappers for the open-source scanners that back codehub scan. Every scanner runs as an external process — nothing is linked or vendored — and returns SARIF for ingestion into the graph.

Surface

import { ALL_SPECS, P1_SPECS, P2_SPECS, filterSpecsByProfile } from "@opencodehub/scanners";

const profile = { languages: ["python"], iacTypes: ["docker"], apiContracts: [] };
const enabled = filterSpecsByProfile(P1_SPECS, profile);
  • Catalog lookup: findSpec(id) returns the ScannerSpec for an id across P1 + P2 (packages/scanners/src/catalog.ts:336-338).
  • Profile gating: filterSpecsByProfile enforces the per-priority rules below (packages/scanners/src/catalog.ts:396-417).
  • Missing-binary policy: license-incompatible scanners (hadolint, tflint) emit empty SARIF and a warning rather than crashing (packages/scanners/src/catalog.ts:155-194).

Scanners

20 scanners total — 12 Priority-1 (default) + 8 Priority-2 (profile-gated). Source of truth: packages/scanners/src/catalog.ts:12-302. P1 ordering is fixed in P1_SPECS (lines 305-318); P2 ordering in P2_SPECS (lines 321-330).

Priority-1 (default set)

| Id | Languages / scope | SARIF native | License | | ------------------------ | ------------------------------- | ------------ | ----------------- | | semgrep | all | yes | LGPL-2.1 (binary) | | betterleaks | all (secrets) | yes | MIT | | osv-scanner | all (deps) | yes | Apache-2.0 | | bandit | python | yes | Apache-2.0 | | detect-secrets | all (Yelp keyword + basic-auth) | no | Apache-2.0 | | biome | typescript / javascript / tsx | yes | MIT | | pip-audit | python | no | Apache-2.0 | | npm-audit | typescript / javascript | no | Artistic-2.0 bin | | ruff | python | yes | MIT | | grype | all (image / SBOM) | yes | Apache-2.0 | | checkov-docker-compose | docker-compose | yes | Apache-2.0 | | vulture | python (dead code) | no | MIT |

Priority-2 (profile-gated)

| Id | Gate | License | | ---------- | ----------------------------------------------------------- | ---------------------------- | | trivy | iac contains docker / terraform / cfn / k8s / docker-compose | Apache-2.0 | | checkov | iac contains terraform / cfn / k8s / docker | Apache-2.0 | | hadolint | iac contains docker | GPL-3.0 — external bin only | | tflint | iac contains terraform | MPL-2.0 + BUSL — external bin | | spectral | apiContracts contains openapi | Apache-2.0 | | radon | languages contains python | MIT | | ty | languages contains python (beta) | MIT | | clamav | opt-in only | GPL-2.0 — external bin only |

Design

  • External processes only — every wrapper spawns the OS binary; no scanner code is linked or vendored. This keeps copyleft (GPL-3.0 in hadolint, MPL-2.0 + BUSL-1.1 in tflint) at arm's length (packages/scanners/src/catalog.ts:1-8).
  • Profile-driven gatingfilterSpecsByProfile reads ProjectProfile.{languages, iacTypes, apiContracts} and prunes the catalog before launch, so scans don't waste time on irrelevant tools.
  • SHA256-pinned versions — every spec carries a version and an installCmd; CI installs the exact version listed.
  • detect-secrets is the 20th scanner — added to catch keyword and basic-auth secret shapes that betterleaks structurally cannot see (packages/scanners/src/catalog.ts:64-82).
  • optIn and beta flagsclamav is opt-in (off by profile); ty is marked beta. Both are excluded from the default filterSpecsByProfile output unless asked for explicitly.

See packages/sarif/README.md for the SARIF normaliser the wrappers feed into, and the root README's "Supply-chain posture" section for the license-tier rationale.