Hacker GitHub

← All repos

facebookarchive/codemod

View on GitHub ↗ ★ 4,131 Python archived

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.

18 mentions on Hacker News by 16 people: 4 stories, 14 comments · first 2011-05-21 · latest 2025-10-08

Mentions per year 18 mentions · busiest year 2023 (5)
20082026
  1. …and advanced refactoring tools - things like tree-sitter or Facebooks's old codemod system https://github.com/facebookarchive/codemod I never used them, because the learning curve in them was steep enough that I never found the time to…
    comment by simonw · 2025-10-08 · in Vibe engineering
  2. …once used Codemod [0] to migrate an old JS codebase. Would this be a use case for Ohm as well? [0] https://github.com/facebookarchive/codemod
  3. Here you go https://github.com/facebookarchive/codemod
    comment by imvetri · 2023-10-31 · in Automating Dead Code Cleanup
  4. …perform large scale refactoring as handled by Facebook, who would be contributing to this effort. https://github.com/facebookarchive/codemod It sounds like what you are describing is what’s known as poly fills which convert code into a…
  5. https://github.com/facebookarchive/codemod Ironically this is also from Meta which would be contributing to this space increasing the expertise of achieving this result.
  6. …an internal script at Facebook called codemod. It had a public open source fork if you are curious. https://github.com/facebookarchive/codemod
    comment by charcircuit · 2023-01-03 · in Python 2 removed from Debian
  7. I think codemod is probably one such tool: https://github.com/facebook/codemod
    comment by andy_ppp · 2021-01-10 · in Software Is Drowning the World
  8. …react libraries into crank, or close enough that only a few further manual changes are needed. [0] https://github.com/facebook/codemod/blob/master/README.md
  9. …for large-scale refactoring in busy codebases (particularly, their JS codebases), but for Python ( https://github.com/facebook/codemod , https://github.com/facebook/jscodeshift ).
  10. …enumerated. There are some fairly sophisticated tools out there for doing both of these, e.g. https://github.com/facebook/codemod , and it'd be great to see more language-communities embrace (and improve) them IMO. If you manage to limit…
    comment by Groxx · 2017-01-12 · in Backwards compatibility in Go (2015)
  11. https://github.com/facebook/codemod
  12. https://github.com/facebook/codemod has been very helpful in the few times I needed it. Of course, a tool that really "understood" code (and multi-language projects) would be much better, but that is only happening next year (like Linux on…
  13. …for Selenium or for CSS. It's pretty straightforward to convert an existing codebase with codemod: https://github.com/facebook/codemod If you're still curious about React, feel free to drop us a line at…
    comment by peterhunt · 2013-06-24 · in Moving From Backbone To React
  14. I really like Facebook's codemod.py for stuff like that: https://github.com/facebook/codemod It has something like automatic and manual modes, so you can check (and fix) every diff during the replacement