# danielstjules/jsinspect

Detect copy-pasted and structurally similar code

Repository: https://github.com/danielstjules/jsinspect
Canonical: https://ross.abutalabs.com/products/jsinspect
Language: JavaScript
License: MIT
License Family: permissive
Topics: code-analysis, duplication, refactoring, clean-code, javascript
Last push: 2024-03-20T04:23:04+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4371, "days_push": 896, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3582, forks 127 (observed 2026-08-28T04:08:11.014390+00:00)

## What it is
jsinspect is a Node.js CLI tool that detects copy-pasted and structurally similar JavaScript code by comparing ASTs rather than raw tokens. It supports ES6, JSX, and Flow, and reports duplicated or repeated logic with configurable thresholds and reporters.

## Use cases
- find copy-pasted code in a javascript codebase
- detect structurally similar code with different identifiers
- identify repeated boilerplate logic across files
- run duplicate code detection in ci
- refactor duplicated javascript functions
- scan a project for code smell from duplication

## When to choose
- you need AST-based structural duplicate detection for JavaScript, ES6, JSX, or Flow
- you want a simple CLI with json or pmd reporter output for CI integration
- existing token-based duplication tools miss code with renamed identifiers

## When to avoid
- you need duplication detection for languages other than JavaScript
- you want actively developed tooling with modern Node.js support
- you need a GUI or IDE-integrated duplicate analysis

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, parser, code-review
- domain: developer-tools, testing
- platform: cli, cross-platform
- tags: code-duplication, copy-paste-detection, static-analysis, ast, refactoring, code-quality, javascript, nodejs

## Member repositories
- danielstjules/jsinspect (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.014390+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:33:57.748801+00:00, confidence not recorded.
  - readme: https://github.com/danielstjules/jsinspect (fetched 2026-08-28T04:08:11.014390+00:00, sha e980e425ae81)
  - registry_npm: https://registry.npmjs.org/jsinspect (fetched 2026-08-29T09:27:41.424155+00:00, sha 0aff3a94e519)
- Data as of 2026-08-30T08:39:29.467469+00:00.
