Sinatra like web toolkit for OCaml
Browse cluster: OCaml Systems and Utilities →Opium is a web toolkit for OCaml inspired by the Ruby framework Sinatra, built on the httpaf HTTP library and the lwt concurrency library. The project aims to be small, easily learnable, and extensible through a middleware system called Rock, enabling developers to quickly become productive building web applications. Opium supports core web features including routing with parameters, JSON and HTML request/response handling, file uploads, static file serving, authentication, and streaming responses, with examples demonstrating each capability.