Given my experience with ActivityPub and WP Discourse I think two-way commenting via embedded javascript is achievable. The embed script would contain the following:
- Unauthenticated “read” working in a similar fashion to current js embed (with some optimisations).
- Remote client (i.e. the user’s browser) registers a user api key client, specific to the user’s session and stores relevant details in the browser’s local storage.
- User is presented with “Login to comment”.
- User authenticates (with Discourse) to retrieve a session user api key which is stored in the browser’s local storage.
- Each activity (comment, like, etc) is directly posted to a dedicated endpoint with appropriate safeguards, handling and task management.
With the right budget I think I could get v1 production ready and integrated with discourse/discourse
in 6-8 months. Following on from initial release I could do the following:
- Add explicit support for Wordpress, Ghost and other select platforms.
- Write the documentation.
- Support it.