There is no dearth of note-taking apps, and multiple self-hosted options also exist. You have apps like Obsidian with a myriad of features that can help you build a knowledge base on your device.