A whole website in one small file.
Wren is a content management system in the spirit of sNews (2004–2016), rebuilt from scratch for the modern web. One PHP file, one SQLite database it creates itself, no framework, no Composer, no build step. Upload it, open it in a browser, and start writing.
Version 1.12.0 "Brunneicapillus" — stable · MIT licence
Website: https://wrencms.com · Documentation: https://github.com/Wren-CMS/wren-cms/wiki
- PHP 8.1 or newer with PDO SQLite — standard on virtually every shared host
- That's it. No MySQL setup, no command line, no dependencies.
- Upload
index.phpto your web space (a folder of its own is tidiest). - Visit it in a browser.
- Fill in the one-minute setup form: site title, username, password.
Wren creates wren.db beside itself and signs you in. Done.
Optional: upload .htaccess too (Apache with mod_rewrite), then switch on
Pretty URLs in Settings to get /my-article instead of /?q=my-article.
The .htaccess also blocks direct downloads of wren.db — recommended.
With pretty URLs on, old /?q= addresses redirect to the clean ones, so each
page has a single address search engines can settle on.
On hosts without .htaccess support, keep Pretty URLs off and consider moving
wren.db out of the web root once you're comfortable editing the WREN_DB
constant at the top of the file.
Replace index.php with the new one and visit your site; any database
changes are made automatically on that first visit. Your content, settings,
theme and uploads are never touched.
Wren tells you when there's a new version: the admin shows a notice with a link to the download. To do this it asks GitHub for the latest release, at most twice a day and only while you're signed in to the admin, so your visitors are never involved. Settings → Check now checks straight away, and you can switch the checks off there too.
- Articles appear on the home page, newest first, and in the RSS feed (
/rss). - Pages appear in the site menu (order them with menu position, and nest them one level deep with menu parent for dropdown submenus). A menu link with a blank URL becomes a heading-only item for grouping, and any menu link can be set to open in a new tab.
- Both are written in markdown:
**bold**,*italic*,# headings,[links](https://…),, lists, quotes, and fenced code blocks. Raw HTML passes through untouched — you're the admin, so Wren trusts you. - Untick Published to keep something as a draft only you can see. An article is dated the moment it's first published, not when the draft was started.
- Scheduled articles: set Publish on to a future date and time and the article goes live by itself then, dated to the minute you chose — no cron job needed. Scheduled articles show in the admin list as "Scheduled · 4 Nov 09:00". Times use the Timezone in Settings (Europe/London by default).
- Hide from search engines: tick it on any page or article that exists
only to be landed on, such as a form's thank-you page. Wren adds a
noindextag, leaves it out ofsitemap.xmland doesn't ping IndexNow for it. It still works for anyone with the link, and articles stay in the RSS feed. - Search engines: set your Site address in Settings and Wren uses it
everywhere search engines look (canonical links, sitemap, RSS, robots.txt),
sending visitors on
www.,httpor any other address to it, so Google sees one site rather than two. Pages and articles can have their own Search title and Share image; articles carry their date and author for search engines and social networks. Pages such as Thanks or Privacy can be left out of the menu with Show in menu. - Images: upload JPG, PNG, GIF or WebP in the admin's Media tab, then click an image's address to copy ready-made markdown into any post.
- Comments: readers can comment on articles (and pages, if you opt one in); every comment waits in the admin's Comments tab until you approve it. Honeypot and rate-limiting keep casual spam out; each post has its own "Allow comments" switch, plus a site-wide toggle in Settings.
- Page-first site: in Settings, set Homepage shows to any page and your front page becomes that page; the article list moves to its own menu entry (name and address configurable, "Blog" by default).
Wren ships with a built-in default theme. To use your own, place a file named
theme.html beside index.php — plain HTML with these tags where you want
things to appear:
{{site_title}} {{tagline}} {{page_title}} {{menu}}
{{content}} {{home_url}} {{rss_url}} {{year}} {{generator}}
{{author}} an article's author, when one is set
Article titles in lists are <h2 class="post-title"> and a single article's
is <h1 class="post-title">, so style them with .post-title rather than
h1.post-title. A list starts with its own <h1 class="list-title">.
Two more for linking and business details:
{{url:contact}} the address of the page with that slug
[[phone]] any business detail saved by a starter pack
That's the entire theming API. A theme is one HTML file a designer can read.
Themes bought from a Wren Shop can be licensed for one website. A licensed
theme carries one comment in its theme.html:
<!-- wren-licensed-theme: aurora from https://wrencms.com/shop/ -->
Enter the licence key under Settings → Theme licence and press
Get licence; Wren keeps the licence fresh by itself. A licensed theme
without a valid licence still works, but its footer says so. Your own and
free themes are never checked, and test addresses (localhost, .test) always
pass. Needs PHP's sodium extension. See the
wiki.
A starter pack is a ready-made website for a kind of business — a theme,
pages, menu, starter articles and settings — in a single .json file. Put
packs in a packs folder beside index.php, or upload one under
Settings → Starter packs. Installing asks for a few details (business
name, town, phone…), writes them into the pages, and can switch the design,
set the homepage and remove the sample article. Nothing existing is
overwritten: clashing addresses get a -2 suffix and an old theme.html is
kept as a dated .bak copy.
The details are also saved as Business details in Settings, so a theme's header and footer stay current when a phone number changes. The pack format is documented in the wiki.
- Optional two-factor authentication: turn it on in Settings and signing in needs a six-digit code from any authenticator app as well as your password. Eight one-time recovery codes cover a lost phone.
- Passwords are stored with PHP's
password_hash(bcrypt/argon2, never plain). - Every form is CSRF-protected; every query uses prepared statements.
- Repeated failed logins are slowed automatically.
- All reader-facing output of your titles and settings is HTML-escaped.
Search, multiple authors, export. Deliberately not on the roadmap: plugins, page builders, visitor accounts, anything that would mean Wren no longer fits in your head.
Named for the wren: a tiny bird with a very loud song. Built as a tribute to sNews by Luka Cvrk / Solucija, which proved twenty years ago that a CMS could be small enough to read.
Wren CMS is developed by Alan Paynter at 49 Systems. Copyright 2026 Forty Nine Systems Ltd, released under the MIT licence: see LICENSE.