# camlworks/dream

Tidy, feature-complete Web framework

Repository: https://github.com/camlworks/dream
Canonical: https://ross.abutalabs.com/products/dream
Homepage: https://camlworks.github.io/dream/
Language: OCaml
License: MIT
License Family: permissive
Topics: ocaml, web, framework, reasonml, http, websockets, graphql
Last push: 2026-05-23T18:26:29+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 83, release rhythm 8, longevity 100
- inputs: {"age_days": 2004, "days_push": 102, "days_rel": 640, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1878, forks 156 (observed 2026-08-28T04:05:47.955291+00:00)

## What it is
Dream is a tidy, feature-complete web framework for OCaml and ReasonML with a flat, one-module API. It supports WebSockets, GraphQL, HTTP/2, TLS, sessions, secure cookies, CSRF-safe forms, and HTML templating with embedded OCaml.

## Use cases
- build web apps in OCaml without boilerplate
- serve WebSockets and GraphQL from an OCaml backend
- run HTTPS and HTTP/2 without a reverse proxy
- create secure forms and cookie-based sessions
- write full-stack OCaml apps with Melange or js_of_ocaml frontends
- compose middleware and routes as plain functions

## When to choose
- you are building a web server or API in OCaml or ReasonML
- you want a batteries-included framework with security helpers built in
- you prefer a small, flat API with minimal custom types
- you need transparent HTTP/2 and TLS without a proxy

## When to avoid
- you need an ecosystem in a mainstream language like Python, Node, or Go
- you want a highly opinionated, batteries-heavy framework with ORMs and admin panels
- your team has no OCaml experience

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, http-server, websocket, graphql, routing, middleware, templating, logging, error-handling, cryptography
- domain: web-development, backend, apis
- platform: cross-platform, windows
- tags: ocaml, reasonml, http2, tls, sessions, csrf-protection, melange, js-of-ocaml, linux, macos

## Member repositories
- camlworks/dream (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.955291+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:14:38.962455+00:00, confidence not recorded.
  - readme: https://github.com/camlworks/dream (fetched 2026-08-28T04:05:47.955291+00:00, sha 04e2b2138aee)
  - homepage: https://camlworks.github.io/dream/ (fetched 2026-08-29T10:53:18.893001+00:00, sha d03b0f0e87ea)
- Data as of 2026-08-30T08:39:29.467469+00:00.
