Skip to content

SQLite Index

The SQLite database lives at:

<library>/.pkm/.index/pkm.db

It is a local cache. Do not commit it.

TablePurpose
notesOne row per Markdown note
tagsNote tags
aliasesFrontmatter aliases
metadataCustom frontmatter metadata
refsExtracted wikilinks
heatCached relatedness scores
librariesRegistered project libraries in the global database
fts_notesFTS5 search index

pkm index drops and recreates the schema. This avoids merge conflicts and keeps the implementation simple.

If search, backlinks, or heat look stale, rebuild:

Terminal window
pkm index