# Dream

OCaml web framework built from plain handler and middleware functions, with routing, sessions, WebSockets, GraphQL and HTTPS support.


Source: https://findsoftware.frbit.cloud/dream/
Last reviewed: 2026-10-26
Listed since: 2026-10-26

## Record

### Links

- home: https://camlworks.github.io/dream/
- repository: https://github.com/camlworks/dream
- docs: https://camlworks.github.io/dream/
- discord: https://discord.gg/2JTYRq2rYh
- forum: https://discuss.ocaml.org/

### Identity

- status: active
- maintainer: Anton Bachin
- maintainerType: unknown
- parent: unknown
- firstRelease: 2021
- hqCountry: unknown

### Kind

- category: framework
- hosting: binary
- language: ocaml
- runtime: binary
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: unknown
- databases: unknown
- adminUi: unknown
- headlessApi: unknown
- templating: embedded ocaml
- i18n: unknown

### Rendering and deploy

- runsAs: always-on
- renderingModes: unknown
- installMethod: opam install dream

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-10-07

### Adoption

- githubStargazers: 1897
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 59
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://camlworks.github.io/dream/ (read 2026-10-26)
- urls: https://api.github.com/repos/camlworks/dream (read 2026-10-26)
- urls: https://camlworks.github.io/dream/ (read 2026-10-26)
- category: https://camlworks.github.io/dream/ (read 2026-10-26)
- language: https://api.github.com/repos/camlworks/dream (read 2026-10-26)
- runtime: https://camlworks.github.io/dream/ (read 2026-10-26)
- installMethod: https://camlworks.github.io/dream/ (read 2026-10-26)
- installMethod: https://github.com/camlworks/dream/blob/master/README.md (read 2026-10-26)
- templating: https://camlworks.github.io/dream/ (read 2026-10-26)
- runsAs: https://github.com/camlworks/dream/blob/master/example/README.md (read 2026-10-26)
- license: https://api.github.com/repos/camlworks/dream (read 2026-10-26)
- licenseModel: https://github.com/camlworks/dream/blob/master/LICENSE.md (read 2026-10-26)
- maintainer: https://github.com/camlworks/dream/blob/master/LICENSE.md (read 2026-10-26)
- firstRelease: https://api.github.com/repos/camlworks/dream/releases (read 2026-10-26)
- currentMajor: https://api.github.com/repos/camlworks/dream/releases (read 2026-10-26)
- latestReleaseDate: https://api.github.com/repos/camlworks/dream/releases (read 2026-10-26)
- githubStargazers: https://api.github.com/repos/camlworks/dream (read 2026-10-26)
- contributors: https://api.github.com/repos/camlworks/dream/contributors (read 2026-10-26)

## Notes

Dream is a web framework for OCaml. A project installs the dream package with opam or esy and writes its handlers as plain functions, composed with middleware and routes. The framework covers WebSockets, GraphQL, HTML templates written with embedded OCaml, sessions and HTTPS. Anton Bachin holds the copyright.

## Worth knowing

The project's examples include running Dream on a server as a systemd daemon, so a Dream application is a process that stays running rather than a set of static files.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
