triliumnotes.org
Trilium Notes is an open-source note-taking and personal knowledge base application. It runs locally on a desktop or syncs with a self-hosted server. Notes can be arranged hierarchically, with labels, relations and workspaces. Other features include encrypted protected notes, note revisions, full-text search and a web clipper.