Context
We use CodeGraph as an embedded library inside an Electron app (tech-cc-hub), calling the programmatic API directly rather than via CLI or MCP. Our current integration is on 0.8.0.
Problem
We tried upgrading to 0.9.3 and found:
-
@colbymchenry/codegraph@0.9.3 is now a thin CLI shim. No TypeScript types (types: null), no JS entry point (main: null, exports: null), and no internal modules (dist/db/, dist/config.js, dist/utils.js).
-
The actual code lives in the platform-specific optional dependency (e.g. @colbymchenry/codegraph-darwin-arm64/lib/) which does work with require(), but the main package doesn't re-export anything.
-
require("@colbymchenry/codegraph") fails with MODULE_NOT_FOUND at runtime.
-
CodeGraphConfig type and config.js module were removed entirely.
-
SQLite backend changed to node:sqlite (needs Node >= 22.5). Unclear if Electron's bundled Node supports this.
Questions
-
Is a programmatic/embedded SDK API planned for the 0.9.x line, or is CLI+MCP the only intended usage going forward?
-
If SDK support is planned, rough timeline?
-
For node:sqlite — any fallback planned for environments without it (e.g. Electron)?
-
Would you accept a PR adding main/types/exports to the main package to re-export the platform package's public API?
Our 0.8.0 usage
We use these exports directly:
CodeGraph class (constructor with db + queries + config)
initGrammars() / loadGrammarsForLanguages()
DatabaseConnection.open() / initialize()
QueryBuilder
validateConfig() / createDefaultConfig()
FileLock
Thanks for the great project! Happy to help with testing or PRs.
Context
We use CodeGraph as an embedded library inside an Electron app (tech-cc-hub), calling the programmatic API directly rather than via CLI or MCP. Our current integration is on 0.8.0.
Problem
We tried upgrading to 0.9.3 and found:
@colbymchenry/codegraph@0.9.3is now a thin CLI shim. No TypeScript types (types: null), no JS entry point (main: null,exports: null), and no internal modules (dist/db/,dist/config.js,dist/utils.js).The actual code lives in the platform-specific optional dependency (e.g.
@colbymchenry/codegraph-darwin-arm64/lib/) which does work withrequire(), but the main package doesn't re-export anything.require("@colbymchenry/codegraph")fails with MODULE_NOT_FOUND at runtime.CodeGraphConfigtype andconfig.jsmodule were removed entirely.SQLite backend changed to
node:sqlite(needs Node >= 22.5). Unclear if Electron's bundled Node supports this.Questions
Is a programmatic/embedded SDK API planned for the 0.9.x line, or is CLI+MCP the only intended usage going forward?
If SDK support is planned, rough timeline?
For
node:sqlite— any fallback planned for environments without it (e.g. Electron)?Would you accept a PR adding
main/types/exportsto the main package to re-export the platform package's public API?Our 0.8.0 usage
We use these exports directly:
CodeGraphclass (constructor with db + queries + config)initGrammars()/loadGrammarsForLanguages()DatabaseConnection.open()/initialize()QueryBuildervalidateConfig()/createDefaultConfig()FileLockThanks for the great project! Happy to help with testing or PRs.