Back to browse
GitHub Repository

A Context Compiler for TypeScript. Deterministic, diffable architectural contracts and dependency graphs for AI coding workflows.

86 starsTypeScript

Catching breaking interface changes in TypeScript refactors (AST-based)

by AmiteK·Feb 21, 2026·2 points·0 comments

AI Analysis

●●SolidBig BrainNiche Gem

TypeScript AST contracts feed LLMs correct props; stops AI from hallucinating missing fields.

Strengths
  • Deterministic output and watch mode solve real pain in AI-assisted refactors (Copilot/Cursor hallucinating props)
  • MCP integration makes it portable across Claude, Cursor, Copilot—reduces vendor lock-in
  • Supports multiple frameworks (React, Next.js, Vue, Express, NestJS) with framework-aware parsing
Weaknesses
  • Solves a problem primarily visible at scale; small projects won't benefit from architectural drift detection
  • Direct competitor to TypeScript's built-in type system + tsconfig strict mode for many use cases
Target Audience

TypeScript developers, large codebase maintainers, AI-assisted coding workflows

Similar To

Nx dependency graph analysis · TypeScript compiler API (tsc --listFilesOnly) · Architectural linting tools (Depcruise, Madge)

Post Description

I built an open source CLI that analyzes TypeScript codebases using the TypeScript AST (via ts-morph) and extracts structured architectural contracts and dependency graphs.

The goal is to create a diffable architectural map of a codebase and detect breaking interface changes during refactors.

It includes a watch mode for incremental rebuilds and a strict mode that flags removed props, functions, or contracts.

Fully local, deterministic output. No code modification.

I’d appreciate technical feedback from anyone working on large TypeScript codebases.

Repo: https://github.com/LogicStamp/logicstamp-context Docs: https://logicstamp.dev/docs

Similar Projects

AccessLint – Static accessibility analysis for iOS/Swift

It reads your Swift sources and flags accessibility problems with exact line numbers, suggested fixes, and WCAG references — handy for catching issues in CI or locally via a Homebrew-installable CLI. Practical execution is clear (SwiftUI/UIKit rules, Xcode/CI output), but the rule set is small and several checks are behind a paywall, so it's a strong team tool rather than a category-redefining product.

Niche GemSolve My Problem
synctek
103mo ago