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

script2builtins-knowledge

v0.1.0

Published

Shared API catalog for the script2builtins family: ALL_APIS, the watched-root index, the endpoint classifier, and the catalog-shape types (ApiDefinition, Severity, SokLayer). Consumed by both script2builtins (static analyzer) and script2builtins-runtime (

Readme

script2builtins-knowledge

Shared API catalog for the script2builtins family. Consumed by both:

Ships independently so catalog updates don't require a static-analyzer release.

What's exported

  • ALL_APIS: ApiDefinition[] — every fingerprinting / bot-detection API entry, aggregated across category files (navigator, canvas, webgl, audio, webrtc, timing, intl, headless-tells, introspection, storage-fonts, media-permissions, media-capabilities, sensors, events-dom, speech, math, css-style, svg, workers, wasm, console, extensions, window-screen, document).
  • Per-category arrays: navigatorApis, canvasApis, etc., for callers that want one slice.
  • watchedRoots(apis?) — the leftmost-identifier set used by the static analyzer to know which AST roots warrant catalog matching.
  • knownEndpoints, classifyEndpointUrl(url), classifyEndpointPayloadKeys(keys) — heuristic endpoint classifier (Botguard / DataDome / reCAPTCHA / Turnstile / etc.) and a KnownEndpoint type.
  • Catalog-shape types: ApiDefinition, Severity ("info" | "low" | "medium" | "high"), SokLayer ("L1a" | "L1b" | "L2" | "L3" | "L4").

Install

npm i script2builtins-knowledge

Usage

import { ALL_APIS, watchedRoots, classifyEndpointUrl } from "script2builtins-knowledge";

console.log(`Catalog: ${ALL_APIS.length} entries`);
console.log(`Roots:   ${watchedRoots().size}`);
console.log(classifyEndpointUrl("https://www.google.com/recaptcha/api2/anchor"));

SoK layer taxonomy

Entries optionally carry a layer tag (Abel 2024 SoK on anti-automation):

| Layer | Class | |---|---| | L1a | Static environmental introspection (UA, screen, plugins) | | L1b | Behavioral biometrics (mouse curves, keystroke dynamics) | | L2 | Obfuscation / source-integrity checks | | L3 | Execution traps (anti-logger, anti-debug, console hooks) | | L4 | Chronometric integrity (timing-delta, clock-skew probes) |

When a per-entry layer is omitted, the aggregator backfills with the category default; see CATEGORY_DEFAULT_LAYER in src/index.ts.

License

MIT.