dsummersl/treepeat
Code similarity detection using treesitter
About the project
A Python tool for finding duplicate, near-duplicate, and structurally similar code using tree-sitter and locality-sensitive hashing. Supports multiple languages and configurable normalization rulesets.
Useful for
- Find exact duplicate functions in a codebase before refactoring
- Set up duplicate code checks in CI using SARIF output
- Compare structurally similar code blocks with different variable names
README summarized by DeepSeek V4.1 Flash. Details may be inaccurate.
Why it’s trending
- 12 stars so far today, about 14 expected by the end of the day. The usual pace is 0 per day, so that's 14× as much.
- Hacker News: “Show HN: Treepeat – Code similarity detection using Tree-sitter” — 18 points, 2 days ago.
Stars per day
Bars are daily stars, the line is the usual pace. Red marks spike days.
Numbers
- Total stars
- 15
- Today
- 12 · ≈ 14 by evening
- Forks
- 2
- Issues and pull requests
- 107
- Watchers
- 0
- Language
- Python
- License
- Apache-2.0
- Latest release
- v0.9.0 · September 22, 2026
- Created
- November 11, 2025
- Last push
- September 22, 2026
Star trust
Growth looks organic: forks and discussion are in line with active projects, and stars arrive unevenly, the way people give them.
These are heuristics, not a verdict: we judge by the repository’s behavior, not by a list of stargazers.
Hacker News discussions
- Show HN: Treepeat – Code similarity detection using Tree-sitter18 points, September 22, 2026
Spotted in
- September 24, 2026Spotted on Hacker News
More in this category
-
7.8
dream-num/univer
Open-source TypeScript SDK for embedding spreadsheet, document, and presentation editors into your own product, with a plugin architecture, Canvas rendering, a formula engine, and one Facade API for browser and…
-
6.1
BridgeDruidCompress/TauriKit
A UI component kit for Rust desktop applications built with Tauri, offering a native look and cross-platform support. Aimed at developers who want ready-made interface elements instead of building them from scratch.
-
6.1
BufferHerald/WarpLite
Cross-platform GPU-accelerated terminal with a built-in shell, written in Rust. Offers a fast and lightweight desktop command-line experience.
-
6.1
centralcashierboost/ZedLite
Lightweight cross-platform code editor built with Rust, offering a native interface and downloadable builds from Releases. Aimed at developers wanting a fast, minimal editor.
-
6.1
BricklayerSurmount/DockForge
Flexible dock and panel layout system for desktop apps written in Rust, letting users arrange windows and panels in a workspace. Aimed at desktop GUI developers who need a customizable layout.
-
6.1
CassowaryDevelop/HelixEdit
Modal code editor with LSP support written in Rust. Offers a native desktop experience, cross-platform support, and a lightweight interface.