kucherenko

A copy/paste detector for programming source code supporting 224+ formats, with AI-ready reporting and MCP server, featuring a Rust engine 24-37x faster.

v5.4.3
Published at
18d ago
6,515
Stars
93,208
Download
Synced at
18d ago

Latest release

v5.4.3Nov 8, 2026, 06:54 AM
Downloads slow? Switch the source anytime above

README

Project Overview

jscpd is a copy/paste detector for programming source code supporting 224+ formats. It implements the Rabin-Karp algorithm to find duplicated code blocks across files and provides AI-ready MCP server and token-efficient reporter.

Key Features

  • Supports 224+ programming and markup language formats
  • Dual engine: TypeScript engine (v4.x) and Rust engine (v5.x), 24-37x faster
  • 13 reporter formats
  • AI-ready: AI reporter, agent skills, and MCP server
  • TypeScript and Rust programming APIs
  • CI integration: GitHub Action and pre-commit hooks
  • LevelDB storage support (TypeScript engine)

Target Audience

  • Developers who need to detect code duplication
  • Code quality engineers and architects
  • Teams who want to integrate AI workflows

Quick Start

  1. Install: curl -fsSL https://jscpd.dev/install.sh | bash
  2. TypeScript engine: npm install -g jscpd@4 && jscpd /path/to/code
  3. Rust engine (v5.x, 24-37x faster): npm install -g jscpd@5 && jscpd /path/to/code
  4. Rust-native install: cargo install jscpd
  5. Homebrew install: brew install jscpd

Core Advantages

  • Supports 224+ formats covering almost all programming languages
  • Rust engine is 24-37x faster
  • AI-ready: MCP server and token-efficient reporter
  • Cross-platform (Linux, macOS, Windows)
  • Open-source and free, community-driven

System Requirements

  • OS: Cross-platform (Linux, macOS, Windows)
  • Architectures: x86_64, arm64
  • Additional Dependencies: Node.js (TypeScript engine); Rust (Rust engine)

Notes

  • v4.x requires Node.js; v5.x is a self-contained binary with no Node.js required
  • jscpd@5 installs the jscpd command; the cpd package installs the cpd command

Release history

Sort