Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 14, 2026·3 min de lecture

jscpd — Copy/Paste Detector + MCP Server

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Npm
Confiance
Confiance : Established
Point d'entrée
jscpd
Commande CLI universelle
npx tokrepo install 05e96397-da0a-5479-8c67-c801d6fb97f5
Introduction

A copy/paste (duplicate code) detector supporting 223 formats, with CLI and server modes; verified 5631★, pushed 2026-05-14.

Best for: Teams adding duplicate-code detection to CI, monorepos, or agent refactor workflows

Works with: Node.js; runs as CLI or server per README install examples

Setup time: 5-10 minutes

Key facts (verified)

  • GitHub: 5631 stars · 233 forks · pushed 2026-05-14.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: jscpd.

Main

  • Use jscpd as a regression guard: run it in CI to keep copy/paste from silently spreading during fast iterations.

  • Tune it for agent refactors: set a token threshold so you catch true duplication without flagging common boilerplate.

  • Prefer the server mode when you need repeated queries across multiple repos or a UI/report pipeline.

  • Treat supported formats as a scope knob: start narrow (your main language), then expand once the baseline is clean.

README (excerpt)

jscpd

stand with Ukraine

npm jscpd license npm

jscpd CI codecov FOSSA Status Backers on Open Collective Sponsors on Open Collective

NPM

Copy/paste detector for programming source code, supports 223 formats. AI-ready with MCP server and token-efficient reporter.

Copy/paste is a common technical debt on a lot of projects. The jscpd gives the ability to find duplicated blocks implemented on more than 223 programming languages and digital formats of documents. The jscpd tool implements Rabin-Karp algorithm for searching duplications.

Packages of jscpd

name version description
jscpd npm main package for jscpd (cli and API for detections included)
jscpd-server npm jscpd server application

Source-backed notes

  • README states it supports 223 formats and provides both CLI and server installs (npm install -g jscpd / jscpd-server).
  • Repo is MIT licensed and actively maintained (verified via GitHub API).
  • README includes a pnpm install path for contributors (repo build instructions).

FAQ

  • Is it only for JavaScript?: No—README says it supports 223 formats; run it against your repo language set.
  • How do I install the CLI?: Use npm install -g jscpd (README install section).
  • Can I run it as a service?: Yes—README mentions server mode (jscpd-server).
🙏

Source et remerciements

Created by kucherenko. Licensed under MIT.

kucherenko/jscpd — ⭐ 5631

Thanks to the upstream maintainers and contributors for publishing this work under an open license.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires