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

@funkymed/basile

v0.1.3

Published

BASILE CLI — multi-stack audit runner

Readme

BASILE


Installation

# Global install (recommended)
npm install -g @funkymed/basile
basile doctor

# One-off run without install
npx @funkymed/basile doctor

Quick start

basile init                                # generates cookbook.yaml
basile setup --recipe cookbook.yaml        # installs missing tools
basile scan --recipe cookbook.yaml         # preflight + scan + report

Commands

| Command | Role | |---------|------| | basile doctor | Environment status (Node, Docker, package managers) + scanner availability | | basile list-scanners | Lists known scanners grouped by category | | basile init | Generates a starter cookbook.yaml | | basile setup | Installs missing tools (batched per PM, Docker pulls in parallel) | | basile scan | Runs a scan (recipe or ad-hoc) | | basile report | Re-renders a previous run as MD/PDF without re-scanning |


Usage modes

1. Without cookbook (ad-hoc)

Code target:

basile scan --target ./apps/api --stacks php,symfony --scanners phpstan,bearer

URL target:

basile scan --url https://example.com --scanners lighthouse,headers,zap-baseline

Recon / EASM shortcuts (v0.0.7+):

basile subfinder example.com                   # subdomain enum
basile waf https://example.com                 # WAF detection
basile recon example.com                       # full attack surface

See docs/examples/code-php-scan.md, docs/examples/code-typescript-scan.md, docs/examples/url-quick-scan.md, docs/examples/recon-scan.md.

2. With cookbook (declarative, recommended)

basile scan --recipe cookbook.yaml
basile scan --recipe cookbook.yaml --auto-install   # install missing tools at preflight
basile scan --recipe cookbook.yaml --skip-preflight # bypass tool check

See docs/examples/multistack-cookbook.md.

3. Single scanner

basile scan --target . --scanners gitleaks
basile scan --url https://example.com --scanners lighthouse

See docs/examples/single-scanner.md.


Scanners by stack

| Stack | Scanners | |-------|----------| | PHP / Symfony | phpstan, phpcs, composer-audit, semgrep, bearer, gitleaks, trivy, cloc | | WordPress | wpscan, gitleaks, trivy | | TypeScript / React | eslint, tsc, knip, madge, semgrep, bearer, gitleaks, trivy, cloc | | Node.js | eslint, tsc, depcheck, npm-audit, semgrep, bearer, gitleaks, trivy | | Production URL | lighthouse, pa11y, zap-baseline, nuclei, headers, ssllabs-scan, testssl | | Recon / EASM | subfinder, wafw00f-lite, attack-surface | | Multi / cross-cutting | semgrep, bearer, gitleaks, trivy, cloc |

Detailed catalog (role, options): docs/scanners.md.


Scanners by execution mode

| Mode | Scanners | |------|----------| | Local (system binary) | eslint, tsc, knip, depcheck, npm-audit, madge, semgrep, bearer, gitleaks, cloc, lighthouse, pa11y, headers, ssllabs-scan, testssl | | Docker (auto-pulled image) | phpstan, phpcs, composer-audit, wpscan, zap-baseline | | Hybrid (execHybrid: local then Docker fallback) | trivy, nuclei |

basile doctor reports in real time what's available locally vs through Docker.


Cookbook YAML

Minimal example:

name: audit-client-x
output: ./reports/{{date}}-{{name}}
parallel: 4

targets:
  - id: api
    type: code
    path: ./apps/api
    stacks: [php, symfony]
    scanners: [phpstan, phpcs, composer-audit, semgrep, bearer]

  - id: prod
    type: url
    url: https://app.client.fr
    scanners: [lighthouse, pa11y, zap-baseline, headers, ssllabs-scan]

report:
  formats: [md, pdf]
  template: executive       # executive | technical | security
  group_by: [target, severity]
  min_severity: low

Full annotated cookbook: docs/examples/multistack-cookbook.md.


Batched setup

Missing tools grouped by package manager (1 brew install A B C, 1 npm i -g X Y Z, parallel Docker pulls).

basile setup --stack url --yes                  # everything for URL audit
basile setup --stack php,symfony                # PHP + Symfony
basile setup --category dast --yes              # all DAST tools
basile setup --all --yes                        # entire registry
basile setup --recipe cookbook.yaml             # only what recipe needs
basile setup --all --docker-concurrency 5       # cap docker parallelism

Filters: --stack (php, symfony, wordpress, typescript, react, nodejs, url) | --category (security, quality, performance, a11y, deps, secrets, privacy, sast, dast, lint).


Output

reports/<run>/
├── raw/*.json              # raw output per scanner
├── findings.ndjson         # normalized findings
├── meta.json               # run metadata
├── report.md               # Markdown report
└── report.pdf              # if pdf in report.formats

Re-render without re-scanning:

basile report --from reports/2026-05-06-audit-client-x --pdf
basile report --from reports/<run> --template technical

UI modes (--ui): pretty (TTY), plain (CI), json (NDJSON pipe), quiet.


Further reading