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

wolf-runtime

v1.0.0

Published

A sub-millisecond, JIT-compiled IPS (Intrusion Prevention System) middleware for Node.js

Downloads

18

Readme

🐺 Wolf Runtime

A sub-millisecond, JIT-compiled Intrusion Prevention System (IPS) for Node.js.

Wolf Runtime is an enterprise-grade security middleware that sits in front of your Express/Fastify applications. It catches SQL Injection, Cross-Site Scripting (XSS), prototype pollution, and volumetric DDoS attacks in under 0.25 milliseconds without blocking the Node.js event loop.

🚀 Features

  • JIT-Compiled Rule Engine: Write security rules in JSON/YAML. Wolf compiles them into pure V8-optimized JavaScript on the fly.
  • Fail-Fast Pipeline: Multi-stage architecture drops bad traffic before it consumes CPU or memory.
  • Bounded Telemetry Queue: Safely exports threat logs (to Discord, ELK, etc.) asynchronously without risking Out-Of-Memory (OOM) crashes.
  • Zero-Downtime Hot Swapping: Update security rules without restarting your server.
  • Built-in Muscle: Pre-configured regex detectors for SQLi and XSS.

📦 Installation

npm install wolf-runtime

Quick Start (Express)

Protect your API with three lines of code:

const express = require('express');
const { wolfExpress } = require('wolf-runtime');

const app = express();
app.use(express.json());

// 1. Initialize the IPS Middleware
const ipsMiddleware = wolfExpress({
  rateLimit: { maxRequests: 100, windowMs: 60000 }, // 100 requests per minute
  context: { maxBodySize: 500000 }                  // 500kb max payload size
});

// 2. Attach globally
app.use(ipsMiddleware);

app.get('/api/data', (req, res) => {
  res.json({ message: "This route is protected by the Wolf." });
});

app.listen(3000, () => console.log('Server is running on port 3000'));

Custom Business Logic Rules

Wolf Runtime features a powerful DSL (Domain Specific Language) that compiles into native JS. You can load custom rules to block specific user-agents, bad payloads, or strange routing behaviors.

const { RuleEngine } = require('wolf-runtime');

const engine = new RuleEngine();
engine.loadRules([
  {
    id: "BLOCK_EVIL_BOT",
    priority: 100,
    condition: { 
      field: "headers.user-agent", 
      operator: "equals", 
      value: "evil-bot" 
    },
    action: "block"
  }
]);

Performance

Standard middleware often takes 2-5ms just to parse a JSON body. Wolf Runtime evaluates deep JSON paths, checks rate limits, and scans for SQLi in ~0.18ms.

License

Wolf Runtime is licensed under the MIT License.