Resilient: Open-Source JS Static Analysis Tool That Treats Code as Its Own Contract
Resilient is an open-source static analysis tool and disciplined dialect of standard JavaScript that treats executable code itself as the source of truth rather than relying on separate annotations or type declarations. The tool reads function signatures, destructured defaults, return paths, callbacks, and module relationships to build a contract model that any tool can query. Currently integrated with ESLint, Resilient reports contradictions across a project's code graph before they become runtime errors. Unlike parallel annotation systems that require developers to manually keep two descriptions in sync, Resilient derives contracts directly from what the code already expresses. The project analyzes its own source code, making it both a demonstration of the method and a working example of the discipline it promotes.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in