Project record1 mention
Originally shared on Hacker News
Web Pipe
A DSL for building web applications in which routes are declared as pipelines that transform data with jq expressions and query PostgreSQL via pg, with reusable named pipelines composed into route handlers.
01 / Source history
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Web Pipe
A DSL for building web applications in which routes are declared as pipelines that transform data with jq expressions and query PostgreSQL via pg, with reusable named pipelines composed into route handlers.
Posted by @williamcotton · Original source ↗
Source text · @williamcotton · · Source ↗
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