A tool you host yourself

AFFiNE

Source code: github.com/toeverything/AFFiNE

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