Hacker News new | ask | show | jobs
Show HN: Detect Drift in TypeScript codebases (github.com)
1 points by AmiteK 95 days ago
I’ve been building LogicStamp Context, an open-source CLI that analyzes TypeScript codebases using the TypeScript AST and compiles them into deterministic JSON “contracts”.

These describe components, props, hooks, routes, API signatures and dependencies in a structured way.

The goal is to make codebase structure observable and diffable, especially as codebases grow and change.

You can use it to:

• detect drift during refactors

• generate compact machine-readable context for AI tools

• watch mode that detects structural changes while you code

The latest release also adds git baseline comparison:

stamp context compare --baseline git:main

This generates contracts for both versions and produces a structural diff.

There’s also an MCP server (logicstamp-mcp) so agents like Cursor or Claude can query architectural context instead of raw source files.

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

Docs: https://logicstamp.dev

Curious how others track structural changes in large TypeScript codebases.