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

spekra

v1.1.0

Published

Unified 60-second 12-engine operational reliability and compliance audit CLI

Readme

Spekra Doctor 🩺

Unified 60-Second Operational Reliability & Compliance Audit CLI
Scan codebases and cloud architectures across 8 critical reliability vectors with zero setup.

Version Zero Dependencies Socket.dev Health License Reliability Standards


⚡ Instant Quickstart

Run a full 8-vector reliability audit directly in any project folder without installing anything:

npx spekra doctor

Or install globally:

npm install -g spekra
spekra doctor

Share your experience

Tried Spekra Doctor? Share honest feedback. Tell us your version, what worked, what was confusing and what would make it useful again. Positive and negative feedback are both welcome. Review reports before sharing; do not post credentials, private code or customer data.

📊 What Spekra Doctor Audits

In under 500 milliseconds, Spekra Doctor evaluates your application against 8 operational failure modes and compliance standards:

================================================================================
       🩺  SPEKRA RELIABILITY DOCTOR — UNIFIED 8-ENGINE AUDIT SCANNER           
================================================================================
📁 Target Directory:  ./my-project
⏱️  Duration:          380ms
📄 Files Inspected:   4,820
🔐 Cryptographic Seal: sha256:8ebfc0a2679531975a028c90...
--------------------------------------------------------------------------------

📊 COMPOSITE SPEKRA RELIABILITY INDEX: 88 / 100 [B (SOUND / LOW RISK)]

RELIABILITY VECTORS BREAKDOWN:
--------------------------------------------------------------------------------
⚠️  [RestoreProof       ] Disaster Recovery & RTO Verification        65/100
✅ [StreamRepair       ] Stream Pipeline Parity & Replay            100/100
✅ [ExceptionLease     ] Privileged Exception Leases & Fencing      100/100
✅ [TenantPorter       ] Multi-Tenant Boundary & Data Portability    80/100
✅ [MigrationRehearsal ] Zero-Downtime Schema Migrations & Locks     85/100
✅ [RetireRight        ] Infrastructure Decommission & Zombie Cleanup 100/100
✅ [OutcomeReplay      ] Event-to-Outcome Reconciliation & Idempotency 100/100
⚠️  [RotationProof      ] Zero-Downtime Credential & Secret Rotation  75/100
--------------------------------------------------------------------------------

🛠️  PRIORITY REMEDIATION PLAYBOOK:
  → RestoreProof (65/100): npx restoreproof init
    Installs automated ephemeral sandbox recovery rehearsals and SOC 2 CC9.1 compliance proofs.
  → RotationProof (75/100): npx rotationproof scan
    Orchestrates dual-phase credential rotation and validates workload adoption.

================================================================================

🛡️ The 8 Reliability Vectors

| Vector | Specialist Engine | Compliance Scope | Architectural Risks Checked | | :--- | :--- | :--- | :--- | | 1. Disaster Recovery & RTO | RestoreProof | SOC 2 CC9.1 / ISO 27001 A.12.3.1 | Unrehearsed backups, sequence desynchronization, live PII in dumps, RTO breach hazards | | 2. Stream & Queue Parity | StreamRepair | SOC 2 CC7.2 / ISO 27001 A.12.1.2 | Silent Kafka/CDC partition divergence, unacknowledged queue drops, consumer poison pills | | 3. Privilege Leases & Fencing | ExceptionLease | SOC 2 CC6.3 / ISO 27001 A.9.2.3 | Permanent wildcard ingress (0.0.0.0/0) on ports 22/3389/5432, stale emergency access | | 4. Multi-Tenant Boundaries | TenantPorter | GDPR Article 20 / SOC 2 CC6.6 | Cross-tenant database bleed, missing tenant discriminator foreign keys, unmasked tokens | | 5. Zero-Downtime Schema Migrations | MigrationRehearsal | SOC 2 CC8.1 / ISO 27001 A.14.2.2 | Table-locking CREATE INDEX without CONCURRENTLY, destructive DDL lock timeouts | | 6. Infrastructure Decommissioning | RetireRight | SOC 2 CC6.5 / ISO 27001 A.11.2.7 | Orphan cloud volumes, dangling DNS CNAMEs, privileged container socket mounts | | 7. Event-to-Outcome Reconciliation | OutcomeReplay | SOC 2 CC7.4 / ISO 27001 A.12.4.1 | Webhooks missing raw HMAC verification, unverified async jobs, missing idempotency keys | | 8. Credential & Secret Rotation | RotationProof | SOC 2 CC6.1 / ISO 27001 A.9.4.3 | Hardcoded API keys, database connection pools lacking connection recycling (maxLifetime) |


