# lustre-labs/lustre

A Gleam web framework for building HTML templates, single page applications, and real-time server components.

Repository: https://github.com/lustre-labs/lustre
Canonical: https://ross.abutalabs.com/products/lustre
Homepage: https://hexdocs.pm/lustre
Language: Gleam
License: MIT
License Family: permissive
Last push: 2026-08-23T13:30:06+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 83, longevity 100
- inputs: {"age_days": 1665, "days_push": 10, "days_rel": 119, "gap_med": 9.0, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2417, forks 150 (observed 2026-08-28T04:06:50.419205+00:00)

## What it is
Lustre is a Gleam web framework for building HTML templates, single-page applications, Web Components, and real-time server components. It uses an Elm/Erlang-inspired architecture with declarative rendering, message-based state management, and managed side effects, plus server-side rendering and a batteries-included CLI.

## Use cases
- build a single page application in Gleam
- render HTML templates server-side
- create real-time server components like Phoenix LiveView
- build web components with a functional API
- manage frontend state with the Elm architecture
- generate static HTML files from Gleam code

## When to choose
- you want to write frontend apps in Gleam with a functional, declarative style
- you prefer an opinionated framework with one way to do things
- you need both client-side SPAs and server-rendered HTML from the same codebase
- you want LiveView-style real-time server components

## When to avoid
- your team works primarily in JavaScript or TypeScript ecosystems like React or Vue
- you need a large ecosystem of third-party UI components and plugins
- you want maximum flexibility and minimal framework opinions
- you are not willing to learn Gleam

## Facets
- artifact type: framework
- maturity: active
- function: frontend-framework, templating, ssr, state-management, static-site-generator, cli
- domain: web-development, frontend, developer-tools
- platform: browser, elixir
- tags: gleam, elm-architecture, liveview, web-components, spa, html-templates, server-components, web-server, javascript

## Member repositories
- lustre-labs/lustre (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.419205+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-30T02:33:07.863477+00:00, confidence not recorded.
  - readme: https://github.com/lustre-labs/lustre (fetched 2026-08-28T04:06:50.419205+00:00, sha 13b7b5da705a)
  - homepage: https://hexdocs.pm/lustre (fetched 2026-08-29T10:13:41.862825+00:00, sha 81a4ad003dfd)
  - site_page: https://lustre.hexdocs.pm/changelog.html (fetched 2026-08-29T10:13:41.856411+00:00, sha 0fa3fe2153af)
  - site_page: https://lustre.hexdocs.pm/guide/01-quickstart.html (fetched 2026-08-29T10:13:41.858639+00:00, sha b622458a763b)
  - site_page: https://hexdocs.pm/lustre/guide/01-quickstart.html (fetched 2026-08-29T10:13:41.860796+00:00, sha 0afad14df022)
- Data as of 2026-08-30T08:39:29.467469+00:00.
