Codewerk
code format
Runs prettier 3.9.10 with the chosen options and returns the formatted text plus whether anything changed. SQL is formatted with sql-formatter 15.9.0 for the selected dialect. Python (black), Go (gofmt) and Rust (rustfmt) are NOT available: these formatters are native tools that are not installed, so such requests are rejected with a hint instead of being imitated. Syntax errors are reported with line and column. No configuration files or plugins are loaded.
POST https://code.halowerk.com/v1/code-formatInputs
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Source text to format. |
| language | string | Yes | Language of the code; python/go/rust are rejected (formatter not available). |
| print_width | integer | No | |
| tab_width | integer | No | |
| use_tabs | boolean | No | |
| semi | boolean | No | JS/TS: print semicolons. |
| single_quote | boolean | No | JS/TS/CSS: prefer single quotes. |
| trailing_comma | string | No | |
| prose_wrap | string | No | Markdown: wrap prose. |
| sql_dialect | string | No | SQL only: dialect for sql-formatter. |
| keyword_case | string | No | SQL only: keyword case. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"code",
"language"
],
"properties": {
"code": {
"type": "string",
"maxLength": 500000,
"description": "Source text to format."
},
"language": {
"type": "string",
"enum": [
"javascript",
"jsx",
"typescript",
"tsx",
"flow",
"json",
"json5",
"jsonc",
"css",
"scss",
"less",
"html",
"vue",
"angular",
"handlebars",
"markdown",
"mdx",
"yaml",
"graphql",
"sql",
"python",
"go",
"rust"
],
"description": "Language of the code; python/go/rust are rejected (formatter not available)."
},
"print_width": {
"type": "integer",
"minimum": 40,
"maximum": 200,
"default": 80
},
"tab_width": {
"type": "integer",
"minimum": 1,
"maximum": 8,
"default": 2
},
"use_tabs": {
"type": "boolean",
"default": false
},
"semi": {
"type": "boolean",
"default": true,
"description": "JS/TS: print semicolons."
},
"single_quote": {
"type": "boolean",
"default": false,
"description": "JS/TS/CSS: prefer single quotes."
},
"trailing_comma": {
"type": "string",
"enum": [
"all",
"es5",
"none"
],
"default": "all"
},
"prose_wrap": {
"type": "string",
"enum": [
"always",
"never",
"preserve"
],
"default": "preserve",
"description": "Markdown: wrap prose."
},
"sql_dialect": {
"type": "string",
"enum": [
"sql",
"mysql",
"mariadb",
"postgresql",
"bigquery",
"snowflake",
"duckdb",
"sqlite",
"tsql",
"redshift",
"trino",
"spark",
"db2",
"plsql"
],
"default": "sql",
"description": "SQL only: dialect for sql-formatter."
},
"keyword_case": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"description": "SQL only: keyword case."
}
}
}Published input example
{
"language": "typescript",
"code": "interface A{a:string;b?:number}\nconst x:A={a:\"1\"}"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea