Markdown is the database
One file per category, one
Categories + wiki-links over plain markdown. No database, no embedding model, no docker — pip install wikimem and it works.
from wikimem import MemoryIndex, MemoryStore
store = MemoryStore("memory/")
store.add("preferences", "likes-the-sea",
"Loves the seaside, mentioned wanting a beach trip. [[daily_life:beach-trip-plan]]",
owner="user:xnne", source_conv="conv_20260710")
store.add("daily_life", "beach-trip-plan", "Planning a summer beach trip to watch the sunrise.")
index = MemoryIndex(store) # in-memory BM25, rebuilds itself on store writes
result = index.retrieve("beach vacation", budget_tokens=800)
for entry in result.items:
# hits come ranked; each is followed by its one-hop wiki-link targets
print(entry.source, entry.item.name, entry.score)What's on disk afterwards? Two markdown files you can open in any editor, and a one-line-per-mutation journal. That's the whole system.