Download Latest Version codegraph-darwin-arm64.tar.gz (46.6 MB)
Email in envelope

Get an email when there's a new version of CodeGraph

Home / v0.9.0
Name Modified Size InfoDownloads / Week
Parent folder
codegraph-win32-x64.zip 2026-05-21 42.4 MB
codegraph-darwin-arm64.tar.gz 2026-05-21 46.5 MB
codegraph-darwin-x64.tar.gz 2026-05-21 47.7 MB
codegraph-linux-arm64.tar.gz 2026-05-21 51.4 MB
codegraph-linux-x64.tar.gz 2026-05-21 51.8 MB
codegraph-win32-arm64.zip 2026-05-21 38.5 MB
README.md 2026-05-21 4.4 kB
v0.9.0 source code.tar.gz 2026-05-21 1.1 MB
v0.9.0 source code.zip 2026-05-21 1.2 MB
Totals: 9 Items   280.7 MB 0

0.9.0 - 2026-05-21

πŸŽ‰ Self-contained: CodeGraph bundles its own runtime β€” install anywhere, on any Node (or none)

No more database is locked. No more native build failures. No more "WASM fallback active."

CodeGraph used to need better-sqlite3, a native module compiled against your exact Node version. When that build failed (common on Windows and locked-down machines) it silently dropped to a slow WASM SQLite build with no WAL β€” the root cause of the intermittent database is locked errors on concurrent MCP tool calls (#238). That entire class of problem is gone: CodeGraph now ships a self-contained Node runtime and uses Node's built-in node:sqlite (real SQLite, full WAL + FTS5).

  • βœ… Zero native compilation β€” nothing to build, ever; nothing to rebuild when Node changes.
  • βœ… Runs on any Node version β€” or with no Node at all. Install via the standalone installers with no Node present, or keep using npm/npx on any version (your Node only launches the bundled runtime).
  • βœ… database is locked fixed at the root β€” real WAL means readers never block on a writer.
  • ⚑ 5–10Γ— faster than the old WASM fallback for anyone who was stuck on it.

    :::bash

    macOS / Linux β€” no Node required

    curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh

    Windows (PowerShell) β€” no Node required

    irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex

    or, if you have Node (any version):

    npm i -g @colbymchenry/codegraph

Added

  • Standalone installers β€” one-line install with no Node.js required: curl -fsSL .../install.sh | sh (macOS/Linux) and irm .../install.ps1 | iex (Windows). They fetch the matching self-contained bundle from GitHub Releases and put codegraph on your PATH.
  • Lua: CodeGraph now indexes Lua (.lua) β€” functions, methods (table t.f and t:m definitions become methods with a t::f receiver-qualified name), local variables, require(...) imports, and the call edges between them. Querying a Lua project (Neovim plugins, Kong, OpenResty, game code) now surfaces its modules, methods, and call graph.
  • Luau (#232): CodeGraph now indexes Luau (.luau), Roblox's typed superset of Lua β€” everything Lua extracts, plus type / export type aliases, typed function signatures, generics, and Roblox instance-path require(script.Parent.X) imports.

Changed

  • SQLite backend is now Node's built-in node:sqlite (real SQLite, WAL + FTS5), shipped inside a bundled Node runtime. This fixes the concurrent-read database is locked errors (#238) at the root and removes the native build step entirely.
  • npm i -g / npx now install a self-contained bundle. The main package is a tiny shim; the runtime ships as per-platform optionalDependencies, so the install works on any Node version (your Node only launches the bundle).
  • codegraph status now reports the effective journal mode (wal vs not), so a database is locked report is triageable at a glance.

Removed

  • better-sqlite3 (optional native dependency) and node-sqlite3-wasm (WASM fallback) β€” along with the native-build banner, the WASM fallback path, and the no-WAL lock retries they required. The dependency tree now has zero native addons.

Fixed

  • Installer: re-running codegraph install now removes the broken auto-sync hooks that pre-0.8 versions wrote to Claude Code's settings.json. Those builds added a Stop β†’ codegraph sync-if-dirty hook (and a PostToolUse β†’ codegraph mark-dirty partner); both subcommands were later removed from the CLI, so Claude Code reported Stop hook error: ... unknown command 'sync-if-dirty' on every turn. The cleanup is surgical β€” only codegraph's own hook entries are stripped, so unrelated hooks sharing the same file or event (e.g. a GitKraken gk ai hook run hook) are left untouched β€” and it also runs on uninstall, so the npm preuninstall step fully reverses a legacy install. Re-run codegraph install once on an affected machine to clear the error.
Source: README.md, updated 2026-05-21