Dream is a tidy, feature-complete web framework. It adheres 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.
Dream has a simple programming model where web apps are just functions.
This is free and open source software.
Key Features
- Supports TLS, WebSockets, and GraphQL.
- HTML templates with embedded OCaml or Reason — use existing skills!
- Sessions with pluggable storage back ends.
- Composable middleware and routes.
- Easy HTTPS and HTTP/2 support — Dream runs without a proxy.
- Helpers for secure cookies and CSRF-safe forms. Cryptography helpers, key rotation, and a chosen cipher.
- Full-stack ML with clients compiled by Melange, ReScript, or js_of_ocaml.
- Log and OCaml runtime configuration.
- Easy-to-use, secure helpers for round-tripping cookies and forms.
- Templates that interleave OCaml with already-familiar HTML.
- Fully composable router.
- Session management with pluggable back ends.
- Unified, internationalization-friendly error handling that leaks no English strings from any level of your app.
Website: amlworks.github.io/dream
Support: GitHub Code Repository
Developer: Anton Bachin
License: MIT License
Dream is written in OCaml. Learn OCaml with our recommended free books and free tutorials.
Related Software
| OCaml Web Frameworks | |
|---|---|
| Dream | Easy-to-use, feature-laden, low-level boilerplate-free web framework |
| Eliom | Framework for building client/server web and mobile applications |
| Opium | Sinatra like web toolkit based on http/af and lwt |
| morph | Tiny web framework for Reason and OCaml |
| ocaml-webmachine | REST toolkit for OCaml |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.