Websites, apps, PDFs, slides
One language. Every page it makes is checked.
WebFluent compiles one typed file to a static site, an app, a PDF or a slide deck — and every example in these docs is compiled by the release it documents.
curl -sSL https://raw.githubusercontent.com/monzeromer-lab/WebFluent/master/install.sh | bash
page Home(path: "/", title: "Hello") {
state count = 0
Heading("Hello, WebFluent").h1
Text(if count == 1 { "Clicked once" } else { "Clicked {count} times" })
Button("+1").primary {
on click { count = count + 1 }
}
}
Hello, WebFluent
Clicked 0 times
Compiled by WebFluent 7.1 when this site was built
What are you making?
Each output, and the page that shows how to make one.
A website
Static, pre-rendered, a fast first paint
wf init -t static
A web app
Routes, stores, live data
wf init -t spa
A PDF
Reports, invoices, CVs — no browser needed
wf init -t pdf
A slide deck
One slide, one page
wf init -t slides
Custom elements
Drop into React, Rails or WordPress
output_type: elements
A desktop or phone app
The same project in Tauri or Electron
wf build → Tauri
Coming from somewhere?
A cheat sheet for what you already know, and the habits that will trip you.
Find your way
Four kinds of page, and each says which it is — so you know whether to study it or act on it.
Start with the first chapters, then read on: one path, chapter by chapter.
Getting started State and reactivity Tutorial: ShelfComplete, runnable answers to “how do I…”.
Debounce a search Add a dark-mode switch Deploy to GitHub PagesEvery diagnostic has a page: the code that draws it, the message and the fix.
T05: a field that does not exist E002: a syntax error A05: a button with no textInstall
One binary, no Node. The first line installs it on Linux and macOS; the next two make a site and serve it.
curl -sSL https://raw.githubusercontent.com/monzeromer-lab/WebFluent/master/install.sh | bash
wf init my-site -t static
cd my-site && wf serve

