antfu

antfu/tsnapi

Library public API snapshot testing for runtime exports and type declarations.

TypeScript
190
3
MIT License

tsnapi is a developer‑focused tool that captures a library’s public contract—both its runtime exports and TypeScript declaration files—into human‑readable snapshot files stored alongside the code. Integrated as a Rolldown/tsdown plugin, a CLI, or a Vitest helper, it automatically flags unintended API changes (or confirms intentional ones via an update flag), making it ideal for maintainers of JavaScript/TypeScript packages and monorepos who want reliable regression testing of their public API surface.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of antfu/tsnapi

Account's avatar
Shared Vitest utility functions
Account's avatar
Simple yet powerful framework for building command-line apps.
Account's avatar
Modify strings, generate sourcemaps
Account's avatar
Oxc Parser Node API
Account's avatar
A fast and minimal alternative to globby and fast-glob
Account's avatar
Anthony's ESLint config
Account's avatar
Use the right package manager
Account's avatar
Types for Oxc AST nodes
Account's avatar
TypeScript definitions for node
Account's avatar
Bump version, commit changes, tag, and push to Git
Account's avatar
Lint files staged by git
Account's avatar
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
Account's avatar
A simple, zero dependency tool for setting up git hooks for small projects
Account's avatar
The Elegant Bundler for Libraries
Account's avatar
TypeScript is a language for application scale JavaScript development
Account's avatar
Next generation testing framework powered by Vite

Support the repos that depend on this repository

Top contributors

antfu's profile
antfu
54 contributions
jycouet's profile
jycouet
3 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet