Skip to content
Comments for static sites and authenticated users deployed as AWS Lambda
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


  • This lambda is based on the idea behind of for publising comments into static sites.
  • Is compatible with and APIs.
  • It expects an "user" in the event.requestContext.authorizer.user (in my PoCs request are authorized with JWT/AWS API GW Custom Authorizer)

Environment variables

  • PROJECTID: required
  • OWNER: required, for github repos only
  • TOKEN: required
  • TYPE: "gitlab" or "github", default to gitlab
  • AUTHOR: for commit info, optional
  • COMMIT_MESSAGE: optional


The new file will be named like this:

https://[repo api endpoint]/data/comments/[body.item]/[user from authorizer]-[timestamp].json

You have to send in the POST message a field named "item" with the item that is being commented (url encoded).

You can’t perform that action at this time.