#test-case-reduction #javascript #program-reducer #minimization

app treereduce-javascript

Fast, parallel, syntax-aware program reducer for JavaScript

7 releases

0.4.1 Dec 13, 2025
0.4.0 Oct 25, 2025
0.3.1 Dec 23, 2024
0.3.0 Jul 17, 2023
0.2.1 Mar 21, 2023

#1080 in Web programming

MIT license

160KB
1.5K SLoC

treereduce

treereduce is a fast, parallel, syntax-aware test case reducer based on tree-sitter grammars. In other words, treereduce helps you shrink structured data (especially source code) while maintaining some property of interest, for example, that the program causes a compiler crash or outputs a certain message. See the documentation for more information. Documentation is also available online.

Dependencies

~15–24MB
~430K SLoC