A tool you host yourself

Zulip

Source code: github.com/zulip/zulip

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