A tool you host yourself

Rocket.Chat

Source code: github.com/RocketChat/Rocket.Chat

Reading the record: its licence, updates, setup and sources.