Spindle: New Type-Safe Web Framework for OCaml 5 Launches on Hacker News
Spindle is a web framework for OCaml 5 designed to be multicore-by-design and built natively on eio. Its core approach uses an expressive, type-driven API from which codecs, request validation, OpenAPI specs, and Zod and Melange frontend schemas are derived, keeping server and client contracts aligned. The framework includes an RFC-strict HTTP server, composable dependencies, WebSockets, SSE, and primitives for building MCP servers. It also offers production features such as distributed tracing, OpenTelemetry-compatible metrics, and logging. The developers report benchmark results of roughly twice NestJS and five times FastAPI's speed on a single core, though they state speed was not the primary goal.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in