# jscodeshift: 6.4 out of 10

Reasonable, with limits. 7th of 9 in [JavaScript parsers and codemods](https://elestia.ai/opensource/parsers/index.md).

jscodeshift is the long-standing codemod runner from Meta. It wraps Recast and gives you a jQuery-like API for finding and rewriting JavaScript and TypeScript syntax trees. It still works and many framework migration codemods use it, but maintenance is minimal and faster or type-aware tools such as ast-grep and ts-morph are gaining ground, so it is a reasonable choice for new work rather than a clear first pick.

**Best for:** Teams writing syntax-level migration codemods in JavaScript that need small, format-preserving diffs and want a mature, well-documented pattern.

## Scores

- **Overall: 6.4** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (5.5): jscodeshift still does its job well for syntax-level JS/TS migrations with small, format-preserving diffs, and many examples exist. Maintenance is thin and its share is shrinking. Peers do parts of the job better: ast-grep for speed and simple rewrites, ts-morph for type-aware changes. It remains a reasonable but not leading choice for new codemods.
  - GPT-6.2 Sol (7.2): jscodeshift is a strong choice for custom migrations that benefit from ordinary JavaScript logic and formatting-preserving output. Ast-grep is a better first choice for simple structural rewrites, and ts-morph is better when a change must follow TypeScript symbols across files. A slow release cadence and below-median download growth lower confidence in its long-term position.
- **Needed by many: 4.2** (likely 3.1 to 5.3)
  - Claude Opus 5.5 (4.0): Many developers run a codemod now and then, but few write their own. Writing codemods is a clear niche, mostly for library authors and teams that maintain large codebases. jscodeshift covers JS, TS and JSX, but not other languages.
  - GPT-6.2 Sol (4.3): The tool covers JavaScript, JSX, and TypeScript across frameworks. Authoring AST transforms is mostly an occasional job for teams doing upgrades or repeated refactors. State of JavaScript shows why TypeScript support matters, but provides no direct estimate of how many teams author codemods.
- **Helps a lot: 6.9** (likely 5.8 to 7.9)
  - Claude Opus 5.5 (6.0): It is a mature, capable toolkit: a collection API, a parallel CLI, format-preserving output through Recast, and test utilities. Its limits are clear. It only works on syntax, it is slow on big repos, and it ships no bundled types. ast-grep is faster for pattern rewrites, and ts-morph is better when a change needs type information.
  - GPT-6.2 Sol (7.7): Version 17.4.0 combines a flexible collection API, formatting-preserving output, and a runner with dry runs and fixture tests. A third-party comparison found ast-grep faster for a simple rewrite and showed how ts-morph can follow a specific TypeScript symbol across files. Separate types and reported printer quirks add friction. Examples and fixtures give coding agents a way to check their work, while evidence on agent accuracy is limited.
- **Holds up over time: 5.0** (likely 3.8 to 6.1)
  - Claude Opus 5.5 (4.0): Activity is low: 15 commits last year, no GitHub release since March 2025, and only one npm version (17.4.0, July 2026). Meta has no active maintainers, and the Codemod team's planned TypeScript rewrite has not appeared. That team now promotes jssg, built on ast-grep, as the successor. The project is not archived, and so many tools depend on it that it is likely to keep getting basic upkeep.
  - GPT-6.2 Sol (5.9): The project made 15 commits and published one npm version in the past year. July's 17.4.0 added collection iteration and fixed an ignore-pattern bug, while GitHub Releases still lists 17.3.0. The last public maintenance plan named community maintainers, and longstanding open reports leave future fix cadence and maintainer capacity uncertain.
- **Used widely: 6.2** (likely 5.1 to 7.3)
  - Claude Opus 5.5 (6.0): It has about 31.7M downloads per 4 weeks and 154k dependent repos, but much of that comes in through framework codemod CLIs rather than direct choice. Downloads grew 1.47x in a year, far below the 4.1x median, so it is losing share. ast-grep and ts-morph are growing much faster.
  - GPT-6.2 Sol (6.4): ecosyste.ms found about 155,000 dependent repositories, ahead of ts-morph and behind Recast. Four-week downloads rose from 21.6 million to 31.7 million, but the 1.47× ratio trails the 4.1× catalog median and growth at ast-grep and ts-morph. Framework tooling accounts for some installs, and incomplete dependency coverage leaves direct adoption uncertain.
- **Vouched for: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.0): Its record in production is long. Framework codemods such as those from Next.js and Storybook have run on it, and independent write-ups like Martin Fowler's 2025 article use it as the reference tool. Current attention is low, though: no HN or Bluesky activity, and recent comparisons favour newer tools for speed or type awareness.
  - GPT-6.2 Sol (8.0): Next.js and MUI X ship upgrade tooling built on jscodeshift, and AWS used it for its JavaScript SDK migration. A third party tested the current release and found it useful for custom rewrites where formatting matters. These are concrete uses, though most framework evidence concerns upgrade scripts and broad satisfaction data is unavailable.
- **Safe: 7.0** (likely 5.3 to 8.1)
  - Claude Opus 5.5 (7.0): It has no OSV advisories and an MIT licence. It is usually a dev-time tool, which limits exposure. It pulls in 18 dependencies, has no Scorecard data, and only a few people publish it, which keeps the score from going higher.
  - GPT-6.2 Sol (6.9): The package is MIT-licensed, and OSV lists zero advisories against it. It has 18 direct dependencies, and its tmp version range allows older affected versions as well as the patched 0.2.7. GitHub Actions defines a test-gated publishing workflow, and npm lists three collaborators. The missing Scorecard and unverified provenance for 17.4.0 leave uncertainty about release controls.

## Good

- Recast keeps the original formatting and comments, so diffs stay small and easy to review.
- The CLI runs transforms in parallel over many files, and test helpers such as defineInlineTest make transforms easy to test.
- Many existing codemods, examples and AI-agent guides use it, so agents write working transforms for it fairly reliably.
- No known advisories and a permissive MIT licence.

## Bad

- It only sees syntax, one file at a time. It has no type information and no cross-file renames, which ts-morph offers.
- It is much slower and uses more memory than ast-grep on large codebases.
- Development has slowed: 15 commits and a single npm release in the last year, Meta has no active maintainers, and the planned TypeScript rewrite has not shipped.
- It ships no bundled types (they come from @types/jscodeshift) and pulls in 18 dependencies.

## The numbers

- Downloads, 4 weeks: 32M
- In a year: +47%
- GitHub stars: 10k
- Commits, 12 months: 15
- Last npm release: Jul 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/meta/jscodeshift
- npm: https://www.npmjs.com/package/jscodeshift

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
