Docuss intends to be a solution for embedding discussions in web pages, to allow for massively collaborative work.
See a demo here (click an orange balloon to open the discussion panel).
I've put some more use cases and demos here.
The current prototype is based on Discourse, but I'm going to have a look at Flarum to see if the same is possible.
Any comment ?