codeindex
v0.1.0
Published
Persistent structural knowledge graph for codebases — MCP tools + CLI tree explorer
Maintainers
Readme
codeindex — npx wrapper
Run codeindex without installing Go:
npx codeindex init
npx codeindex serve
npx codeindex reindex
npx codeindex statusHow it works
On first run the wrapper downloads the pre-built Go binary for your
platform from the GitHub releases page and caches it in
node_modules/codeindex/.bin/. Subsequent invocations skip the download
and execute the cached binary directly.
Supported platforms:
| OS | Architectures | |---------|--------------------| | macOS | arm64, amd64 (x64) | | Linux | arm64, amd64 (x64) | | Windows | arm64, amd64 (x64) |
Prerequisites
codeindex requires ast-grep
to be installed and available in your PATH:
# macOS
brew install ast-grep
# Cargo
cargo install ast-grep --locked
# npm
npm install -g @ast-grep/cliCached binary location
<npx cache>/codeindex/node_modules/codeindex/.bin/codeindexThe binary is tied to the package version. Upgrading the package version will download a fresh binary.
Manual install (alternative)
go install github.com/01x-in/codeindex/cmd/codeindex@latest