Basics

Files, not a database

A site is a folder with four roots — data, theme, assets and guide. No database, and nothing behind the scenes that behaves like one.

What it means

Content is one JSON file per thing in data/. Templates are PHP files in theme/. Images and other served files sit in assets/. The site's own rules for the agents that work on it are markdown in guide/. That is the whole site.

A database is a second world with its own language, its own backups and its own failure modes — and it needs an interface in front of it. Files are the world your operating system, git, your editor, the web server and your agent already share.

How loam does it

Everything loam does — rendering, checking, history, access — reads from the files and never replaces them.

What it costs

Queries. A database is good at “every article from 2025 by this author, newest first”; a folder is not. Loam answers with curation and one index: lists you keep in order by hand, and a full index with word search for machines. For a company, an organisation or a body of knowledge that is the right trade. A marketplace needs a different tool.

Next: Portable by design