Show HN

Treepeat

by @91awebsi

Treepeat – Code similarity detection using Tree-sitter treepeat is a tool that finds similarities in your codebase. Find duplicate code blocks meaningful to the language (classes/functions), not just lines. Find near-duplicates: ignore whitespace, strings, high level AST nodes such as function and names. Find structurally similar code: anonymize identifiers, constants, etc. Pull requests welcome: This is very much an proof of concept - I'm happy with it, but I haven't supported very many languages at present. Languages supported: astro, bash, css, go, html, javascript, lua, markdown (plus codeblocks), python, sql, typescript, java, kotlin, rust, yaml

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app