Wednesday, November 4, 2026 Today’s Paper
Log in Join free
Vol. I · No. 37 Texas Edition
Wednesday, Nov 4
Texas first. Then the world.
Always free Updated just now
Read. React. Discuss.
Tech

Show HN: Garrul – Comments system for your site on a single Cloudflare Worker

By KingPinX 2 min read 0 views 0 comments
Show HN: Garrul – Comments system for your site on a single Cloudflare Worker
Image: Hacker News (Newest)

I needed a comments system for my blog (running on Cloudflare & Astro), the other options I tried didn't work out as I wanted. So Garrul was born, it uses one Cloudflare Worker with D1 + KV, in your own account. No container, no VPS, no DB server to manage or worry about! Most sites fit the free tier, I am using it for 5 lowish traffic sites with zero issues.I wanted privacy of commenters to be primary here, along with ease of use so that was always the basis of many decisions I took along the way. For example, we never store IP addresses directly. Every IP is HMAC hashed, ipv6 is truncated first.I have worked steadily on optimizations every chance, e.g. instead of having few separate calls for the config, session, first set of comments, subscription state etc it's all a single call. Posting costs a single call, you can even have a reaction only mode for specific pages/articles. The anti-spam call and turnstile call only happen when user actually focuses the comment posting embed. The math works out to roughly 100k pageviews/day on the free tier.The widget embed itself is limited to 30KB gzipped, with the CI set to fail above that so we don't ship massive embeds.One of the larger…

Hacker News (Newest) Original story · github.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!