Repository

mishabunte/pgxio

pgxio

Open github.com

mishabunte/pgxio

pgxio

A lightweight, SQL-first REST and WebSocket backend implemented as a Rust Nginx dynamic module with nonblocking libpq. Exposes PostgreSQL functions via HTTP with JWT auth and real-time notifications.

Visit project

Show me a random project

First shared
Nov 9, 2026
HN activity
100

Show HN@hitoNov 9, 2026

Show HN: Pgxio – a tiny PostgreSQL layer inside Nginx

I built the first version of this stuff a decade ago as ethanolus (c2h5oh). And I've used it for most of my projects as a backend layer since then. The main motive is to eliminate unnecessary complexity from backend layers. How it works: a rust nginx module calls postgresql functions via non-blocking libpq io. There is an optional patch for libpq. It provides zero-copy for nginx-chained memory buffers - to avoid request body copies between nginx and libpq. Pgxio supports http2 and websockets. Realtime listen/notify updates from postgres without polling. How to try - code on github. Tested on Debian - FreeBSD validation in progress. It's alpha - so any feedback is welcome.

Community

Hacker News discussion

Loading the thread…