loctree
v0.8.16
Published
Structural code intelligence for AI agents. Dead exports, circular imports, dependency graphs, reports, and MCP-ready analysis.
Maintainers
Readme
loctree
Structural code intelligence for AI agents.
This package is the canonical npm distribution surface for Loctree. It installs the matching platform package, which then downloads the corresponding GitHub release asset for your machine.
Supported npm targets
- macOS Apple Silicon:
@loctree/darwin-arm64 - Linux x64 glibc:
@loctree/linux-x64-gnu - Windows x64:
@loctree/win32-x64-msvc
We only claim the targets CI actually builds today.
Install
npm install loctree
# or
pnpm add loctreeFor global CLI usage:
npm install -g loctreeCLI examples
npx loctree .
npx loctree health
npx loctree slice src/App.tsx --consumers
npx loctree report --serve --port 4173What you get
- dependency-aware structural analysis
- dead code and cycle signals
- report generation
- Tauri bridge analysis
- MCP-ready artifacts for AI workflows
Troubleshooting
If installation fails:
- verify the matching GitHub release assets exist
- ensure your package manager did not disable
optionalDependencies - fall back to
cargo install loctree
Links
- Repo: https://github.com/Loctree/Loctree
- Docs: https://docs.rs/loctree
- Website: https://loct.io
