Refactoring

Top 23 Refactoring Open-Source Projects

  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  • Project mention: How to setup Black and pre-commit in python for auto text-formatting on commit | dev.to | 2024-03-29

    Today we are going to look at how to setup Black (a python code formatter) and pre-commit (a package for handling git hooks in python) to automatically format you code on commit.

  • Scientist

    :microscope: A Ruby library for carefully refactoring critical paths.

  • Project mention: Crates that run multiple versions of a function and ensures the return value is the same? | /r/rust | 2023-12-05

    For some google-fu, the ruby / .NET equivalent of this is https://github.com/github/scientist / https://github.com/scientistproject/Scientist.net

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • ast-grep

    ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

  • Project mention: AST-grep(sg) AST grep based on Treesitter | news.ycombinator.com | 2024-04-01
  • jedi

    Awesome autocompletion, static analysis and refactoring library for python

  • wild-workouts-go-ddd-example

    Go DDD example application. Complete project to show how to apply DDD, Clean Architecture, and CQRS by practical refactoring.

  • Project mention: Looking for elegant code bases written in Golang | news.ycombinator.com | 2023-12-09

    Take a look at: https://github.com/ThreeDotsLabs/wild-workouts-go-ddd-exampl...

    (I’m one of the authors.)

    This project shows how to apply more complex patterns popular in business applications while staying true to the Go ideas, and not copying them blindly from Java.

    In the Go community, you’ll often hear people say „just keep things simple” beats all patterns and is all you need. This may be true if you write a CLI tool or a small library, but if you have a team maintaining a big application, some patterns are super helpful.

  • pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

  • Project mention: Implementing Quality Checks In Your Git Workflow With Hooks and pre-commit | dev.to | 2023-12-13

    # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: check-added-large-files - repo: local hooks: - id: tox lint name: tox-validation entry: pdm run tox -e test,lint language: system files: ^src\/.+py$|pyproject.toml|^tests\/.+py$ types_or: [python, toml] pass_filenames: false - id: tox docs name: tox-docs language: system entry: pdm run tox -e docs types_or: [python, rst, toml] files: ^src\/.+py$|pyproject.toml|^docs\/ pass_filenames: false - repo: https://github.com/pdm-project/pdm rev: 2.10.4 # a PDM release exposing the hook hooks: - id: pdm-lock-check - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 3.0.0 hooks: - id: markdownlint

  • jsinspect

    Detect copy-pasted and structurally similar code

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • study-path

    An organized learning path on Clean Code, Test-Driven Development, Legacy Code, Refactoring, Domain-Driven Design and Microservice Architecture

  • learning-oop-in-php

    A collection of resources to learn object-oriented programming and related concepts for PHP developers.

  • gritql

    GritQL is a query language for searching, linting, and modifying code.

  • Project mention: ClangQL: A tool to run SQL-like query on C/C++ Code | news.ycombinator.com | 2024-04-07

    Cool to see another query language for source code! Yours is definitely closer to SQL than GritQL is.[0] I particularly like the count semantics.

    [0] https://github.com/getgrit/gritql

  • comby

    A code rewrite tool for structural search and replace that supports ~every language.

  • Project mention: Meet ast-grep: a Rust-based tool for code searching, linting, rewriting using AST | /r/rust | 2023-05-11

    How does it compare to https://github.com/comby-tools/comby, which can work on languages it doesnt even have grammars for (to a degree)

  • piranha

    A tool for refactoring code related to feature flag APIs

  • Project mention: 11 Principles for building and scaling feature flag systems | news.ycombinator.com | 2023-09-22

    It can be done by opening a PR, I haven't tried it yet, but I'm curious to try out https://github.com/uber/piranha or maybe hear some experiences if someone has used it

  • splitjoin.vim

    Switch between single-line and multiline forms of code

  • Rope

    a python refactoring library

  • rewrite

    Automated mass refactoring of source code.

  • Project mention: FLaNK Weekly 31 December 2023 | dev.to | 2023-12-31
  • Bowler

    Safe code refactoring for modern Python.

  • sourcery

    Instant AI code reviews (by sourcery-ai)

  • vscode-glean

    The extension provides refactoring tools for your React codebase

  • refact

    WebUI for Fine-Tuning and Self-hosting of Open-Source Large Language Models for Coding

  • Project mention: Supercharge Your Dev Workflow: How Refact's AI-powered Code Completion Boosts Developer Productivity | dev.to | 2024-03-15

    With over 1.3k stars on GitHub, more than 40k downloads and installs on both VS Code and JetBrains IDEs, and more than 50 positive reviews, it is worth saying that Refact is part of the best product in the AI coding assistant market.

  • suture

    🏥 A Ruby gem that helps you refactor your legacy code

  • Laboratory

    Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

  • Project mention: Scientist: A Ruby library for carefully refactoring critical paths | news.ycombinator.com | 2023-11-14

    Yes, at the bottom it lists all similar libraries in other languages. Python has https://github.com/joealcorn/laboratory

  • Phpactor

    Mainly a PHP Language Server with more features than you can shake a stick at

  • Project mention: VSCode for PHP and Laravel | dev.to | 2023-08-20

    # Download phpactor.phar curl -Lo phpactor.phar https://github.com/phpactor/phpactor/releases/latest/download/phpactor.phar

  • lispy

    Short and sweet LISP editing

  • Project mention: Sapling: A highly experimental vi-inspired editor where you edit code, not text | news.ycombinator.com | 2024-02-04
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Refactoring related posts

Index

What are some of the best open-source Refactoring projects? This list will help you:

Project Stars
1 pre-commit 12,049
2 Scientist 7,331
3 ast-grep 5,863
4 jedi 5,664
5 wild-workouts-go-ddd-example 4,876
6 pre-commit-hooks 4,874
7 jsinspect 3,553
8 study-path 2,650
9 learning-oop-in-php 2,487
10 gritql 2,296
11 comby 2,265
12 piranha 2,222
13 splitjoin.vim 1,875
14 Rope 1,836
15 rewrite 1,830
16 Bowler 1,513
17 sourcery 1,481
18 vscode-glean 1,455
19 refact 1,412
20 suture 1,404
21 Laboratory 1,273
22 Phpactor 1,250
23 lispy 1,184

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com