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.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

