@rensoai/code-graph
v1.4.2
Published
Dependency graph analyzer for code, tests, docs, and policy surfaces. Bundles the prebuilt code_graph + code_graph-mcp binaries via per-platform sub-packages.
Maintainers
Readme
npm distribution wrapper
This package is still published for distribution compatibility, but customer-facing install docs live at https://cg.renso.ai/docs#install and document only the curl/script installer.
Uses the esbuild/swc/turbo platform-package pattern: a meta
package @rensoai/code-graph declares per-platform sub-packages as
optionalDependencies. npm picks the right one at install time. No
postinstall network call.
Files in this directory
package.json— meta package manifest (@rensoai/code-graph)bin/code_graph.js,bin/code_graph-mcp.js— tiny Node shims that resolve the matching platform sub-package and spawn its binaryplatforms/— per-platform sub-package templates, generated at release time
Sub-packages published
| Sub-package name | Binary target |
|-----------------------------------|--------------------------|
| @rensoai/code-graph-linux-x64-gnu | x86_64-unknown-linux-gnu |
| @rensoai/code-graph-linux-arm64-gnu | aarch64-unknown-linux-gnu |
| @rensoai/code-graph-darwin-x64 | x86_64-apple-darwin |
| @rensoai/code-graph-darwin-arm64 | aarch64-apple-darwin |
| @rensoai/code-graph-win32-x64 | x86_64-pc-windows-msvc |
Publish order
The publish-npm job in .github/workflows/release.yml:
- Templates each platform
package.jsonwith the current version. - Copies the matching binary into each platform sub-package directory.
- Publishes all five platform sub-packages (
npm publisheach). - Waits 60 seconds for registry CDN propagation.
- Publishes the meta package.
Order matters. Publishing the meta package before platform sub-packages propagate causes warm-cache install failures.
