← All repos

opium

Sinatra like web toolkit for OCaml

Browse cluster: OCaml Systems and Utilities
847commits
40contributors
6languages

Tech stack & purpose

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.

Community & reference links

Languages

OCaml
96.5%
Makefile
1.2%
HTML
0.8%
Dune
0.7%
Nix
0.6%
Shell
0.2%

Contributors (top 30 of 40)