codefmt — back to formatter

about

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

oxfmtrust-based javascript formatter, prettier-compatible github
oxlintrust-based javascript linter, 50-100x faster than eslint oxc.rs
ruffrust-based python formatter and linter, 500+ rules, black-compatible astral.sh
next.jsreact framework for the web nextjs.org

features

platform variantsn8n modes, pipedream component types, make modules, hubspot workflow styles
python supportruff-powered formatting and linting for zapier, n8n, and pipedream python code actions
typescript supportfull typescript formatting and linting for n8n and pipedream
hubl formatting + lintingformat and lint hubspot cms template language with full support
json formatterformat json with platform payload detection, auto-generates access code for zapier, n8n, pipedream, and hubspot
snippet library25+ curated code templates. edit, format, and copy directly from the card
light + dark themewarm parchment light theme and vs code dark modern theme
lint pluginspromise, security, node, and performance lint rule plugins
chrome + firefox extensionformat code directly in zapier, n8n, pipedream, make, and hubspot editors. install for firefox
offline supportformatting works without internet. javascript, python, and hubl all run client-side via webassembly
instant formattingall languages format in the browser with no server round-trip. lint diagnostics for javascript arrive asynchronously

principles

freeno accounts, no payment, no limits
privateno cookies, no tracking, no personal data. privacy-friendly analytics via vercel.
fastformatting powered by rust-based tools

support

codefmt is free and always will be. read our privacy policy. if it saves you time, consider supporting the project.