kucherenko/jscpd
Copy/paste detector for source code. 220+ languages, Rust engine, SARIF/HTML/badge reporters, GitHub Action, MCP server for AI agents.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#1 Repository Của Tuần
🚀 jscpd — Bộ phát hiện mã trùng lặp cực nhanh, AI-ready
Copy/paste detector cho code nguồn, hỗ trợ 224+ định dạng. Engine Rust mới nhanh 24-37x, kèm MCP server và reporter tiết kiệm token cho pipeline LLM.
jscpd là công cụ phát hiện đoạn mã bị sao chép (clone) trong dự án bằng thuật toán Rabin-Karp. Phiên bản v5 là cách viết lại hoàn toàn bằng Rust, tốc độ nhanh hơn 24-37x so với v4 (TypeScript), đồng thời vẫn giữ nguyên CLI, cấu hình .jscpd.json và 13 reporter cũ. Engine Rust chạy độc lập — không cần Node.js.
✨ Điểm nổi bật
- Engine Rust mới (v5): tốc độ nhanh 24-37x trên dự án thực tế (548 files: 34x, 9K files: 37x, 17K files/900MB: 24x)
- Hỗ trợ 223 ngôn ngữ: bao gồm cả phát hiện liên định dạng (Vue SFC, Svelte, Astro, Markdown)
- 13 reporter đa dạng: console, json, xml, csv, html, markdown, sarif, ai, xcode, badge, threshold, silent...
- AI-ready: reporter tiết kiệm token (~79% ít hơn so với console), agent skill và MCP server
- Git blame: so sánh tác giả cùng diff hiển thị
--blame --reporters console-full - Điều khiển độ paralell:
--workerstùng chỉnh số CPU dùng cho tokenization và detection - Cài đặt đa nền tảng: npm, cargo, nix, brew, hoặc script cài nhanh
- Tương thích config cũ: dùng lại
.jscpd.jsonvà CLI tuỳ chọn từ v4 mà không cần thay đổi
💡 Vì sao đáng chú ý
jscpd không chỉ là công cụ phát hiện trùng lặp — nó là một pipeline chất lượng code hoàn chỉnh. Với engine Rust, jscpd trở thành lựa chọn nhanh nhất để tích hợp clone detection vào CI/CD. Đặc biệt, reporter AI và MCP server giúp jscpd dễ dàng kết hợp với các agent AI coding, biến việc tìm và sửa mã trùng thành một phần tự động trong quy trình phát triển.
#jscpd #CodeQuality #CloneDetection #AIReady #Rust #TypeScript #TiniX
Similar Projects
Discover other similar projects and AI models.
An agentic skills framework & software development methodology that works.
Reverse engineer anything with agents, from app behavior down to native binaries.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Open-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.