jscpd vs semdup
jscpd
jscpd.devsemdup
github.comSide by side
| Figure | jscpd | semdup |
|---|---|---|
| Price from | Free | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | Yes | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 2 | 0 |
| Spec score · Code Clone Detection Tools | 8.6 (#2) | 6.9 (#21) |
| Languages | The site says jscpd supports 224 languages. | It supports Rust, TypeScript, Python, Go, Java, C#, PHP, Ruby, and C/C++, with a note that heavily macro-based C/C++ may perform less well. |
| License | The project and its published packages use the permissive MIT license. | The project is available under either the MIT or Apache-2.0 license. |
| Purpose | jscpd scans source code for duplicate code and can fail a build when duplication exceeds a configured threshold. | Semdup detects near-duplicate code by comparing semantic meanings rather than token sequences. |
Plans
In their own words
jscpd
jscpd is a free, open-source tool for finding repeated code in repositories. It can fail a build when duplication exceeds a configured threshold, making it usable in local development and CI. The project says it supports 224 languages. Exact clones are detected by default, while renamed, near-miss, and semantic clone checks are optional; semantic detection is experimental.
Version 5 is available as a self-contained native binary that does not need Node.js, with direct macOS, Linux, and Windows binaries for x64 and ARM64. Reports include HTML, JSON, XML, README badges, SARIF, CodeClimate, and OpenMetrics. The GitHub Action can enforce a threshold and upload SARIF for GitHub Code Scanning, and GitLab CI reporters are documented. Developers can also use pre-commit hooks or Docker. A dashboard summarizes project size, duplication, complexity, dead code, and a health score. Dead-code analysis covers JavaScript, TypeScript, and Python, plus Rust when compiler diagnostics are supplied.