Data Directory

中文: 中文 · Libraries and Files · Publish a Site

App-level (approximate)

StoreContents
localStorageApp settings, shortcuts, library list, …

Exact keys vary by version; prefer the Settings UI over hand-editing storage.

Per-library: .inimark/

Under each library root:

FileRoleSafe to delete?
bookmarks.jsonBookmarks and groupsYes — you lose pins
session.jsonOpen files, caret/scroll, source mode, expanded dirsYes — session resets
recent.jsonRecentsYes — recents clear
link-index.jsonWikilink index cacheYes — app rebuilds it

Typical library root layout:

  • *.md and assets

  • .inimark/

    • bookmarks.json

    • session.json

    • recent.json

    • link-index.json

  • publish.config.json

  • dist/ (build output)

link-index.json can be rebuilt by the app. Do not treat it as a hand-written database.

Git tips

PathSuggestion
Notes + assetsCommit
publish.config.jsonCommit
.inimark/bookmarks.jsonOptional (nice for shared hubs)
.inimark/session.json / recent.jsonUsually ignore (personal)
link-index.jsonOptional; rebuildable
dist/Ignore — build artifact

Extra files in this help vault

PathRole
publish.config.jsonPublish config (optional locales)
README.mdBilingual portal
zh/ · en/Parallel doc trees
snippets/ · 片段/Embeddable cards
dist/Build output (usually ignored via global dist/)

Related: Publish a Site · Wikilinks and Embeds · FAQ and Troubleshooting