Using my Simple Cloudflare Comments plugin
Introduction I developed Simple Cloudflare Comments to fulfil the need I had for a lightweight, edge-hosted comments engine. It’s written in Typescript and runs on Cloudflare’s edge …
As part of a class assignment, I got a little bit of time to work on a code project of my choosing.
I’d like to have comments on my site, but got frustrated at the crappy, javascript-heavy options. I also didn’t really want to pay $10/month for something that’s realistically not going to see a lot of use. My site is also a static site built in Hugo and there’s no magic build in comment support there either.
This site is already hosted as a “Cloudflare Page” which is their awesome, effectively free (at my scale), CDN-backed hosting mechanism. A few weeks ago cloudflare announced that their D1 database product was now available (in alpha) to all customers.
I set about building a cloudflare plugin that can (sort of) easily be added to any site. I need to figure out more documentation on the exact process to deploy this, but you can check out the code at github.com/grahamsz/simple_cloudflare_comments.
I had a few requirements as I set out on this
Scroll down, they should be right here. Hopefully!