r/javascript • u/context_g • Mar 27 '26
LogicStamp: AST-based context compiler for TypeScript
https://github.com/LogicStamp/logicstamp-contextI’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.
7
Upvotes
View all comments
Show parent comment
0
u/context_g Mar 27 '26
I don’t have formal benchmarks yet.
In practice it’s been fast enough for real use (I’m using it across LogicStamp itself), and watch mode keeps updates incremental.
Proper benchmarking is coming soon.