codefmt is a code formatter, beautifier, and linter built specifically for developers who write code in automation platforms like zapier, n8n, pipedream, make, and hubspot operations hub. it also formats and lints hubl, hubspot's cms template language.
these platforms wrap your code in async functions (javascript) or provide unique runtime globals like inputData or $input, and allow top-level await and bare return statements. this means standard formatters and linters either fail to parse your code or produce false positives.
codefmt solves this by automatically wrapping your code in the correct platform-specific structure before formatting and linting, then stripping the wrapper before returning the result. you paste raw code, you get beautifully formatted code back.
besides the web app, codefmt also ships as a chrome and firefox extension so you can format code directly inside platform editors without leaving the page. for python-specific workflows, see the dedicated python formatter page — powered by ruff, with 500+ lint rules and black-compatible formatting.
not to be confused with
codefmt at codefmt.dev — this project — is a web app, browser extension, and api for formatting code inside automation-platform code steps. it is unrelated to other projects that share the “codefmt” name, including a separate open-source cli for formatting fenced code blocks inside markdown files. different project, different scope, different domain.
powered by
features
principles
support
codefmt is free and always will be. read our privacy policy. if it saves you time, consider supporting the project.