Free launches are open: 12 a day, and open-source projects get a dofollow link with no badge.

Submit

Spindle

Fast, RFC-strict web framework for modern OCaml.

Developer ToolsOpen sourceOpen source · verified#ocaml#web-framework#http

Listed by the ProductPerch team from Hacker News · not launched here yet

What is Spindle?

Spindle is a web framework designed for modern OCaml. It provides a fast and ergonomic way to build HTTP servers that strictly follow RFC standards for HTTP/1.1, WebSockets, forms, and structured fields. The framework uses Eio for straight-line handlers on OCaml 5, making it multicore by design.

It enforces type safety end to end by deriving JSON formats directly from OCaml types and validating every input. Developers can generate interactive OpenAPI documentation using Scalar automatically from their route definitions. The system also keeps frontend schemas in sync with backend types using Zod or Melange.

Spindle includes built-in support for SQLite and PostgreSQL databases, along with WebSockets, Server-Sent Events, session management, logging, tracing, and metrics. Installation is handled through the OPAM package manager and integrates with Dune for project builds.

Spindle features

  • RFC-strict HTTP/1.1 engine covering multiple RFCs
  • Eio-native architecture with multicore support on OCaml 5
  • End-to-end type safety with automatic JSON derivation
  • Automatic OpenAPI documentation generation via Scalar
  • Frontend schema synchronization using Zod or Melange
  • Built-in SQLite and PostgreSQL database drivers
  • Support for WebSockets, SSE, sessions, logging, and metrics

Who uses Spindle and for what

  • Building high-performance REST APIs with strict HTTP compliance
  • Creating real-time applications using WebSockets and Server-Sent Events
  • Generating shared type definitions between OCaml backends and JavaScript frontends
  • Setting up lightweight web services backed by SQLite or PostgreSQL
  • Deploying multicore web applications that require efficient concurrency

Spindle FAQ

Is Spindle free?

Yes, Spindle is released under the MIT license and is free to use.

Is Spindle open source?

Yes, the source code is publicly available on GitHub under an MIT license.

What is Spindle used for?

It is a web framework for modern OCaml used to build fast, RFC-compliant HTTP servers and APIs.

Does Spindle work on Mac?

The website does not say which operating systems are supported.

What version of OCaml does Spindle require?

It is designed for OCaml 5 and uses Eio for its runtime.

Does Spindle support databases?

Yes, it includes built-in support for both SQLite and PostgreSQL.

Comments (0)

Comments and upvotes open when this product launches on ProductPerch.

More Developer Tools launches

All Developer Tools tools

Launch packs

Buy paid launches