A web app DSL that looks like:
GET /hello
|> jq: `{ world: ":)"}`
pipeline getPage =
|> jq: `{ sqlParams: [.params.id | tostring] }`
|> pg: `SELECT * FROM pages WHERE id = $1`
|> jq: `{ team: .data.rows[0] }`
GET /page/:id
|> pipeline: getPage
WIP article that explains more:https://williamcotton.com/articles/introducing-web-pipe
I would love feedback!