Guest Comments API

Highlights

A simple, self-hosted Express.js API written in TypeScript for guest comments on my static site. Yes, this very one!

Role

Primary Author

Duration

A few days

Technologies Used/Explored

  • Express.js
  • TypeScript
  • Data sanitization
  • GitHub REST API
  • SendGrid API
  • Docker

Motivation/Ideology

Comments should be a part of my static site repository and handled at the static site level. This is most performant and keeps data in one place. There is no API endpoint to fetch comments as the app does not store any data by itself, for example, in a database.

All operations (well, just the three) interact with my GitHub repository. Currently, only GitHub is supported, but I may be open to adding support for Gitea instances should I switch to such options in the future and find it a viable endeavor.