On this pageHow the two models differ
A flat-file CMS stores pages as files on disk, usually Markdown, YAML or JSON, instead of rows in a MySQL database. There is no database server to run, tune, patch or back up on its own, and the whole site is a folder you can copy, compare and keep in Git. The price is a smaller ecosystem and limits that WordPress does not have. This guide shows where each model wins, then compares the flat-file options worth running today.
How the two models differ
| Flat-file CMS | WordPress | |
|---|---|---|
| Content lives in | Files: Markdown, YAML or JSON | MySQL or MariaDB tables, plus an uploads folder |
| Backup | Copy the folder, or commit it | Database dump plus uploads |
| Version history | Git diffs of real files | Revisions inside the database |
| Server needs | PHP only | PHP and a database server |
| Ecosystem | Dozens to hundreds of plugins | The largest plugin and theme ecosystem of any CMS |
| Editors | Best with a handful | Many, with roles and editorial workflows |
| Shops and memberships | Limited | WooCommerce and many membership plugins |
The flat-file options in 2026
Automad
Automad is a flat-file CMS with its own template language, now on its 2.x line. You manage content from a dashboard at /dashboard, where the first visit creates the admin user, and an official automad/automad:v2 container bundles PHP 8.3 and Nginx. Read the license before you build a business on it: Automad uses the O'Saasy License, which grants MIT-style permissions but forbids offering Automad to third parties as a hosted, managed or software-as-a-service product. Running your own sites is fine; agencies that host sites for clients should read that clause closely.
Grav
Grav (MIT) builds pages from Markdown files with YAML settings and Twig templates, caches through Symfony Cache, and installs plugins and themes with its own package manager, GPM. The Admin plugin adds a browser-based editor for people who never want to touch a file. Its README asks for PHP 8.3 or newer, the baseline of the Grav 2.0 line.
Kirby
Kirby is a commercial flat-file CMS aimed at designers and developers who want flexible content models, edited through its Panel interface. The source code is public, but production use needs a paid license per website, defined by its URL. Development installations, and private ones reachable only by you and your family, are free. Some parts are MIT-licensed, and the license states the whole code becomes MIT if Kirby goes unmaintained for a year.
Statamic
Statamic is a Laravel package that stores content in Markdown and YAML files by default and can move to a database when a project grows. The free Core edition allows one super admin user. Pro adds unlimited users and roles, revisions and drafts, multi-site and multilingual editing, REST and GraphQL APIs, and Git integration in the control panel. It is the natural pick for teams that already build with Laravel.
Bludit and WonderCMS
Bludit (MIT) stores content as JSON files and covers simple blogs and small sites with themes and plugins. WonderCMS (MIT) is even smaller: five files and a JSON database, with editing directly on the page. Both fit a personal site or a landing page that one person maintains.
Or no CMS on the server at all
Static site generators such as Hugo (Apache-2.0), Eleventy (MIT) and Astro (MIT) build plain HTML at deploy time, so the server runs no PHP at all. Editors work in Git, or through a Git-based editor such as Decap CMS. Nothing to patch on the server except the web server itself.
Quick picks
- A custom-designed site with its own content types, and a budget for a license: Kirby.
- A team that already builds with Laravel: Statamic.
- An open-source flat-file site with a full admin panel: Grav.
- A tiny site that one person edits: WonderCMS or Bludit.
- No PHP on the server at all: a static site generator.
Where flat-file wins
- Small sites with one to three editors: company sites, portfolios, documentation, a personal blog.
- Sites kept in Git: every content change can go through a pull request, a review and an automatic deploy.
- Low-maintenance hosting: one PHP process and a folder, with no database to tune or upgrade.
- Moving between servers: copy the folder, point DNS, done.
Where WordPress still wins
- Many editors who need roles, scheduled posts and an editorial workflow.
- Commerce, memberships and courses, where WordPress plugins have no flat-file equivalent of the same depth.
- Non-technical teams that expect the familiar admin and a large pool of people who already know it.
- Content queried many ways: faceted filters, related posts and search across a large archive are easier with a database behind them.
Run Grav on a server
Grav installs with Composer, run as your normal user rather than root, and the Admin plugin comes from its package manager:
sudo mkdir -p /var/www/grav && sudo chown "$USER" /var/www/grav
composer create-project getgrav/grav /var/www/grav
cd /var/www/grav && bin/gpm install admin
sudo chown -R www-data:www-data /var/www/grav
Grav ships ready-made server configurations in its webserver-configs folder, for Nginx, Caddy and others, so you do not have to write rewrite rules from scratch.
On CloudSat, Automad is a one-click app, and Grav or Kirby install on the LEMP stack image.
Back up by copying, version by committing
The best part of flat-file hosting is how simple backups become. In Grav, everything you create lives in the user/ folder; in other systems, it is the content directory plus any uploads. Commit it to Git for history and copy it off the server for safety:
cd /var/www/grav/user
git init && git add -A && git commit -m "Content snapshot"
rsync -a --delete /var/www/grav/user/ backup@203.0.113.10:/backups/grav-user/
Run the copy from a nightly timer, and test a restore once by unpacking it on a scratch server.
Moving from WordPress
- Export the content from Tools → Export in WordPress, which produces an XML file.
- Convert it to Markdown with a converter that keeps front matter, such as the open-source wordpress-export-to-markdown script, then review a sample by hand.
- Copy the uploads folder and rewrite image paths.
- Keep every old URL working with 301 redirects; our guide to redirects in WordPress and on the server covers the rules and the testing.
FAQ
Is a flat-file CMS more secure than WordPress?
Somewhat, in specific ways. With no database, SQL injection disappears as a class of bugs, and a smaller plugin ecosystem means less third-party code. But the PHP code, the admin panel and its login remain, so keep the CMS updated and protect the admin path like any other.
How large can a flat-file site grow?
There is no fixed limit, but listings and searches read files instead of querying indexes, so performance depends on the CMS's caching. Test with your real page count and content structure before you commit a large archive.
Can editors work without Git?
Yes. Automad's dashboard, Grav's Admin plugin, Kirby's Panel and Statamic's control panel all edit content in the browser. Git stays optional, as a history and deployment tool for whoever manages the site.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




