ReScript is a statically typed programming language and compiler designed to transform type-safe source code into efficient, human-readable JavaScript. It functions as a transpiler that enforces data consistency and prevents runtime errors through static type analysis for both web and server applications.
The project distinguishes itself as an incremental build system that analyzes dependency graphs to recompile only modified files and their dependents. It includes a JSX compatible compiler for building user interfaces and provides a framework for bridging type-safe code with existing JavaScript libraries through consistent interfaces for functions and types.
Broad capabilities include the generation of TypeScript definitions, dead-code elimination via scoped annotations, and the provision of code intelligence such as autocomplete and jump-to-definition. The system also supports build-time feature flags, asynchronous logic handling, and automated source code formatting.