@kongyo2/similarity-ts
@kongyo2/similarity-ts: A focused, self-hosted CLI for TypeScript clone checks and CI gates. Ranked #6 of 23 in Code Clone Detection Tools by our editors (8.6/10); pricing: Free plan; best for typeScript repositories needing CI clone gates.
At a glance
- Editor score8.6 / 10
- PricingFree plan
- Best forTypeScript repositories needing CI clone gates
- Free planYes
- Paid fromFree
- Clone detection methodAst
- Facts checked20 Sep 2026

Where it wins
- AST scoring compares functions, types, and classes structurally
- Thresholds, exclusions, and scan-scope rules support tailored checks
- JSON output and CI failure gating fit automated quality workflows
Where it doesn't
- Focused on TypeScript and related file extensions
- No IDE integration is specified
- Self-hosted CLI workflows require local setup and maintenance
Our verdict on @kongyo2/similarity-ts
@kongyo2/similarity-ts is an open-source TypeScript code-similarity CLI and library for finding duplicate or structurally similar code. It is aimed at teams maintaining TypeScript repositories, especially those that want clone detection as part of refactoring or code-quality workflows. The tool compares functions, types, and classes through AST-based tree edit distance scoring rather than relying only on text matching. It is free to use, self-hosted, and distributed for local use through npm.
Its strongest fit is configurable repository scanning. Teams can set similarity thresholds, minimum line or token requirements, and restrictions for same-file or cross-file comparisons. TypeScript and related file-extension filters help narrow the scan, while glob-based exclusions can keep generated or intentionally repeated code out of results. Pretty and JSON output formats support both human review and automation, and CI gating can fail a workflow when duplicate code is detected.
This focus makes the package a practical choice for TypeScript teams that want a lightweight, repository-level clone gate without a hosted service or paid tier structure. It is less suitable for buyers seeking IDE integration, a broad multi-language platform, or a managed onboarding experience. The published package metadata identifies version 0.6.0, while the latest README content describes additional accuracy work associated with 0.7.0, so teams should review the package and repository state before standardizing on a version. Choose it when AST-based checks and local control matter more than ecosystem breadth.
Your product? Our editors can test @kongyo2/similarity-ts in depth and publish a review, labelled as paid · from $149/mo →
@kongyo2/similarity-ts pricing
@kongyo2/similarity-ts fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Clone detection method | Ast |
| Scan scope | Repository |
| CI integration | Yes |
| IDE integration | No |
| Self-hosted option | Yes |
| Supported languages | Not verified |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business (editorial estimate) |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 20 Sep 2026 |
Alternatives to @kongyo2/similarity-ts
- jscpdA broad, self-hosted clone detector with strong CI, reporting, and history analysis.9.4
- art-duplA focused, self-hosted clone analyzer for Go teams building duplication checks into CI.9.2
- PMDA strong open-source choice for teams pairing clone detection with broad static analysis.9.0
See all @kongyo2/similarity-ts alternatives →
@kongyo2/similarity-ts vs the competition
- @kongyo2/similarity-ts vs jscpd
- @kongyo2/similarity-ts vs art-dupl
- @kongyo2/similarity-ts vs PMD
- @kongyo2/similarity-ts vs NiCad
- @kongyo2/similarity-ts vs Amimica
- @kongyo2/similarity-ts vs QuickDup
Compare @kongyo2/similarity-ts with any tool side by side →
Used @kongyo2/similarity-ts? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used @kongyo2/similarity-ts for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
@kongyo2/similarity-ts is listed in our Code Clone Detection Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/kongyo2-similarity-ts/"><img src="https://www.itechguides.com/best/badge/kongyo2-similarity-ts.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update

