Codefend
Codefend renames selected words in source text and file paths using a naming convention. Its CLI creates a generated source directory that you can inspect, test, and build. Vite, esbuild, Rollup, and Webpack plugins integrate the same engine into JavaScript builds.
You choose which names to mark, such as m_temperature or m_calculateTotal. For new CLI projects on 3.3.0 or later, we recommend the startWithMAndUnderscore preset for narrower, explicit selection. Codefend replaces matching names with a configured prefix, explicit replacements, or words from a pool. The engine uses regular expressions rather than a language-specific syntax tree, so the same conventions can be applied to different text-based languages.
Where to start
- Install Codefend and understand how it works.
- Adopt naming conventions with AI in an existing project using a copyable migration prompt.
- Try the Node.js example for source generation.
- Follow the Arduino example for a sketch workflow.
- Integrate it with Vite, esbuild, Rollup, or Webpack.
What obfuscation provides
Renaming can make source code less readable and can be combined with your normal compiler, minifier, or other build tools. It does not encrypt source code, firmware, or network traffic. It cannot guarantee that a program cannot be understood or reverse engineered, and it does not hide secrets embedded in distributed code.
Because matching operates on text, it can affect strings, comments, public property names, and paths as well as identifiers. Keep external interfaces stable and test the generated program. The troubleshooting guide describes current limitations and checks to perform before distribution.