Getting started
OptiPrune is a static code analyzer for TypeScript and JavaScript workspaces. It builds a graph from real entry points, package metadata, exports, dependencies, and project conventions, then returns findings with evidence and confidence.
Install the CLI
Section titled “Install the CLI”npm install --save-dev @optiprune/cliRun the current CLI entry point from the workspace root:
npx @optiprune/cli analyzeInstall Core for integrations
Section titled “Install Core for integrations”npm install @optiprune/coreUse Core directly when the integration needs a structured report, custom reporter, editor diagnostic, dashboard, or approval workflow.
Establish a safe baseline
Section titled “Establish a safe baseline”Start with an explicit entry point and a dry run. The command reports planned changes without modifying files:
npx @optiprune/cli analyze --entry src/index.ts --dry-runIf your application has several roots, repeat --entry or pass multiple patterns. Review high-confidence findings first, then add configuration for generated files, external contracts, and framework conventions.
Continue
Section titled “Continue”Read Quickstart for a five-minute workflow, Output for report formats, Configuration for schema-backed settings, and Headless Core API for programmatic integrations.