Show HN: Spindle – a full-featured, type-safe web framework for OCaml 5 github.c...
Show HN @show
Show HN: Spindle – a full-featured, type-safe web framework for OCaml 5 github.com · 2 points · 0 comments · HN thread
TL;DR Spindle is a new open-source web framework for OCaml 5 that is built on the Eio effects-based I/O library and aims for multicore parallelism. From a single set of OCaml types it derives JSON codecs, request validation, an OpenAPI spec with Scalar docs, and Zod or Melange schemas for the frontend. The project was posted as a Show HN with 2 points and no comments.
- Built on Eio and OCaml 5, with domains serving connections in parallel and each connection running in its own fiber.
- Derives JSON codecs, input validation with bounds like [@min] and [@max], OpenAPI docs and Zod or Melange schemas from OCaml types.
- Includes its own HTTP/1.1 engine that the authors say is tested against RFC 9112, 9110, 6455 (WebSockets), 7578 (forms) and RFC 9651 (Structured Fields).
- Ships WebSockets, SSE, sessions, rate limits, logging, tracing and OpenTelemetry-compatible metrics, plus SQLite and Postgres support and primitives for MCP servers.
- The README claims about 2x NestJS and 5x FastAPI throughput on a single core, and says speed was not the primary goal.
- Installed via opam from a separate opam repository (hypha); released under the MIT license.
Links in the post
- Spindle documentation: Project docs site with feature overview covering multicore design, typed APIs, RFC compliance, and observability.
Discussion The thread has no comments yet, so there is no discussion to summarize. The submission has 2 points and has not drawn any community reaction.