Format source code with prettier (JS/TS/JSX, JSON, CSS/SCSS/Less, HTML, Vue, Ang
Format source code with prettier (JS/TS/JSX, JSON, CSS/SCSS/Less, HTML, Vue, Angular, Handlebars, Markdown/MDX, YAML, GraphQL) or SQL with sql-formatter. 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.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
890 msmedian answer time
$0.003listed price per call
$0.003price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://code.halowerk.com/v1/code-format
| Category | Code and developer |
|---|---|
| Provider host | code.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.003 | 988 ms |
| 2026-11-25 | valid payment request | 402 | $0.003 | 899 ms |
| 2026-11-24 | valid payment request | 402 | $0.003 | 904 ms |
| 2026-11-23 | valid payment request | 402 | $0.003 | 890 ms |
| 2026-11-22 | valid payment request | 402 | $0.003 | 866 ms |
| 2026-11-21 | valid payment request | 402 | $0.003 | 874 ms |
| 2026-11-20 | valid payment request | 402 | $0.003 | 885 ms |
Example input (from the provider)
{
"body": {
"code": "interface A{a:string;b?:number}\nconst x:A={a:\"1\"}",
"language": "typescript"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"code": {
"maxLength": 500000,
"type": "string"
},
"keyword_case": {
"default": "preserve",
"enum": [
"preserve",
"upper",
"lower"
],
"type": "string"
},
"language": {
"enum": [
"javascript",
"jsx",
"typescript",
"tsx",
"flow",
"json",
"json5",
"jsonc",
"css",
"scss",
"less",
"html",
"vue",
"angular",
"handlebars",
"markdown",
"mdx",
"yaml",
"graphql",
"sql",
"python",
"go",
"rust"
],
"type": "string"
},
"print_width": {
"default": 80,
"maximum": 200,
"minimum": 40,
"type": "integer"
},
"prose_wrap": {
"default": "preserve",
"enum": [
"always",
"never",
"preserve"
],
"type": "string"
},
"semi": {
"default": true,
"type": "boolean"
},
"single_quote": {
"default": false,
"type": "boolean"
},
"sql_dialect": {
"default": "sql",
"enum": [
"sql",
"mysql",
"mariadb",
"postgresql",
"bigquery",
"snowflake",
"duckdb",
"sqlite",
"tsql",
"redshift",
"trino",
"spark",
"db2",
"plsql"
],
"type": "string"
},
"tab_width": {
"default": 2,
"maximum": 8,
"minimum": 1,
"type": "integer"
},
"trailing_comma": {
"default": "all",
"enum": [
"all",
"es5",
"none"
],
"type": "string"
},
"use_tabs": {
"default": false,
"type": "boolean"
}
},
"required": [
"code",
"language"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}