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

@havoc-security/cli

v0.5.2

Published

HAVOC — Laravel-native security scanner CLI. Free to use; free to use under BSL 1.1.

Readme

@havoc-security/cli

Framework-aware security scanning for Laravel. Parses your PHP into an AST and applies Laravel's own security model — policies, Gates, middleware, $fillable — rather than pattern-matching your source.

npx @havoc-security/cli scan

No account required. No data leaves your machine unless you configure HAVOC Cloud.

Install

npm install -g @havoc-security/cli
havoc scan

Requires Node 20+. HAVOC analyses PHP but is written in TypeScript, so it is an npm package rather than a Composer one.

Usage

havoc scan                        # scan the current directory
havoc scan apps/api               # scan a subdirectory
havoc scan --format json          # machine-readable output
havoc scan --fail-on high         # exit non-zero on high+ findings (for CI)
havoc scan --diff main            # only files changed since a git ref
havoc scan --severity medium      # hide findings below a severity
havoc baseline                    # record current findings, report only new ones
havoc init                        # write a .havoc.yml

--format json writes the full result to stdout:

{
  "findings": [ /* id, severity, analyzer, file, line, recommendation, cwe */ ],

  // Controller actions with a detectable authorization check — the headline.
  "authorizationCoverage": { "coveredActions": 29, "totalActions": 60 },

  // Route-level AUTHENTICATION, a different question. `coveragePercent` is a
  // deprecated alias of `routeAuthPercent`; don't read it as the headline.
  "coverage": { "totalRoutes": 52, "coveredRoutes": 43, "routeAuthPercent": 83 },

  "metadata": { "filesScanned": 314, "durationMs": 770, "scannerVersion": "0.2.0" },
  "grade": "F"
}

Analyzers

Fifteen, all Laravel-specific: authorization coverage, mass assignment, SQL injection, XSS surface, IDOR, privilege escalation, credential exposure, session security, file upload, rate limiting, encryption at rest, insecure deserialization, open redirect, security headers, and dependency audit.

Maturity varies per analyzer. Precision and recall are measured against a labeled corpus in the repository (corpus/) plus a realism corpus of real Laravel applications (corpus-realism/), both run in CI.

Configuration

.havoc.yml in the directory being scanned:

framework: laravel

paths:
  controllers: app/Http/Controllers
  models: app/Models
  routes: routes

fail_on: high

ignore:
  - id: HAVOC-MA-002
    reason: "Legacy admin model, tracked in TICKET-123"

Every ignore entry requires a reason, to prevent silent suppression. CLI flags always override .havoc.yml.

CI

- uses: actions/setup-node@v4
  with:
    node-version: '20'
- run: npx @havoc-security/cli scan --fail-on high

Licence

Business Source License 1.1 — free to use, not open source. Read, modify, self-host, and run in production, including on your employer's code and in your own CI. The one restriction is offering HAVOC as a competing hosted service. Converts to Apache 2.0 on 2030-03-01. See LICENSE.md.