FlatPhile

Flat-file CMS or static site generator?

Both keep your content in text files instead of a database. The difference is when the HTML page is made and what runs on the server.

Flat-file CMSStatic site generator
When pages are builtOn each visit, on the server (usually cached)In advance, before upload
What the server runsPHP or another runtimeNothing, it serves plain files
EditingUsually an admin panel in the browserFiles in an editor, then rebuild; add-on CMS possible
HostingPHP webspace, shared hosting is fineAny static host, often free (Cloudflare Pages, Netlify, GitHub Pages)
SecurityA CMS runtime on the server that needs updatesA smaller server-side attack surface, but build tools, dependencies and accounts still need care
Forms, search, loginsBuilt in or via pluginsExternal services; search can also run in the browser
Typical usersSite owners, editors, agencies with clientsDevelopers comfortable with Git and the command line
ExamplesGrav, Kirby, WonderCMSHugo, Jekyll, Eleventy

Where the line blurs

Some systems do both. Datenstrom Yellow can generate a static site, and Statamic and Kirby can export static pages with an add-on. In the directory, look for "Static export".

Which one should you pick?

If people who don't write code will edit the site, or you need forms and logins without extra services, pick a flat-file CMS. If you are a developer and want cheap hosting with no CMS running on the server, a static site generator is often the better fit.

Browse flat-file CMS