package dream-inertia

  1. Overview
  2. Docs
Inertia protocol for OCaml Dream

Install

Dune Dependency

Authors

Maintainers

Sources

dream-inertia-0.0.1.tbz
sha256=f06fdf957a9719fc7b1a1263337fab8370390cd6b0046fc706d4479824611e89
sha512=52248f1c428fdc21404748167303dbf64bc972ae4b133f1be4551972ca60b2f31c78577d9d47d587c604fc8bb0bc460d71ab2af309e5593ee02c1278fb226e3b

Description

Server side implementation of the Inertia protocol for OCaml Dream web framework

Tags

inertia dream protocol web

Published: 05 May 2025

README

dream-inertia

Description

This is a OCaml implementation of the Inertia protocol for the Dream web framework. It allows you to build single-page applications (SPAs) using Inertia.js and OCaml.

Features

  • Support for client-side rendering (CSR)
  • Support for shared data
  • Support for merged props
  • Support for always and optional props
  • Support for CSRF token
  • Support for history encryption

Installation

To install the package, use OPAM:

opam install dream-inertia

Alternatively, you can use nix to install the package.

Documentation

The documentation is available at https://naora.github.io/dream-inertia/dream-inertia/Dream_inertia/index.html.

License

This project is licensed under the MIT License. See the LICENSE file for details.

TODO

  • Support for Inertia.js
  • Support for Dream web framework
  • Support for OCaml
  • Support for server-side rendering (SSR)
  • Support for client-side rendering (CSR)
  • Support for shared data
  • Support for location method
  • Support for merged props
  • Support for always props
  • Support for optional props
  • Support for CSRF token
  • Support for history encryption
  • Support for SSR
  • Support for error validation on backend side

Dependencies (6)

  1. dune >= "3.14"
  2. ppx_yojson_conv
  3. yojson
  4. fmt
  5. dream >= "1.0.0~alpha8"
  6. ocaml

Dev Dependencies (3)

  1. odoc with-doc
  2. lwt_ppx with-test
  3. ocamlformat with-dev-setup

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.