What Counterglow does
Everything that ships in the box, without a plugin, a database or a third party.
What it does
The panel
Server-rendered, about nine kilobytes of JavaScript, and everything essential works without it. In 1.4.0 it follows the house style throughout: hairlines instead of shadows, red only for the main action, the selection and errors.
Dashboard
Key figures as numbers on a line, recently edited pages, inbox and visitor statistics.
Page editor
Split Markdown preview, ⌘S saves, ⌘K searches every page, drag and drop for files and order.
Sections
Hero, features, image and text, numbers, gallery, quote, team, questions, form and audio. Move, copy and reuse them; the page stays one text file.
Design page
Tabs for Theme, Colours, Type, Logo & favicon and Brand kits. The theme gallery is a compact grid with filters; every tile has Preview, With my content and Start with this content.
Accounts and roles
Admin, editor, author and reader. Accounts are PHP files with bcrypt hashes, every form carries a CSRF token.




Design and brand
Only admins change the look, so editors cannot break the brand by accident. Everything is stored as plain files under site/.
Colours with a contrast guard
Start from a preset, then set every colour for light and dark. Text, secondary text, buttons and links are checked against WCAG AA while you pick.
Font families from a ZIP
Upload the ZIP a foundry gives you. Counterglow reads family, weight, italics and variable axes from the font files, prefers a variable font and serves it from your own domain.
Exact type sizes
Eleven areas from body text to footer, in pixels for phone and desktop, fluid in between.
Favicon
From a letter, the logo or an image, optionally with a transparent background, previewed on a light and a dark browser tab.
Brand kits
Save the whole look under a name, switch between kits, download one as a ZIP and import it into another site.



Search
⌘K, / or the search button opens a dialog in every theme: results grouped by area, the words found marked, the snippet as plain text.
A real dialog
Close button, Escape, click outside, focus kept inside and returned afterwards, ↑ ↓ and ↵. Full screen on phones.
Without JavaScript
The search button leads to a search page that answers on the server.
An index made of files
Word lists split by initial letter, texts in packs of ten. The browser loads only what a query needs, also on static hosting after an export.
Words, not characters
Umlauts and accents folded, English and German stop words, a small stemmer, prefix matching and one typo of tolerance.
On a site with 500 long pages a search loads about 350 KB instead of a 2.4 MB index; later searches need no download at all.


Podcast and audiobook
A podcast is a page, every episode a folder with its audio file. Counterglow writes the feed and plays it back.
Feed by Apple’s rules
Author, image, category, owner, exact file sizes, stable GUIDs, durations, chapters and transcripts. The feed checks itself and notes what is missing.
Player with transcript
The current line is marked and shows who speaks, read from WebVTT voice tags. Every line jumps to its place in the audio.
Audiobooks
One file per chapter or one long file with chapter marks, a sleep timer, and the player remembers where you stopped.
No library, no widgets
Durations are read from MP3, M4A, Ogg and WAV directly. Subscribe buttons are plain links.


Library and reader
Put an EPUB into a page folder or import a Calibre library. Visitors browse a shelf and read in the browser; their place, bookmarks and highlights stay on their own device.
Metadata from the book
Title, authors, series, subjects, cover and ISBN come from the EPUB; any field you fill in wins.
Six reading profiles
Standard, paper, e-ink, sepia, night and an open book with two pages, plus type, size, contents, search and reading time left.
Calibre
Reads the library folder directly, matches books by their Calibre ID and writes nothing when nothing changed.
OPDS
Reading apps such as KOReader or Thorium browse and download from
/opds, signed in with an app password.



Also in the box
Static export
The whole site as plain HTML for any static host, search included. One command or one button in the panel.

Forms without a service
Contact forms with a signed token, honeypot and minimum fill-in time. Submissions land in the panel’s inbox as text files.

Statistics without cookies
Page views counted on the server: no cookies, no IP addresses, no third party. Only views per page and the referring domain.

Dates shown your way
Full date, month and year, year only, or none, set for the site and per page. Feeds, sitemap and structured data keep the real date.

Theme blueprints
A theme can bring its own templates, panel forms and site fields, as Umbra, Salon, Quasar, Pennant and Mise do.
Previews that stay
?preview=novashows another theme for that tab only; internal links, forms and search keep the preview, without a cookie.
For developers
The YAML parser, the Markdown parser, the image pipeline and the panel are written for this project. There is no vendor directory.
Content tags
(image: cover.jpg caption: …), galleries, video and files without HTML. Register your own from a plugin.Templates
A template is a PHP file with
$pageand$siteready. Fields are chainable and never null.Responsive images
image()writes srcset, dimensions and lazy loading; renditions are cached as static files.SVG layout templates
Draw a layout in Inkscape or Figma, name layers like
cg-text-title, and the CMS fills them.Every SVG sanitised
Uploads on the way in and templates on the way out, against an allowlist.
Headless when you want
Every page as
.json, plus/search.json,/feed.xml,/sitemap.xmland/opds.
Free, and it stays that way
Counterglow costs nothing and has no paid edition. If it saves you time, a coffee helps keep it going.
Read the code, keep the folder.
Questions, ideas or bug reports? Write to me. hello@gerber.media