Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

@kongyo2/similarity-ts

Free#6 of 23 in Code Clone Detection Tools

@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.

8.6/10Editor score
@kongyo2/similarity-ts8.6 Visit kongyo2

At a glance

  • Editor score
    8.6 / 10
  • Pricing
    Free plan
  • Best for
    TypeScript repositories needing CI clone gates
  • Free plan
    Yes
  • Paid from
    Free
  • Clone detection method
    Ast
  • Facts checked
    20 Sep 2026
@kongyo2/similarity-ts screenshot
  • 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

@kongyo2/similarity-ts fact sheet

Free planYes
Paid fromFree
Clone detection methodAst
Scan scopeRepository
CI integrationYes
IDE integrationNo
Self-hosted optionYes
Supported languagesNot verified
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked20 Sep 2026

Alternatives to @kongyo2/similarity-ts

See all @kongyo2/similarity-ts alternatives →

@kongyo2/similarity-ts vs the competition

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — @kongyo2/similarity-ts 8.6/10

@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