r/javascript • • Mar 27 '26

LogicStamp: AST-based context compiler for TypeScript

https://github.com/LogicStamp/logicstamp-context

I’m building an open-source CLI that compiles TypeScript codebases into deterministic, structured context bundles.

It uses the TypeScript compiler API (via ts-morph) to parse the AST and emit JSON representing components, props, hooks, and dependency relationships.

Key properties:

  • Deterministic output (same code → same structure)
  • Strict watch mode with breaking change detection
  • Diffable architectural contracts
  • Compact JSON bundles for tooling

Curious how others deal with structural changes in larger TypeScript codebases.

Repo: https://github.com/LogicStamp/logicstamp-context

7 Upvotes

5 comments sorted by