
safely install npm packages by auditing them pre-install stage
This directory contains comprehensive documentation for the NPQ (Node Package Quality) security auditing tool.
optional-features.mdConfiguration and usage of optional security features, including recent improvements and bug fixes.
age.marshall.mdDetailed documentation of the Age Marshall security component that validates package age and maturity.
The feature/ directory contains detailed documentation for specific features and implementations:
test-coverage-improvements.md - Comprehensive test coverage enhancements that improved overall coverage from 84.4% to 93.39%signature-verification-fix.md - Critical bug fix for signature verification with version ranges (e.g., )@angular/common@^20.2.4auto-continue.md - Documentation for the auto-continue feature that streamlines package installation workflowsexit-codes.md - Reference for npq and npq-hero process exit behaviorjson-output.md - Versioned, machine-readable audit-only output for CI and automationmalicious-package.md - Documentation for known-malicious package detection through Snyk/OSV datapacote-dependency-reduction.md - Implementation summary for optional pacote dependency reductionfeature/Marshall components are the core security validation modules in NPQ. Each marshall focuses on a specific security concern:
age.marshall.md) - Package age and maturity validationsignature-verification-fix.md)When adding new features or making significant changes:
feature/ directory| Topic | File | Purpose |
|---|---|---|
| Optional Features | optional-features.md | Feature configuration and recent improvements |
| Age Validation | age.marshall.md | Package age and maturity security checks |
| Test Coverage | feature/test-coverage-improvements.md | Recent test suite enhancements |
| Signature Verification | feature/signature-verification-fix.md | Version range bug fix and validation |
| Auto-Continue | feature/auto-continue.md | Automated installation workflow |
| JSON Audit Output | feature/json-output.md | Versioned machine-readable audit results for CI |
| Exit Codes | feature/exit-codes.md | CLI and package-manager passthrough exit behavior |
| Malicious Packages | feature/malicious-package.md | Known-malicious package detection and reporting |
| Dependency Reduction | feature/pacote-dependency-reduction.md | Optional dependency management |
Non-interactive install safety - approved design for fail-closed non-TTY installs with explicit automation and coding-agent opt-ins.
Non-interactive install safety - test-first plan for fail-closed non-TTY install routing and coding-agent passthrough.
Shell-free package manager launching - approved design for forwarding package-manager arguments without shell command reconstruction.
Custom registry support - approved design for npm-compatible Artifactory and private registry support.
Coding-agent JSON detection - approved design for automatically selecting JSON audit mode in coding-agent environments.
JSON audit output - approved design for versioned, non-interactive machine-readable audit results.
Expired-domain maintainer identity warnings - approved design for attributable expired-domain warnings.
Expired-domain resolved version - design for resolving the exact dependency version for expired-domain checks.
npq and npq-hero.