Skip to content
Fourohtwo

Pretty-print SQL so humans and agents can read and diff it

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

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. Ke

BasePolygonSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/sql-format

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/sql-format");
console.log(await res.json());

Example input

{"sql_b64":"d2l0aCByZWNlbnQgYXMgKHNlbGVjdCB1c2VyX2lkLCBjb3VudCgqKSBuIGZyb20gb3JkZXJzIG8gd2hlcmUgby5jcmVhdGVkX2F0ID4gbm93KCkgLSBpbnRlcnZhbCAnMzAgZGF5cycgYW5kIG8uc3RhdHVzIGluICgncGFpZCcsJ3NoaXBwZWQnKSBncm91cCBieSB1c2VyX2lkKSBzZWxlY3QgdS5pZCwgdS5lbWFpbCwgY29hbGVzY2Uoci5uLDApIGFzIG9yZGVycyBmcm9tIHVzZXJzIHUgbGVmdCBqb2luIHJlY2VudCByIG9uIHIudXNlcl9pZCA9IHUuaWQgd2hlcmUgdS5hY3RpdmUgPSB0cnVlIGFuZCAodS5wbGFu