Blog post

Commenting systems for static websites

by Alex on 7/23/2019, 2:00:00 PM

Static sites are becoming very popular due to more scalable and cheaper hosting. But there is a problem if you need to add dynamic user-generated content like comments.

You are probably planning to switch or already switched to a static site powered by a popular static site generator such as Gatsby, Jekyll or Hugo. So how can you add a commenting system so that visitors could discuss and contribute to the content you publish?

There are two main approaches to add comments:

  1. Using a 3rd-party hosted system and there are many of them. The advantage is that you get a supported system out of the box in minimal time. The drawback is that it usually costs money.
  2. Using an open-source system and self-hosting it. The disadvantages and advantages are reverse for this approach: it's typically cheap, but you'd need to spend quite some time to set up and operate a self-hosted system.

I have seen people extract a third approach, such as storing comments on GitHub and using the API to publish comments at the build time. I'd classify this as using the 3rd-party system because Github is indeed a 3rd-party. The main advantage of this hosting option is that it's usually free, and the disadvantage is that there could be a delay before a comment is published and the feature set is restricted by what Github supports.

In my opinion, self-hosting is a good option for small non-commercial or hobby projects. When a commenting system is an essential part of your website, it's better to go with a 3rd-party service such as JustComments. The little amount of money you pay to a 3rd party saves you a lot of time. It's worth mentioning that JustComments can be self-hosted too if you don't want to spend dedicated money on the comment hosting. Check out the open source server implementation which works together with the open source frontend of JustComments.

Also, I wanted to write a comparison between different commenting systems but I have found many good articles out there already:

follow: blog | twitter | github | indiehackers


Are you ready to get started?
  • Learn about our pricing.
  • Every new account gets 100 000 free credits for a trial period. No credit card required.
  • Creation of comments and storage of comments is for free.