Data/GitHub/Tool
jscpd
by kucherenko·Last observed 2026-10-27
★ 6,452 stars⑂ 271 forks
jscpd is a self-contained Rust command-line tool for code analysis. It detects exact, renamed, and near-miss clones through language-aware tokenization, and can also find dead code, rank complexity, and track duplication and health over Git history. It is available as a CLI and built-in MCP server.
Useful for
- Run jscpd on a repository to find duplicated blocks, then use its baseline options to gate CI on new duplication only.
Key features
- Its built-in MCP server lets an AI assistant check snippets against a codebase, list a file’s clones, and compare two folders function by function.
- The dead-code option finds unused files, exports, declarations, and imports in JavaScript, TypeScript, and Python.
Requirements & limitations
- The Rust engine ships as a self-contained binary with no runtime required; it can be run once through npx when Node.js is available.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.