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

@nemesis-shield-autogon/sentinel

v0.2.6

Published

Nemesis Shield - Sentinel SDK for Node. Learn your app's normal behavior, then block off-baseline requests (auth bypass, path traversal, scanners) in enforce mode. Express/Fastify/Koa adapters.

Downloads

1,035

Readme

@nemesis-shield-autogon/sentinel - Node.js

Native Node SDK for Nemesis Shield. Learns your app's normal behavior, and in enforce mode BLOCKS off-baseline requests (auth bypass, path traversal, scanners, unusual methods) before your routes run. Positive-security, fail-open, privacy-preserving (ships only method + route shape + auth - never bodies or secrets).

npm install @nemesis-shield-autogon/sentinel

One line per framework

Express / Connect

import { sentinel } from "@nemesis-shield-autogon/sentinel/express";
app.use(sentinel({ token: process.env.NEMESIS_TOKEN }));

Fastify

import { sentinelFastify } from "@nemesis-shield-autogon/sentinel/fastify";
await app.register(sentinelFastify, { token: process.env.NEMESIS_TOKEN });

Koa

import { sentinelKoa } from "@nemesis-shield-autogon/sentinel/koa";
app.use(sentinelKoa({ token: process.env.NEMESIS_TOKEN }));

Raw / anything - use the client directly:

import { SentinelClient, buildSketch } from "@nemesis-shield-autogon/sentinel";
const client = new SentinelClient({ token: process.env.NEMESIS_TOKEN });
client.record(buildSketch({ method: "GET", path: "/orders/42", authenticated: true, status: 200 }));

Docs & links

Want more than the one-liner? Full per-framework code, options, and examples:

| Framework | Detailed guide & source | |---|---| | Express / Connect | express.js | | Fastify | fastify.js | | Koa | koa.js | | Raw client | lib/client.js | | LLM guard | lib/llm.js | | Runnable examples | node/tests |

  • Full docs & source: https://github.com/eobi/nemesis_shield_sdks/tree/main/node
  • Website & console: https://shield.nemesislabs.xyz

How enforcement works

Deploy in observe mode (default) → the SDK records privacy-preserving request signatures → review & approve the learned behaviors in the console → flip the app to enforce in the console (the SDK polls the compiled policy in the background, so no redeploy) → off-baseline requests get a 403 blocked_by_nemesis_shield before your app handles them. Approved traffic passes untouched.

Verified end-to-end (learn → enforce → attack) on Express, Fastify and Koa: legit traffic passes (200); auth bypass, BOLA, path traversal and scanner probes are blocked (403) and reported.

Also exports reportLLM(token, exchange) for OWASP-LLM behavioral protection. MIT © Autogon Inc.

Full coverage & safe-unlock

Mount it first / outermost so every route is inspected (not just API routes - attackers hit any path):

app.use(sentinel({ token: process.env.NEMESIS_TOKEN })); // BEFORE your routes and any static handler

What's inspected (privacy-preserving): method + normalized route + query-param structure (names + kinds, never values) + auth flag + status. An off-baseline route, param structure, method, or auth state is blocked in enforce mode. Path-traversal segments normalize to {traversal}.

Safe-unlock (break-glass): the login/auth path is never blocked, so a still-learning baseline can't lock you out. Defaults: /login /signin /sign-in /auth /oauth /session /wp-login.php /wp-admin. Override:

export NEMESIS_SHIELD_BOOTSTRAP="/login,/admin,/healthz"

Verify coverage - in observe mode, hit a normal route, a param, and a scanner path, then confirm all three appear in the console (Activity / Behaviors):

curl -s "http://localhost:8080/" >/dev/null
curl -s "http://localhost:8080/search?q=shoes" >/dev/null
curl -s "http://localhost:8080/.env" >/dev/null   # shows up as an off-baseline behavior