Skip to content
SPECIFICTION
Get listed

Comby vs jscodeshift

Comby

comby.dev

jscodeshift

jscodeshift.com

Side by side

FigureCombyjscodeshift
Price from——
Free plan——
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
APIYes—
Self-hostedYesYes
Plans published00
Spec score · Code Refactoring Tools7.7 (#12)7.7 (#13)
IntegrationComby can be used through Python bindings, its command line, or HTTP requests to a server run on the user's machine.The project README documents a VS Code debugger setup for debugging codemods.
LicenseThe public comby-tools/comby GitHub repository identifies its license as Apache-2.0.The project is distributed under the MIT License.
PurposeComby is a tool for searching and changing code structure using lightweight templates.jscodeshift is a toolkit for building and running codemods over multiple JavaScript or TypeScript files.

In their own words

Comby

Comby is a free, open-source tool for searching and changing code structure with lightweight templates. It recognizes basic syntax in code, strings, and comments across many languages, with parsers listed for C/C++, C#, Go, Java, JavaScript, Python, Rust, Swift, and TypeScript, plus a generic matcher for other formats. The project targets large refactors and one-off changes, and an interactive review mode lets users inspect proposed edits. Comby can run from its command line, Python bindings, or HTTP requests sent to a server on your machine. Installation instructions cover macOS with Homebrew, Ubuntu, Windows through Ubuntu on WSL, and Docker; building from source is also described. Linked projects include an Emacs package and a prototype VS Code extension. Other uses include structural code search, compiler fuzzing, test-case reduction, editor find and replace, and academic research. Comby matches balanced delimiters while accounting for comments and string literals, and supports regex search. It is self-hosted and available for API, Linux, macOS, and Windows use. The Apache-2.0 license is identified in the public repository.

Visit comby.dev

jscodeshift

jscodeshift is a free toolkit for developers who build and run codemods across JavaScript, TypeScript, or Flow projects. A codemod parses source into an abstract syntax tree, changes that tree, and generates source code. The runner applies a transform to each file and reports files that were not transformed. Its command line accepts a local transform, a URL, or paths from standard input. Parser choices include Babel, Babylon, Flow, TypeScript, and TSX, with Babel as the default. Users can set child-process limits, choose extensions, exclude paths with ignore patterns or configuration files, and preview changes in dry-run mode. The API supports traversal, filtering, finding, replacing, inserting, removing, and renaming syntax-tree nodes, with optional formatting during output. jscodeshift wraps recast to help preserve source style. Jest and Jasmine utilities support fixture or inline tests, and VS Code debugging guidance is documented. It runs on Linux, macOS, Windows, or self-hosted environments under an MIT license.

Visit jscodeshift.com