OrphaNode
OrphaNode is accuracy-first reachability analysis for JavaScript and TypeScript projects: find the code that nothing can reach anymore, with evidence.
The orphanode crate ships both the native CLI and the Rust analysis library
it is built on.
Install the CLI
It supports automatic project discovery, exact caller-supplied file universes, human/JSON/SARIF output, explanations, configuration checks, cache management, and explicitly selected safe-fix previews.
See the complete command guide
for every option and example. The command-line binary is also distributed
through npm (npm install -g orphanode) with prebuilt binaries for common
platforms.
Use it as a library
use ;
let request = new;
let report = scan_project?;
It provides automatic project discovery and exact-universe APIs for reachability analysis. Results include evidence and explicit coverage diagnostics; incomplete analysis never becomes unsafe cleanup advice. API documentation is available on docs.rs. Architecture and contributor guidance are in the repository's DEVELOPMENT.md.
Licensed under either the Apache License 2.0 or MIT License, at your option.