My simple 16 step system for adding comments to my static site built with Astro

Added: November 20, 2023


  • Arco

    November 20, 2023 at 3:59 AM

    Very nice! Also a cool way to ensure that comments are archived/transferable to future website setups!

  • Stefan

    November 20, 2023 at 4:53 AM

    That's a creative approach! I'm wondering about bringing comments on my blog for ages and am hesitant about a 3rd party.

    I might look into this low-key approach. Thanks Rach!

  • Darek Kay

    November 22, 2023 at 7:07 PM

    I love static site generators, but including comments is indeed not as straightforward. I've been collecting all the tools and techniques for some time now. Ironically, I've decided to turn off the comments on my own blog 😅

  • Cassidy

    December 10, 2023 at 6:13 AM

    I am very pro-"keep blogs as simple SSGs" so I'm all for this. And it makes me want to noodle on other ways to implement it without requiring some of the steps you have. Hmmmmmmm.

  • turpelurpeluren

    January 24, 2024 at 9:19 AM

    Yeah! That is a smart approach! Nice to not need third party comments or host your own server. I feel like it would be nice to not have to commit the repo manually for every comment tho, but it sounds like it could be possible with the Api..:)

  • Mia

    February 2, 2024 at 6:44 PM

    Awesome tip for getting comments working with a static site. Also wanted to say that your blog design is fantastic!!! I love the colours and I haven't seen a mouse train in ages

  • Chad

    February 7, 2024 at 2:44 PM

    Thank you! Inspired by this article, I just implemented my own AI-moderated Astro comment system.

    An SSR script adds saves comments temporarily to a Vercel DB (and displays the comment to the person posting immediately).

    Then, periodically, a cron grabs the new DB posts sends them to OpenAI for moderation and then merges the ai-approved comments into Github (using an Astro data-collection for comment JSON files). Merging into Github triggers a rebuild/redeploy on Vercel.

    Fully static Astro site with comments and AI comment moderation.

  • Kevin Spencer

    February 9, 2024 at 10:26 PM

    This is great.

    I love stumbling across a new blog and being able to leave a comment. The reasons a lot of bloggers don't want the hassle of it I completely understand. But it's a great way to foster a conversation around a post without hunting for an "email me" link.

Leave a Comment