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

Home.wf

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

Find your way

Four kinds of page, and each says which it is — so you know whether to study it or act on it.

Learn

Start with the first chapters, then read on: one path, chapter by chapter.

Getting started State and reactivity Tutorial: Shelf
Recipes

Complete, runnable answers to “how do I…”.

Debounce a search Add a dark-mode switch Deploy to GitHub Pages
Reference

Every built-in, command and setting, generated from the compiler.

Button Grid wf build
Errors

Every 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 text

Install

One binary, no Node. The first line installs it on Linux and macOS; the next two make a site and serve it.

bash

curl -sSL https://raw.githubusercontent.com/monzeromer-lab/WebFluent/master/install.sh | bash wf init my-site -t static cd my-site && wf serve