Development Tools

Dream – tidy web framework for OCaml and ReasonML

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
DreamEasy-to-use, feature-laden, low-level boilerplate-free web framework
EliomFramework for building client/server web and mobile applications
OpiumSinatra like web toolkit based on http/af and lwt
morphTiny web framework for Reason and OCaml
ocaml-webmachineREST toolkit for OCaml

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted