Lustre
Gleam web framework for building HTML templates, single page applications, Web Components and real-time server components.
hexdocs.pm/lustrerepositorydocs
Lustre is a web framework written in Gleam for HTML templates, single page applications, Web Components and real-time server components. Its README describes an API for constructing HTML from Gleam functions with no separate template files, and an architecture inspired by Elm and Erlang for managing state. A project adds it with gleam add lustre.
A full-stack Lustre app has a client part that compiles to JavaScript and a server part that compiles to Erlang. The full-stack deployment guide builds both into one Docker image and names Fly.io as an example platform.
Worth knowing
A full-stack app needs an Erlang runtime for its server as well as the browser bundle, so that deployment is a running server process. A Lustre single page application without a backend can instead be hosted on static hosting services, as the SPA deployment guide describes.
Identity
Rendering and deploy
- Runs as
- Always on, Static files78
- Rendering
- On a server, In the browser9
- Install with
- gleam add lustre3
Releases
Adoption
Sources
- 2026-10-26: links
hexdocs.pm/lustre - 2026-10-26: links, Written in, License, GitHub stars
api.github.com/repos/lustre-labs/lustre - 2026-10-26: links, Install with
github.com/lustre-labs/lustre/blob/main/README.md - 2026-10-26: First release, Last release
hex.pm/api/packages/lustre - 2026-10-26: Maintainer, License model
raw.githubusercontent.com/lustre-labs/lustre/main/LICENSE - 2026-10-26: Categories
github.com/lustre-labs/lustre/blob/main/gleam.toml - 2026-10-26: Runtime, Runs as
hexdocs.pm/lustre/guide/07-full-stack-deployments.html - 2026-10-26: Runs as
hexdocs.pm/lustre/guide/04-spa-deployments.html - 2026-10-26: Rendering
hexdocs.pm/lustre/guide/05-server-side-rendering.html - 2026-10-26: Contributors
api.github.com/repos/lustre-labs/lustre/contributors?per_page=1 - 2026-10-26: Current major version
api.github.com/repos/lustre-labs/lustre/releases