A simple, self-hosted Express.js API written in TypeScript for guest comments on my static site. Yes, this very one!
A few days
- Data sanitization
- GitHub REST API
- SendGrid API
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.