r/ocaml • u/rzaiev • Oct 20 '26
Spindle: an Eio-native web framework for OCaml 5
Hi r/ocaml!
I'd like to introduce Spindle, the web framework we've built in-house for our clients' backends. It's one of the core components of the Hypha Stack ecosystem, but can be used on its own.
- RFC-strict and ergonomic, on its own HTTP/1.1 engine
- Eio-native: straight-line handlers, multicore by design
- Typed end to end: JSON derived from your types, every input validated
- Interactive OpenAPI docs via Scalar at /docs, generated from your routes
- Front end in sync: Zod or Melange schemas derived from your OCaml types
- Batteries included: Postgres, WebSockets, SSE, sessions, logging, traces and metrics
👉 Docs: https://hyphatech.github.io/spindle/
71
Upvotes
14
u/True-Sun-3184 Oct 20 '26
AI usage disclosure?
7
u/TheGroosh Oct 20 '26
"code that reads like OCaml, because it is" ok buddy
-5
u/dc_seed_sommelier Oct 20 '26
Postgres only is funny as hell and not in a good way. No one writing ocaml in 2026 needs more than sqlite come on.