Com(ent)ing to My Senses
I had a lot of fun cooking up my last commenting system which was half performance art and half actual functioning comment system. But it turns out:
- People don't want to make a github account and fork a repository to make a comment.
- It's not very safe to make processes which automatically merge things into your code base. Especially when it's automatically run.
So I'm announcing my third, and hopefully final, commenting system. (My first being Disqus, which is fine, but I didn't want to pay and I didn't want to have ads)
For a user it is quite simple:
- Enter your comment and user name. Plaintext only right now. 3000 character limit for comment, 50 for name. Feel free to stay anonymous.
- Click enter.
There's no notion of replies, but feel free to @ people.
Technically it is also quite simple:
- There is a AWS Lambda function with an API endpoint.
- Clicking Submit posts to the endpoint.
- The function ads your comment to an html doc in the website's s3 bucket.
- This other doc is embedded in an iframe in the main page.
There were a few minor annoyances around iframes and AWS but overall pretty simple to set up.