← Back to directory

Pretty-print SQL so humans and agents can read and diff it: each clause on its o...

https://agents.204-168-199-108.sslip.io/v1/util/sql-format

Overview

Pretty-print SQL so humans and agents can read and diff it: each clause on its own line (WITH, SELECT, FROM, JOINs, WHERE, GROUP BY, ORDER BY, LIMIT, UNION, INSERT/VALUES, UPDATE/SET, RETURNING, ON CONFLICT), select lists and AND/OR conditions indented, CTEs and subqueries nested, keywords upper- or lower-case. Also returns a one-line minified version (comments removed) and the statement count. Keeps strings, quoted identifiers, dollar-quoting, Postgres operators (::, ->>, #>

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider SQL formatter beautifier
Source bazaar
Indexed 2026-12-01 21:26:57

Health

Status healthy
Latency (p50) 116ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-12-05 14:37:02
Last Healthy 2026-12-05 14:37:02
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "sql_b64": "d2l0aCByZWNlbnQgYXMgKHNlbGVjdCB1c2VyX2lkLCBjb3VudCgqKSBuIGZyb20gb3JkZXJzIG8gd2hlcmUgby5jcmVhdGVkX2F0ID4gbm93KCkgLSBpbnRlcnZhbCAnMzAgZGF5cycgYW5kIG8uc3RhdHVzIGluICgncGFpZCcsJ3NoaXBwZWQnKSBncm91cCBieSB1c2VyX2lkKSBzZWxlY3QgdS5pZCwgdS5lbWFpbCwgY29hbGVzY2Uoci5uLDApIGFzIG9yZGVycyBmcm9tIHVzZXJzIHUgbGVmdCBqb2luIHJlY2VudCByIG9uIHIudXNlcl9pZCA9IHUuaWQgd2hlcmUgdS5hY3RpdmUgPSB0cnVlIGFuZCAodS5wbGFuID0gJ3Bybycgb3IgdS5wbGFuID0gJ3RlYW0nKSBvcmRlciBieSBvcmRlcnMgZGVzYyBsaW1pdCAxMA==", "uppercase": "true" }, "type": "http" }

Output Schema

{ "example": { "formatted": "WITH recent AS (\n SELECT\n user_id,\n COUNT(*) n\n FROM orders o\n WHERE o.created_at > now() - INTERVAL '30 days'\n AND o.status IN ('paid', 'shipped')\n GROUP BY\n user_id\n)\nSELECT\n u.id,\n u.email,\n COALESCE(r.n, 0) AS orders\nFROM users u\nLEFT JOIN recent r ON r.user_id = u.id\nWHERE u.active = TRUE\n AND (u.plan = 'pro' OR u.plan = 'team')\nORDER BY\n orders DESC\nLIMIT 10", "keyword_case": "upper", "lines": 21, "minified": "WITH recent AS (SELECT user_id, COUNT(*) n FROM orders o WHERE o.created_at > now() - INTERVAL '30 days' AND o.status IN ('paid', 'shipped') GROUP BY user_id) SELECT u.id, u.email, COALESCE(r.n, 0) AS orders FROM users u LEFT JOIN recent r ON r.user_id = u.id WHERE u.active = TRUE AND (u.plan = 'pro' OR u.plan = 'team') ORDER BY orders DESC LIMIT 10", "note": "Formatting only (no validation): clauses on new lines, select lists and AND/OR conditions indented, subqueries nested. Strings, quoted identifiers and comments are kept as written.", "statements": 1 }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 14:37:02 healthy 402 118ms
2026-12-05 13:36:37 healthy 402 112ms
2026-12-05 12:35:57 healthy 402 110ms
2026-12-05 11:41:22 healthy 402 116ms
2026-12-05 10:36:31 healthy 402 114ms
2026-12-05 09:35:27 healthy 402 121ms
2026-12-05 08:39:19 healthy 402 110ms
2026-12-05 07:35:31 healthy 402 127ms
2026-12-05 06:33:10 healthy 402 110ms
2026-12-05 05:33:20 healthy 402 2715ms
2026-12-05 03:45:08 healthy 402 113ms
2026-12-05 02:34:49 healthy 402 120ms
2026-12-05 01:33:47 healthy 402 114ms
2026-12-05 00:57:22 healthy 402 121ms
2026-12-04 17:45:29 healthy 402 664ms