Buy me a coffee (opens new window) DE · DeutschDA · Dansk

← Counterglow overview

What Counterglow does

Everything that ships in the box, without a plugin, a database or a third party.

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.

The panel overview with page, draft, file and word counts and cookie-free visitor statistics for the last 30 days.
The panel overview with page, draft, file and word counts and cookie-free visitor statistics for the last 30 days.
Editing a note in Markdown with the split preview showing the formatted result next to it.
Editing a note in Markdown with the split preview showing the formatted result next to it.
Design page, Theme tab: the themes as a grid of previews with tag filters; each tile has Preview, With my content and Start with this content.
Design page, Theme tab: the themes as a grid of previews with tag filters; each tile has Preview, With my content and Start with this content.
The panel overview on a phone with menu button, key figures and visitor chart.
The panel overview on a phone with menu button, key figures and visitor chart.

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.

Colours for light and dark mode with the contrast guard flagging secondary text that fails WCAG AA, next to the live preview.
Colours for light and dark mode with the contrast guard flagging secondary text that fails WCAG AA, next to the live preview.
An uploaded variable font family with its detected weight range, a type sample and every weight from 300 to 800 in roman and italic.
An uploaded variable font family with its detected weight range, a type sample and every weight from 300 to 800 in roman and italic.
Favicon with a transparent background, previewed on a light and a dark browser tab.
Favicon with a transparent background, previewed on a light and a dark browser tab.

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.

Transcript with timestamps and speaker names; the line being played is highlighted, “Follow along” scrolls only this box, and its lower edge fades out.
Transcript with timestamps and speaker names; the line being played is highlighted, “Follow along” scrolls only this box, and its lower edge fades out.
An episode on a phone in dark mode: the transcript follows along with the current line marked, the dock at the bottom shows the running episode.
An episode on a phone in dark mode: the transcript follows along with the current line marked, the dock at the bottom shows the running episode.

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.

The library: four books with drawn covers on a shelf, search and filters by author, series and tag, a switch between covers and list.
The library: four books with drawn covers on a shelf, search and filters by author, series and tag, a switch between covers and list.
The reader's settings menu with six reading profiles as small page previews, brightness, text size and layout.
The reader's settings menu with six reading profiles as small page previews, brightness, text size and layout.
A chapter in the E-ink profile: black on grey-white, bold status line, no shadows or gradients.
A chapter in the E-ink profile: black on grey-white, bold status line, no shadows or gradients.

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.

    Static export in the panel: optional target URL and a button that builds the whole site as plain HTML.
  • 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.

    The inbox with a contact form message opened and the list of submissions with a preview of each message below.
  • 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.

    Visitor statistics without cookies or IP addresses: page views per day, top pages and referring sites.
  • 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.

    Site setting “Show dates” with full date, month and year, year only or no dates.
  • 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=nova shows 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 $page and $site ready. 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.xml and /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.

Buy me a coffee ↗ (opens new window)

Read the code, keep the folder.

Questions, ideas or bug reports? Write to me. hello@gerber.media