Tech riderRev. 20 Sept 2026
@kongyo2/similarity-ts
- 1Runs onNot stated by the maker
- 2CostsNot stated by the maker
- 3Clone detection methodast
- 4Scan scoperepository
- 5CI integrationYes
- 6IDE integrationNo
- 7Self-hosted optionYes
5 lines stated Written from the maker's own pages: github.com

Overview
@kongyo2/similarity-ts is ranked #19 of 23 in code clone detection tools on Specifiction.
Compared on code clone detection tools
- Free plan
- Yesgithub.com
- Clone detection method
- astgithub.com
- Scan scope
- repositorygithub.com
- CI integration
- Yesgithub.com
- IDE integration
- Nogithub.com
- Self-hosted option
- Yesgithub.com
Facts
- Purpose
- The project describes itself as a TypeScript-only similarity analyzer that compares functions, types, and classes structurally.github.com · 5 Oct 2026
- Install and run
- The README’s quick start runs the analyzer with `npx @kongyo2/similarity-ts .`.github.com · 5 Oct 2026
- Supported file extensions
- The default extensions it scans are `ts`, `tsx`, `mts`, and `cts`.github.com · 5 Oct 2026
- Code style matching
- It canonicalizes documented style variants, including arrow functions versus declarations, `.then()` versus `await`, and several loop forms.github.com · 5 Oct 2026
- Analysis modes
- Its default modes are functions, types, classes, and overlap, and the README documents options to select modes and restrict scan scope.github.com · 5 Oct 2026
- Threshold and size controls
- The similarity threshold defaults to 0.8, the minimum function length defaults to three lines, and a minimum AST-token size can replace the line gate.github.com · 5 Oct 2026
- Output and CI
- It supports pretty or JSON output and a `--fail-on-duplicates` option that exits nonzero when any pair is reported.github.com · 5 Oct 2026
- Exclusions
- A declaration can be excluded from the report with a `// similarity-ignore` comment on the preceding line.github.com · 5 Oct 2026
- Behavioral distinctions
- The README says behavior-changing differences such as `.map` versus `.filter`, `async` versus sync, and `??` versus `||` retain distinct comparison shapes.github.com · 5 Oct 2026
- Accuracy benchmark
- The README reports that version 0.7.0 labeled all 300 pairs in its documented ground-truth benchmark correctly at the default threshold.github.com · 5 Oct 2026
- License
- The repository identifies its license as MIT.github.com · 5 Oct 2026
- Package form and runtime
- The package metadata describes a CLI and library, exposes a command-line binary and JavaScript entry point, and specifies Node.js 20 or newer.github.com · 5 Oct 2026
- Maker identity
- The repository is hosted under the GitHub account `kongyo2`; the opened project pages do not state a maker’s personal or company name, headquarters, or founding date.github.com · 5 Oct 2026
- Usage
- The README shows running it on the current directory with `npx @kongyo2/similarity-ts .`.github.com · 7 Oct 2026
- Analysis targets
- It compares functions, types, and classes structurally.github.com · 7 Oct 2026
- Rename handling
- It alpha-renames function parameters, locals, inner functions, and declaration names before comparison, while retaining free identifier names.github.com · 7 Oct 2026
- Style normalization
- The analyzer canonicalizes several equivalent coding forms, including function declarations and arrow functions, some loop rewrites, and structurally identical interfaces and type aliases.github.com · 7 Oct 2026
- CLI controls
- The CLI supports selecting analysis modes, setting a similarity threshold, filtering file extensions, excluding patterns, and choosing pretty or JSON output.github.com · 7 Oct 2026
- CI use
- The CLI offers a `--fail-on-duplicates` option that exits non-zero when any pair is reported.github.com · 7 Oct 2026
- Runtime requirement
- The package metadata specifies Node.js version 20 or newer.github.com · 7 Oct 2026
- Package formats
- The package metadata exposes both a `similarity-ts` command-line executable and a JavaScript library entry point with TypeScript declarations.github.com · 7 Oct 2026
- Intended workflow
- The README suggests using the command with an AI coding assistant to find duplicate code patterns and create a refactoring plan.github.com · 7 Oct 2026
Best @kongyo2/similarity-ts alternatives
See all 20 All accessCh 01 Algo VPN Free planAndroidiOS Free to start7.7 All accessCh 02 Duplo Free planLinuxMac Free to start7.2 All accessCh 03 jscpd Free planAPILinux Free to start7.2 All accessCh 04 PMD Free planLinuxMac Free to start7.2 All accessCh 05 Simian Similarity Analyzer Free planLinuxMac Free to start7.2 All accessCh 06 CloneWorks Free planLinuxMac Free to start7.1
Where it ranks on Specifiction
Is @kongyo2/similarity-ts yours?
Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.
Sources
- github.com/kongyo2/similarity· checked 5 Oct 2026
- github.com/kongyo2/similarity/blob/main/package.js· checked 5 Oct 2026

