Menu

Likes and comments on a static site
📰

Likes and comments on a static site

DEV Community: backend·Galascribe·about 14 hours ago
#vgzokhQv
#devtobackend#devto#dev#comments#reader
Reading 0:00
15s threshold

Originally published at https://blog.galascribe.com/likes-and-comments-on-a-static-site/ .

A Galascribe site is a folder of files served by GitHub Pages, and a built page used to make no request to anything but its own files; its content-security policy said so. We deferred likes and comments in an early plan, then reversed that: they are core to what we are building. Files cannot add a like to a count, cannot tell who is pressing the button, and cannot slow down someone who presses it a thousand times. Something outside the site has to do those jobs. This post describes how it works, from the build specification we wrote on 8 October 2026, and what we left out.

What a static site cannot do alone

Three things stand in the way.

A count is shared state. Two readers must see the same number, so it has to live somewhere both can write to. A comment has the same need, plus it has to outlast the reader's tab.

Identity is the second.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.