Dream is an easy-to-use, boilerplate-free Web framework, whose entire API fits on this page!
It supports TLS, WebSockets, and GraphQL. HTTP/2 support is transparent. It also includes:
- a nice log and OCaml runtime configuration;
- easy-to-use, secure helpers for round-tripping cookies and forms;
- templates that interleave OCaml with already-familiar HTML;
- a fully composable router;
- session management with pluggable back ends; and
- unified error handling that leaks no English strings from any level of your app.
You can integrate Dream into a fully self-contained binary, or run it in large deployments behind proxies. Dream assumes no databases, environment variables, or configuration files, and requires no setup beyond installing the one package,
Dream sticks to base OCaml types as much as possible, introducing only a few types of its own. Dream handlers and middlewares are just bare functions. Dream has a flat namespace and aims for maximal clarity.
This page is the API documentation, but Dream also has:
This thread was posted by one of our members via one of our news source trackers.