Documentation
Everything Alcove does, with a demo
Everything Alcove does, in twenty-three short sections. Each one ends with a live demo running on this server.

Quick start
A site in three steps
Alcove is one Go program with no other runtime. SQLite is built in.
- (I)
Build the binary
In the Alcove source folder, with Go 1.27:
go build -o alcove . - (II)
Write a page and its template
mysite/content/pages/index.yamlslug: "" title: Hello alcove: hellomysite/content/alcoves/hello/blueprint.html<!DOCTYPE html> <title>{{ page.title }}</title> <h1>{{ page.title }}, world</h1> - (III)
Run it
./alcove -dir mysite/content -port 8080Open
http://localhost:8080. Edit a file and the site rebuilds by itself.
Contents
Five parts
This list is two alcoves: the parts are inline rows in YAML, and each part includes an alcove that reads its sections from SQL with :part.
Basics
Pages, alcoves, tiles and the placeholders that fill them.
- Pages and layouts
A YAML file per page, a layout alcove with nooks to fill.
- Alcoves and inline data
A folder with a template and the rows it shows.
- Tile variants
One row, one fragment of HTML, picked by a condition.
- Placeholders and filters
Escaped by default, chained left to right.
Data
Rows from SQL, filtered by the address, nested, paginated and given pages of their own.
- Migrations and queries
SQL files applied once, queries that make a page live.
- Filtering by address
The query string narrows the rows, always as bound values.
- Cascading variables
An included alcove inherits the row it was included from.
- Pagination
Numbered pages for one alcove, with a pager you write.
- Detail pages
Every row gets a page of its own.
- Feeds and file pages
A slug with an extension is written as that file: RSS, text, anything.
Interaction
Forms, posts, scripts and signing in.
- Forms and regions
Post to a live page and swap only the marked element.
- Single alcoves and dialogs
Ask a page for one alcove, as html, text or json, and open it in a dialog.
- SQL posts
One bound statement when a page receives a post.
- Script posts and uploads
A trusted program reads the post as JSON and answers.
- Roles and sign-in
Numeric roles, Argon2id passwords, protected pages.
Delivery
Caching, assets, languages, settings and running it on a server.
- Caching
Seconds on pages, alcoves and pagers, kept in memory.
- Assets and images
Fingerprinted CSS and JS, images resized with srcset.
- Files inside an alcove
CSS, JS and images beside the template, bundled per page, with groups and scope.
- Languages
A page in another language gets its own prefix.
- Site settings and redirects
site.yaml, redirects.yaml and the files Alcove writes for you.
- Running and deploying
Flags, a reverse proxy and a service unit.
Inspection
Seeing what is wrong before and after it ships.
- Validation
One check before every build reports every problem it finds.
- The debug view
Outlines, timings and SQL for every alcove, behind a key.