package dream
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=23ed812890c03fe5c9974a4961a9e8e62126bed7bc7d7d1440b84652c95cf296
Description
Dream is a feature-complete Web framework with a simple programming model and no boilerplate. It provides only two data types, request and response.
Almost everything else is either a built-in OCaml type, or an abbreviation for a bare function. For example, a Web app, known in Dream as a handler, is just an ordinary function from requests to responses. And a middleware is then just a function from handlers to handlers.
Within this model, Dream adds:
- Session management with pluggable back ends.
- A fully composable router.
- Support for HTTP/1.1, HTTP/2, and HTTPS.
- WebSockets.
- GraphQL, including subscriptions and a built-in GraphiQL editor.
- SQL connection pool helpers.
- Server-side HTML templates.
- Automatic secure handling of cookies and forms.
- Unified, internationalization-friendly error handling.
- A neat log, and OCaml runtime configuration.
- Helpers for Web formats, such as Base64url, and a modern cipher.
Because of the simple programming model, everything is optional and composable. It is trivially possible to strip Dream down to just a bare driver of the various HTTP protocols.
Dream is presented as a single module, whose API is documented on one page. In addition, Dream comes with a large number of examples. Security topics are introduced throughout, wherever they are applicable.
Dependencies (33)
- yojson
-
uri
>= "4.2.0"
-
ssl
>= "0.5.8"
-
ptime
>= "0.8.1"
-
ocaml
>= "4.08.0"
- multipart_form-lwt
-
multipart_form
>= "0.4.0"
- mirage-crypto-rng-lwt
-
mirage-crypto-rng
>= "1.0.0"
-
mirage-crypto
>= "1.0.0"
-
mirage-clock
>= "3.0.0"
-
markup
>= "1.0.2"
- magic-mime
-
logs
>= "0.5.0"
- lwt_ssl
-
lwt_ppx
>= "1.2.2"
- lwt
-
lambdasoup
>= "0.6.1"
- graphql-lwt
- graphql_parser
-
fmt
>= "0.8.7"
-
dune
>= "2.7.0"
-
dream-pure
>= "1.0.0~alpha2"
-
dream-httpaf
>= "1.0.0~alpha4"
-
digestif
>= "0.7"
-
cstruct
>= "6.0.0"
-
ocaml
os = "win32"
-
conf-libev
os != "win32"
-
caqti-lwt
>= "2.0.0"
-
caqti
>= "2.0.0"
- camlp-streams
- bigarray-compat
- base-unix
Dev Dependencies (13)
-
tyxml-jsx
with-test
-
tyxml
with-test & >= "4.5.0"
-
reason
with-test
-
ppx_yojson_conv
with-test
-
ppx_expect
with-test & >= "v0.15.0" & < "v0.17.0"
-
js_of_ocaml-ppx
with-test
-
js_of_ocaml
with-test
-
html_of_jsx
with-test
-
crunch
with-test
-
caqti-driver-sqlite3
with-test
-
caqti-driver-postgresql
with-test
-
bisect_ppx
with-test & >= "2.5.0"
-
alcotest
with-test
Used by (19)
-
builder-web
>= "0.2.0"
- dream-accept
-
dream-cli
>= "0.2.0"
-
dream-encoding
>= "0.2.0"
- dream-html
- dream-htmx
-
dream-livereload
>= "0.2.0"
-
dream-serve
>= "1.0.1"
- FPauth
- FPauth-responses
- FPauth-strategies
- graphql_jsoo_client
- hyper
-
lambdapi
>= "2.4.0"
- ppx_dream_eml
- slipshow
- u2f
- universal-portal
-
webauthn
>= "0.2.0"
Conflicts
None