Show HN: Spindle – a full-featured, type-safe web framework for OCaml 5
Spindle is a new web framework for OCaml that provides a type-driven API, deriving codecs, request validation, and other features to keep contracts in sync between server and client. It includes an RFC-strict HTTP server, WebSockets, SSE, and high-level primitives for building MCP servers, as well as production-ready essentials like distributed tracing and logging. Benchmarks show Spindle running up to 5 times faster than FastAPI on a single core. The framework is designed to be eio-native and multicore, with API documentation generated by Scalar and available at localhost:8080/docs.
Read the full article at github.com →