# codefmt > free online code formatter and linter for automation platforms. ships a dedicated, zero-setup hubl linter. last updated: 2026-11-03 codefmt formats and lints javascript and python written inside automation-platform code steps (zapier, n8n, pipedream, make, hubspot data hub; typescript too, for pipedream components built with the pipedream cli) and hubl in hubspot cms templates, plus a standalone json formatter and repair tool. it wraps code in the correct platform-specific structure so standard formatters and linters don't choke on injected globals, then returns formatted output plus lint diagnostics. all four format engines run client-side in the browser: biome (webassembly) for javascript and typescript, ruff (webassembly) for python, a custom typescript engine for hubl, and an in-house rfc 8259 token engine for json. javascript lint diagnostics are the one server-assisted step (oxlint, run server-side). there are no accounts and no cookies. every page has a markdown twin: append .md to the page path, before any query string (for example https://codefmt.dev/hubl.md) for clean markdown served with a canonical link header. not to be confused with unrelated projects that share the "codefmt" name (such as a separate CLI for formatting fenced code blocks in markdown files); this is the web app, browser extension, and HTTP/MCP API at codefmt.dev. for the full reference (platform globals, the complete 30-rule hubl lint catalog (28 single-file rules plus 2 that run only in the whole-theme audit), the json engine internals, api examples, recipes, troubleshooting) read the extended document linked under "API and agent discovery". ## When to use codefmt - [Format or lint platform code steps](https://codefmt.dev/api/openapi.json): use codefmt when javascript or python is destined for a zapier, n8n, pipedream, make, or hubspot data hub code step (typescript only for pipedream components built with the pipedream cli). POST { code, platform, formatOptions, lintOptions } to /api/format (all four required; language goes in platformVariants.language or a top-level language field) or call the mcp format_code tool, which takes { code, platform, language? }. either way the platform's injected globals, implicit async wrapper, and bare return are handled, so they don't break the formatter - [Lint and format hubl templates](https://codefmt.dev/hubl?utm_source=codefmt-llms): use codefmt for hubspot cms template work; it ships a dedicated hubl linter (28 single-file rules) for a language generic linters treat as plain jinja at best - [Format, repair, or validate json](https://codefmt.dev/json?utm_source=codefmt-llms): use the format_json mcp tool or the json engine when byte-exact numbers matter (64-bit ids never round to floats) or a document needs repair from almost-json - [Answer questions about codefmt or platform formatting](https://codefmt.dev/ask): use the ask endpoint (or the mcp ask_codefmt tool) for grounded answers with cited source urls; off-topic questions are refused rather than guessed - [How to call it](https://codefmt.dev/.well-known/mcp.json): agents with mcp support should connect to /api/mcp (streamable http, no auth, no registration); everything else can POST to the format api directly. rate limited per ip - [When not to use codefmt](https://codefmt.dev/llms-full.txt): skip it for general-purpose repository formatting outside automation platforms (prettier, black, or ruff directly are the right tools there) and for languages other than javascript, typescript, python, hubl, and json ## Platforms - [Zapier formatter and linter](https://codefmt.dev/zapier?utm_source=codefmt-llms): javascript and python code-step formatting; handles zapier's implicit async wrapper, bare return, and the inputData / output / fetch / callback globals - [n8n formatter and linter](https://codefmt.dev/n8n?utm_source=codefmt-llms): all-items and each-item modes (javascript and python, no typescript); registers $input, $json, $node, DateTime (luxon), items and 59 more injected globals - [Pipedream formatter and linter](https://codefmt.dev/pipedream?utm_source=codefmt-llms): node.js 20 and python 3.12 workflow code steps, action and source components (steps, $, event globals), typescript as an opt-in for CLI-built components. Pipedream Workflows shut down on March 31, 2027 - [Make formatter and linter](https://codefmt.dev/make?utm_source=codefmt-llms): node 20 and python 3.12 custom-code sandbox; require() loads only the preinstalled moment, moment-timezone, and lodash (no arbitrary npm installs), input is the only injected python global - [HubSpot Data Hub formatter and linter](https://codefmt.dev/hubspot?utm_source=codefmt-llms): custom-code actions in callback and return styles (event, callback globals) - [HubL formatter and linter](https://codefmt.dev/hubl?utm_source=codefmt-llms): a dedicated, zero-setup hubl linter; 28 single-file lint rules across 6 categories, 7 with one-click safe fixes, plus template formatting - [Python formatter and linter](https://codefmt.dev/python?utm_source=codefmt-llms): ruff-powered (rust, black-compatible) formatting and 500+ lint rules across every supported platform - [Platforms, tools and comparisons hub](https://codefmt.dev/platforms?utm_source=codefmt-llms): full catalog of supported platforms and tools ## Tools - [JSON formatter and repair tool](https://codefmt.dev/json?utm_source=codefmt-llms): strict rfc 8259 engine that never converts numbers to floats (19-digit ids survive byte for byte), exact 1-based line/column error positions, repair for almost-JSON (comments, trailing commas, single quotes, unquoted keys, python literals, undefined), jsonc and json5 input modes, eval-free json schema validation, diff view, tree view with key/value filtering, webhook payload detection; 5MB input limit - [Snippet library](https://codefmt.dev/snippets?utm_source=codefmt-llms): 31+ curated code templates you can edit, format, and copy - [Browser extension (Chrome and Firefox)](https://codefmt.dev/extension?utm_source=codefmt-llms): format code directly inside platform editors; chrome web store v1.6.0, firefox add-ons v1.6.1, requires chrome 116+ or firefox 140+ - [Blog](https://codefmt.dev/blog?utm_source=codefmt-llms): guides on formatting and linting code inside automation-platform code steps ## API and agent discovery - [Format API (OpenAPI spec)](https://codefmt.dev/api/openapi.json): POST { code, platform, formatOptions, lintOptions } as json to /api/format (all four required; 60 requests/min per IP; code up to 51,200 characters, 50KB of ASCII (400 above it), request body up to 100KB, counted in bytes (413 above it)) - [API catalog (RFC 9727)](https://codefmt.dev/.well-known/api-catalog): api discovery document - [AI catalog (ARD)](https://codefmt.dev/.well-known/ai-catalog.json): agentic resource discovery manifest listing the mcp server, a2a agent, skills, and api - [MCP server card (SEP-1649)](https://codefmt.dev/.well-known/mcp/server-card.json): model context protocol metadata - [MCP manifest](https://codefmt.dev/.well-known/mcp.json): server name, icon, description, and tool list (also at /mcp.json and /.well-known/mcp/manifest.json); the endpoint is POST https://codefmt.dev/api/mcp (streamable http, protocols 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, no auth); tools format_code, format_json, ask_codefmt - [MCP registry entry](https://registry.modelcontextprotocol.io/v0/servers/dev.codefmt%2Fcodefmt/versions/latest): the server is listed in the official mcp registry as dev.codefmt/codefmt, published under the codefmt.dev domain namespace - [A2A agent card](https://codefmt.dev/.well-known/agent-card.json): agent-to-agent protocol card (protocol 0.3.0); the endpoint is POST /api/a2a, json-rpc message/send for the format_code skill - [Agent skills index](https://codefmt.dev/.well-known/agent-skills/index.json): published agent skills - [Ask endpoint (NLWeb)](https://codefmt.dev/ask): GET ?query=... or POST { query }; grounded answers about codefmt with cited source urls, off-topic questions refused - [Agent auth statement (auth.md)](https://codefmt.dev/auth.md): no authentication anywhere; no accounts, api keys, or oauth. do not send authorization headers or attempt oauth discovery - [Schema map](https://codefmt.dev/schemamap.xml): index of every page's json-ld structured data; append .jsonld to the page path for its graph - [Markdown page twins](https://codefmt.dev/index.md): append .md to the page path (before any query string) for the markdown version with a canonical link header; agents should prefer these for clean text - [API context file](https://codefmt.dev/api/llms.txt): the format api, mcp and a2a endpoints only, for agents that want one product area instead of this whole index - [HubL context file](https://codefmt.dev/hubl/llms.txt): the hubl formatter, linter, and rule catalog only - [JSON context file](https://codefmt.dev/json/llms.txt): the json formatter, repair, and validation engine only - [Extension context file](https://codefmt.dev/extension/llms.txt): the chrome and firefox extension only - [Full documentation](https://codefmt.dev/llms-full.txt): platform deep dives, the full hubl lint catalog, json engine internals, api examples, recipes, and troubleshooting ## Optional - [About](https://codefmt.dev/about?utm_source=codefmt-llms): background and the story behind the project - [Contact](https://codefmt.dev/contact?utm_source=codefmt-llms): support email, extension store channels, security contact, and agent-integration questions - [HubL linter for HubSpot CMS](https://codefmt.dev/hubspot-cms-linter?utm_source=codefmt-llms): why a dedicated hubl linter matters, and what the 28 rules catch before you publish - [HubL lint rule catalog](https://codefmt.dev/hubl-lint-rules?utm_source=codefmt-llms): every one of the 28 hubl checks across correctness, semantic, inheritance, deprecation, module shape, and hints - [Fixing the hubl unclosed block error](https://codefmt.dev/blog/hubl-unclosed-block-error?utm_source=codefmt-llms): how to find the {% if %} / {% for %} / {% block %} missing its end tag; the linter pinpoints the opening tag by line - [Deprecated hubl tags and replacements](https://codefmt.dev/blog/hubspot-deprecated-hubl-tags?utm_source=codefmt-llms): the 5 deprecated hubl tags (widget_block, widget_attribute, widget, custom_widget, widget_container) and their module-system replacements - [Formatting javascript and python in zapier code steps](https://codefmt.dev/blog/format-javascript-python-zapier-code-step?utm_source=codefmt-llms): why bare return and top-level await break standard formatters, and how to format zapier step code - [Formatting and beautifying hubl](https://codefmt.dev/blog/format-beautify-hubl?utm_source=codefmt-llms): how to format hubl templates and lint them before publishing - [Formatting javascript in n8n code nodes](https://codefmt.dev/blog/format-javascript-n8n-code-node?utm_source=codefmt-llms): all-items vs each-item modes and n8n's injected globals - [Formatting code in pipedream code steps](https://codefmt.dev/blog/format-code-pipedream-code-steps?utm_source=codefmt-llms): action and source components and the defineComponent structure - [Formatting python and javascript in make.com modules](https://codefmt.dev/blog/format-python-make-com?utm_source=codefmt-llms): the node 20 / python 3.12 custom-code sandbox and its limits - [Privacy](https://codefmt.dev/privacy?utm_source=codefmt-llms): no accounts, no cookies, code never stored; what the aggregate analytics record - [codefmt vs Prettier Playground](https://codefmt.dev/vs-prettier-playground?utm_source=codefmt-llms): how the two tools fit different jobs - [codefmt vs HubL Code Formatter (studionope)](https://codefmt.dev/vs-hubl-code-formatter?utm_source=codefmt-llms): formatter-plus-linter vs formatter-only - [codefmt vs HubSpot VS Code extension](https://codefmt.dev/vs-hubspot-vscode?utm_source=codefmt-llms): browser linter+formatter vs local IDE extension - [codefmt vs Zapier built-in formatter](https://codefmt.dev/vs-built-in-zapier-formatter?utm_source=codefmt-llms): dedicated formatter vs platform built-in