In Goodbye, Dr. Jekyll I called comments the boss fight of a static site, and handed the win to giscus. That was a truce, not a kill. giscus works, but it keeps every word your readers write in a database that belongs to GitHub, not to me. So I went back down into the dungeon and built my own: a comment system that lives on the edge, signs you in with GitHub, renders your Markdown in the same colors as the rest of the site, and belongs entirely to me. The whole thing is about 360 KB, it renders a comment in roughly five milliseconds, and it was the most fun I have had building anything all year.
The boss that got back up
Section titled “The boss that got back up”Every dungeon has the boss you are sure you killed, the one that stands back up while you are sheathing your sword. Mine was comments. A static site has no backend, and a comment is the most backend-shaped thing there is, so for a while you make peace with a hosted service that keeps the conversation for you. giscus is a good one. It tucks each thread into GitHub Discussions and renders it inline, themed to match. On this blog it Just Works™️.
But the truce chafed, in two places. The first was the frame. giscus renders inside an iframe, a boxed little window cut into the page, and matching its colors never quite hides the seams: a scrollbar that is not mine, a box that resizes with a lurch, a frame that always reads as bolted on rather than built in. For someone who rebuilt an entire syntax theme down to one specific olive green before writing a single post, that was never going to sit right.
The second was ownership. “Kept for you” is a polite way of saying “not yours.” Every reply, every reaction, every correction a reader takes the time to write sits in someone else’s database, under someone else’s rules, one policy change away from a shape I did not choose. I did not want a room leased across the street. I wanted a front porch, bolted to my own house.
I had made this trade once already with my shell: keep the part I cared about, replace the machinery around it, and accept that every quiet convenience became mine to understand. Comments were the same bargain, only this time I wanted to own the place where other people left their words.
What it is
Section titled “What it is”A comment box at the bottom of every post. You sign in with GitHub, and it learns exactly one thing: who you are, a name and an avatar, no repo access, nothing else. Then you can write in Markdown, reply, react with the usual emoji, and drop a GIF when words fail you. It looks like it grew there, because it did: real page, not a frame cut into one. It follows the light and dark toggle, and highlights code in a comment the same way the posts do. Behind the friendly box, every comment, reply, reaction, and quiet moderator action lives in my own database, on my own terms. House rules.
How it works
Section titled “How it works”The moving parts are small.
A little script rides along on each post and mounts a comment box keyed to that page. It talks to a tiny API running as a Cloudflare Worker, close to whoever is reading. The Worker keeps everything in D1, a SQLite database that also lives at the edge, so the data sits next to the code instead of an ocean away.
Two details I am fond of. First, Markdown is rendered on the server with Shiki, using the very same Kronuz theme the article code blocks use, so a fenced snippet in a comment comes out in the exact olive green I am constitutionally incapable of living without. Second, there is no session table: your sign-in rides in a small signed cookie, which means there is nothing on my side to leak and nothing to sweep.
It is multi-tenant, too, and that stopped being hypothetical. One deployment keeps house for this blog and for a private one, each walled off behind its own path, with its own sign-in app and moderators, and its settings encrypted at rest. The private one even locks its door with an access key, so only its own pages can read what is said there. GitHub is just the sign-in this blog happens to use; any OAuth 2.0 provider plugs into the same slot.
The fun parts
Section titled “The fun parts”Here is where it stops being work and turns into a toy I cannot put down.
It is tiny, and it flies. The entire Worker is about 370 KB compressed, and rendering a comment (Markdown, highlighting, all of it) takes roughly five milliseconds. The slow part was never the render, it was the trip across the network, so the preview quietly starts rendering the moment your cursor drifts toward the Preview tab. By the time you click it, it is already there.
It runs on nothing. Cloudflare’s free tier, scaled to zero. When nobody is commenting there is no server sitting idle, no bill, no cron job, nothing to patch at 2am.
It has a GIF picker, because a comment section that cannot answer with a perfectly timed reaction GIF is a sad comment section.
It knocks when you talk. A new comment pings me on Discord (Slack and Telegram work too), and each blog has a private Atom feed of its latest comments, so a reply never sits unanswered just because I did not happen to reload the page.
And it is mine. If I ever change hosts, the whole conversation comes with me in a single file. No export dance, no “download your data,” no waiting on a form. Even the address is mine: it answers at comments.kronuz.com, on a domain I own, rather than on a shared workers.dev street that some corporate networks block wholesale.
None of those is the real reason, though. The real reason is that a static site is not supposed to be able to do this at all, and comments are the exact thing everyone tells you to farm out. Building the one part you are told you cannot have, and watching it come out small and fast and yours, is the whole of the fun.
Build your own porch
Section titled “Build your own porch”The blueprints are public. Kronuz Discussions is open source under the MIT license: the Worker, a framework-free widget you can drop into any page, and an Astro component for sites like this one. It comes with a step-by-step tutorial that takes you from an empty Cloudflare account to a working comment box, and an operations handbook for the day something goes sideways (backups, migrations, moving to your own domain, recovering a lost configuration).
It all runs on your own Cloudflare account, so the comments live in your database, not mine. Your house, your rules.
Say something
Section titled “Say something”The house has a front porch now, and it is mine down to the boards. Which means, for the first time since 2015, this blog can talk back.
There is a comment box at the bottom of this very page. Pull up a chair and use it. Tell me where I am wrong, or just say hello.
Roll for initiative.