awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
facebookarchive avatar

facebookarchive/codemodArchived

0
View on GitHub↗
4,133 stars·197 forks·Python·Apache-2.0·8 views

Codemod

Codemod is a set of software tools for performing structural source code transformations. It functions as an automated codebase migration tool that utilizes abstract syntax tree manipulations rather than simple regular expressions to execute large-scale refactors across multiple files.

The project distinguishes itself through an interactive transformation interface that provides colored diffs, allowing users to manually review, accept, or modify each match. It also supports a distributed refactoring workflow, which enables the segmentation of a codebase into assigned work blocks to divide migration tasks among multiple contributors.

The toolset covers broad capabilities for scriptable transformation logic, pattern-matching search engines, and extension-based file filtering to restrict operations to specific subsets of a project.

Features

  • Automated Large-Scale Refactoring - Executes synchronized structural changes across an entire codebase using automated search and substitution.
  • AST-Based Source Transformations - Provides the ability to modify source code by replacing abstract syntax tree nodes while preserving formatting.
  • Automated Codebase Migration Tools - Provides a system for executing complex structural refactors with support for human oversight and task segmentation.
  • Interactive Change Reviewers - Provides an interactive interface for verifying and selectively accepting code modifications before writing them to the filesystem.
  • Automated Migration Codemods - Automates syntax updates and breaking change resolution across a project using scripted transformations.
  • Source Code Transformation Engines - Provides an engine for defining custom scripts to automate search and replace operations based on code patterns.
  • Structural Pattern Matching - Identifies specific code fragments using structural pattern matching based on AST bindings and regular expressions.
  • AST-Based Refactorers - Programmatically modifies internal syntax trees to apply fixes and refactors across large codebases.
  • Code Transformation Tools - Provides utilities for structural code modifications based on language grammars and AST manipulation.
  • Custom Refactoring Logic - Allows defining specialized source code transformations through custom imperative JavaScript logic.
  • Logical Pattern Substitution - Implements complex code changes that require logical scripts instead of basic regular expression replacements.
  • Scripted Transformations - Supports custom scripting for performing sophisticated refactoring logic beyond simple regular expression substitutions.
  • Interactive Code Editing - Offers an interactive editing experience with diff-style updates for guiding multi-step structural changes.
  • Refactoring Task Segmentation - Enables dividing a codebase into manageable chunks based on directory paths to distribute migration tasks.
  • Distributed Refactoring Workflows - Provides a workflow for dividing massive codebase cleanups among developers by segmenting files into assigned work blocks.

Star history

Star history chart for facebookarchive/codemodStar history chart for facebookarchive/codemod

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Codemod

Similar open-source projects, ranked by how many features they share with Codemod.
  • reactjs/react-codemodreactjs avatar

    reactjs/react-codemod

    4,403View on GitHub↗

    This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code to newer versions of React. It provides a set of scripts that programmatically modify code structures to replace deprecated APIs and component patterns with modern equivalents. The toolkit specializes in converting class components into functional components using arrow functions and prop destructuring. It also includes utilities for modernizing JSX syntax, updating deprecated lifecycle methods to stable versions, and migrating legacy string-based references to callback refs.

    JavaScript
    View on GitHub↗4,403
  • openrewrite/rewriteopenrewrite avatar

    openrewrite/rewrite

    3,312View on GitHub↗

    OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework

    Javaabstract-syntax-treeastcode-search
    View on GitHub↗3,312
  • immunant/c2rustimmunant avatar

    immunant/c2rust

    4,642View on GitHub↗

    c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and libraries into functionally equivalent unsafe Rust code. It operates as a pipeline that preserves original behavior and data structures, producing translated code that compiles as compatible shared libraries or Rust crates. The system includes an automated Rust refactoring framework that uses pattern-based AST rewriting to transform unsafe Rust into safe, idiomatic constructs. It utilizes an ownership inference engine to determine when raw pointers can be converted into safe reference

    Rustmemory-safetymigrationrust
    View on GitHub↗4,642
  • airbnb/ts-migrateairbnb avatar

    airbnb/ts-migrate

    5,620View on GitHub↗

    ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript files. It functions as a code migration framework that uses abstract syntax trees to perform large-scale refactoring and structural changes across a project. The tool provides a customizable framework for defining plugin-based transformation rules, allowing for the automation of specific code changes. It includes specialized engines for converting JSDoc type definitions into native TypeScript annotations and a utility for suppressing compiler errors by inserting type assertions or

    TypeScriptcodemodjavascriptmigration
    View on GitHub↗5,620
See all 30 alternatives to Codemod→

Frequently asked questions

What does facebookarchive/codemod do?

Codemod is a set of software tools for performing structural source code transformations. It functions as an automated codebase migration tool that utilizes abstract syntax tree manipulations rather than simple regular expressions to execute large-scale refactors across multiple files.

What are the main features of facebookarchive/codemod?

The main features of facebookarchive/codemod are: Automated Large-Scale Refactoring, AST-Based Source Transformations, Automated Codebase Migration Tools, Interactive Change Reviewers, Automated Migration Codemods, Source Code Transformation Engines, Structural Pattern Matching, AST-Based Refactorers.

What are some open-source alternatives to facebookarchive/codemod?

Open-source alternatives to facebookarchive/codemod include: reactjs/react-codemod — This project is a suite of abstract syntax tree transformation tools designed to automate the migration of source code… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… immunant/c2rust — c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and… airbnb/ts-migrate — ts-migrate is an automated migration tool designed to transform JavaScript source code into compiling TypeScript… rollup/plugins — This is a collection of official extensions for the Rollup bundling process. These plugins serve as module… comby-tools/comby — Comby is a command-line utility designed for structural code search and transformation across diverse programming…