The ideal “knowledge base” app I’ve been searching for is as follows:

  - Self-hosted
  - Attractive web client that loads very quickly and works well on mobile
  - Can point it at a nested directory of text/markdown and image/pdf files (no sql database)
  - Text files are editable in place (no “edit” button, etc.)
  - Markdown displays in a plain-text view (no hidden formatting characters, no “rich text” editor)
Every app I’ve tried misses at least of these. The closest I’ve found, strangely, is vscode-server, which is just too bloated and mobile-unfriendly to work for me. I’m perpetually a millimeter away from writing my own, but I feel like I need to stop doing that.

Does this app exist?

Trilium

https://github.com/zadam/trilium

And while it does use a db backend, it allows you to extend the interface with inline JavaScript. It’s extremely underrated