← Back to directory

Format source code with prettier (JS/TS/JSX, JSON, CSS/SCSS/Less, HTML, Vue, Ang...

https://code.halowerk.com/v1/code-format

Overview

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.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:00:15

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "code": "interface A{a:string;b?:number}\nconst x:A={a:\"1\"}", "language": "typescript" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "changed": true, "formatted": "interface A {\n a: string;\n b?: number;\n}\nconst x: A = { a: \"1\" };\n", "formatter": "prettier 3.9.10 (parser typescript)", "language": "typescript", "lines_after": 6, "lines_before": 2 }, "service": "code-format", "status": "success" }, "type": "json" }