Codemorph Standalone Effects

Platform Agnostic Codemods

Charlie Greenman
Razroo
2 min readAug 11, 2023

--

What is Codemorph?

Codemorph is an extensible, easy-to-understand, easy-to-contribute, easy-to-use Codemod library. Codemorph is platform agnostic and supports all programming languages.

Codemorph logo. m is elevated/modded. You get the idea.

Why we made codemorph?

We made codemorph because we wanted production grade at scale. Something we can trust, that is limitless, can be used on any platform for any use case. It’s what we needed in order to enable razroo.com(A Software Architect As An Application) and we executed on that.

What are Codemorph Standalone Effects?

These are platform-agnostic codemods. It uses the virtual file tree to determine files that should be edited. User’s can then retrieve files how they would like. It then codemods those files. The beautiful part about it is that standaloneEffects only have three parameters.

1. Programming language — e.g. angular

2. Codemod type — e.g. angular-components

3. fileTree

Once again, super intuitive and easy to use. Try it for yourself here: github.com/razroo/codemorph

Beyond Standalone Effects

It can be used as a library to determine changes that will happen before they happen. Being that uses a virtual file system, will be super performant and happen in under 1 second even using Typescript. We plan on using this tech over at Razroo to make our code generation next level.

--

--