Library public API snapshot testing for runtime exports and type declarations.
tsnapi captures snapshots of a TypeScript library's public runtime exports and type declarations into readable files for detecting unintended API changes during development.
How It Works
While building a helpful tool that others use, you learn about a simple way to capture and protect its public features exactly as they are.
You easily bring tsnapi into your workspace so it watches your tool's outer layer.
You prepare your tool once, and tsnapi creates clear pictures of what it offers to users β both how it works and its shapes.
You keep these picture files right with your code, like a photo album of your tool's promises.
Each time you update your tool, tsnapi compares the new pictures to the old ones and alerts you if something shifted unexpectedly.
You look at the differences, decide if they're good, and refresh the pictures to match when ready.
Now your tool's public side stays reliable, so users always know what to expect without surprises.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.