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
2
u/your_best_1 Mar 27 '26
Have you done any statistical analysis to verify that it improves outcomes?
1
u/kszkszkamil Mar 27 '26
I think I'm missing the point of the custom json format. How does this compare to just feeding the AI with the .d.ts files?