I am an old user of TiddlyWiki 5 - a single-file wiki that simply works in the browser, great tool for keeping notes in one place, but over the years I hit some roadblocks: an empty wiki is 2+ megabytes, notes are stored as giant escaped JSON strings, so version-controlling them in git is rough and diffs are unreadable due to mangling. So I wrote a slim, simplified version with diffing in mind.
DifflyWiki is a <50 KB, zero-dependency vanilla JS wiki that stores notes at the top of the file in basically plain text (inside CDATA blocks of XML elements), so note text stays unescaped and readable in the raw source with all formatting preserved. This is like a data container for text notes/files, which you can open in a browser for a nice UI with Markdown support (similar to TiddlyWiki), open in a text editor, or, for example, run "Search in files" in VS Code and be sure your notes will show up in results. Moreover, the HTML itself is a valid XHTML file (well-formed XML) and you can query or pipe it through CLI tools (like xmllint or xmlstarlet).
It supports in-place saving via the File System Access API (works in Chrome/Edge out-of-the-box), and some save strategies used by TiddlyWiki are also supported - WebDAV/PUT savers (TiddlyStow v2), and the Tiddloid app (Android) work out-of-the-box too.
Would love to hear your thoughts!