🛠️ CLI Options & Usage

Use npx spekra doctor or an installed spekra doctor. In a checkout, use npm run spekra -- doctor; npm spekra doctor is not an npm command. Invalid options, unreadable scan directories, and thresholds outside 0–100 fail with a nonzero exit code.

# From a repository checkout
npm run spekra -- doctor
npm run doctor -- --json

# Show all available options
npx spekra doctor --help

# Scan a specific directory
npx spekra doctor --dir ./services/billing

# List engines or run only selected checks
npx spekra doctor --list-engines
npx spekra doctor --engines RotationProof,EnvProof --fail-on high

# Show individual finding titles and severity levels
npx spekra doctor --verbose

# Output machine-readable JSON (ideal for CI/CD pipelines)
npx spekra doctor --json

# Output GitHub PR-ready Markdown report
npx spekra doctor --markdown

# Generate a self-contained interactive HTML audit report (radial score gauge & remediation cards)
npx spekra doctor --html report.html
# or save to the default output path:
npx spekra doctor --report

# Save the audit report to a file
npx spekra doctor --out audit-report.json --json

# Enforce a minimum score threshold (exits with code 1 if score < threshold)
npx spekra doctor --min-score 85

# Fail on high or critical findings, independently of the overall score
npx spekra doctor --min-score 85 --fail-on high

Save team defaults in .spekra-doctor.json in the scanned directory:

{
  "minScore": 85,
  "failOn": "high",
  "engines": ["RotationProof", "EnvProof"],
  "verbose": true
}

Doctor automatically loads this file from the --dir target (or the current directory). Use --config ./ci/doctor.json for an explicit file, or --no-config to skip discovery. Explicit config paths resolve from the current working directory. CLI values override saved defaults. Invalid configuration fails before scanning; configuration never executes code.

With --engines, scores, findings, remediation, and gates reflect only the selected engines; omitted engines are not assessed. Names are case-insensitive and duplicates run once. The default still runs all 12 engines.

JSON reports include findingsSummary counts by severity, the configured failOn gate, and failureReasons. The score and severity gates must both pass. These are static heuristic findings; review them before treating them as verified security or compliance evidence.

🚀 CI/CD Integration (GitHub Actions)

Add Spekra Doctor as an automated pull request reliability gate in .github/workflows/reliability.yml:

Option A: Using the Composite GitHub Action

name: Operational Reliability Gate

on:
  pull_request:
    branches: [main]

jobs:
  spekra-audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Spekra Doctor Audit
        uses: subash-thiruppathy/pulseOps@main
        with:
          min-score: '80'
          verbose: 'true'

Option B: Using npx spekra doctor directly

      - name: Run Spekra Doctor
        run: npx spekra doctor --min-score 80 --verbose

🌐 The Spekra Ecosystem

Spekra provides an integrated suite of autonomous reliability engines and cloud operations tooling alongside focused collaboration and planning applications:

Engineering Operations & Reliability (12 Products)

People & Coordination (12 Products)

For the enterprise observability platform, full product directory, documentation, and cloud console, visit spekra.in and spekra.in/products/.


📄 License

Licensed under the Apache-2.0 License.