Skip to content

Get fast, repeatable source code refactoring

OpenRewrite (founded and managed by Moderne) is a community-driven open source project that enables developers to effectively eliminate technical debt within their repositories. It consists of an auto-refactoring engine that runs prepackaged, open source refactoring recipes for common framework migrations, security fixes, and stylistic consistency tasks.

OpenRewrite is Apache2 licensed and maintained by Moderne, the company that scales the use of OpenRewrite recipes across large codebases and multiple repositories.

Start with the quickstart guide and let OpenRewrite handle the boring parts of software development for you. We also welcome you to join our community Slack.

Pinned Loading

  1. rewrite rewrite Public

    Automated mass refactoring of source code.

    Java 2.4k 357

  2. rewrite-spring rewrite-spring Public

    OpenRewrite recipes for Spring projects.

    Java 273 85

  3. rewrite-testing-frameworks rewrite-testing-frameworks Public

    OpenRewrite recipes that perform common Java testing migration tasks.

    Java 82 78

  4. rewrite-maven-plugin rewrite-maven-plugin Public

    OpenRewrite's Maven plugin.

    Java 149 76

  5. rewrite-gradle-plugin rewrite-gradle-plugin Public

    OpenRewrite's Gradle plugin.

    Java 67 41

  6. rewrite-docs rewrite-docs Public

    Stores the markdown documents used to generate docs.openrewrite.org

    TypeScript 41 57

Repositories

Showing 10 of 61 repositories
  • rewrite-static-analysis Public

    OpenRewrite recipes for identifying and fixing static analysis issues.

    openrewrite/rewrite-static-analysis’s past year of commit activity
    Java 33 57 145 (14 issues need help) 5 Updated Jan 11, 2025
  • rewrite Public

    Automated mass refactoring of source code.

    openrewrite/rewrite’s past year of commit activity
    Java 2,407 Apache-2.0 357 347 (3 issues need help) 47 Updated Jan 11, 2025
  • rewrite-docs Public

    Stores the markdown documents used to generate docs.openrewrite.org

    openrewrite/rewrite-docs’s past year of commit activity
    TypeScript 41 Apache-2.0 57 14 (1 issue needs help) 0 Updated Jan 10, 2025
  • rewrite-recipe-markdown-generator Public

    Utility that generates OpenRewrite recipe documentation in markdown format for all recipes on the classpath.

    openrewrite/rewrite-recipe-markdown-generator’s past year of commit activity
    Kotlin 2 Apache-2.0 8 4 1 Updated Jan 10, 2025
  • rewrite-recipe-bom Public

    Align version numbers for all OpenRewrite maintained recipe modules

    openrewrite/rewrite-recipe-bom’s past year of commit activity
    10 Apache-2.0 5 1 0 Updated Jan 10, 2025
  • rewrite-javascript Public

    OpenRewrite recipes for JavaScript projects.

    openrewrite/rewrite-javascript’s past year of commit activity
    TypeScript 20 9 22 1 Updated Jan 10, 2025
  • rewrite-csharp-recipes Public

    Recipes written in C# for C# refactoring.

    openrewrite/rewrite-csharp-recipes’s past year of commit activity
    C# 0 0 1 1 Updated Jan 10, 2025
  • rewrite-generative-ai Public

    OpenRewrite recipes using generative AI.

    openrewrite/rewrite-generative-ai’s past year of commit activity
    Java 12 Apache-2.0 5 0 0 Updated Jan 10, 2025
  • rewrite-build-gradle-plugin Public

    Common build logic for building OpenRewrite and recipe jars.

    openrewrite/rewrite-build-gradle-plugin’s past year of commit activity
    Java 4 Apache-2.0 5 1 0 Updated Jan 10, 2025
  • rewrite-gradle-tooling-model Public

    A model for extracting semantic information out of Gradle build files necessary for refactoring them.

    openrewrite/rewrite-gradle-tooling-model’s past year of commit activity
    Java 3 Apache-2.0 5 0 0 Updated Jan 10, 2025