You can integrate Mattermost into custom web apps using the Mattermost JavaScript Driver.
Mattermost server APIs are 100% accessible, anything Mattermost builds in its web client users the server REST APIs, and we give you the same driver we use to build your own custom web apps.