LifeLog

unlisted

by Zzz210s

Point/line notes with capture bar, tree, relations and graph. Bases views included.

Updated 14d agoMIT
View on GitHub

LifeLog for Obsidian

English | 简体中文

Point/line notes inside Obsidian: every entry is a Markdown note, every tag or entity is a Markdown note, named relations live in frontmatter, and Bases provides the database views. No SQLite, works on mobile.

Status: 0.1.0, early. Not yet in the community plugin market.

What it does

  • Capture bar — a command that takes one line the way LifeLog does: #tag, [[link]], /command, >parent.
  • Point/line file layout — 拾枝/笔记/… for entries, 拾枝/实体/… for tree entities, frontmatter carries the ids.
  • Bases templates — three .base files (stream, entities, relations) so you get table views with grouping and sorting out of the box, without any plugin-rendered UI.
  • Named relations — lifelog_relations: [{ name: 国籍, to: "[[地点/日本]]" }]. Targets are wiki links on purpose: that is what makes Obsidian's native graph draw the edge, so no custom graph is needed.

Install (manual, until it reaches the market)

  1. Build: pnpm install && pnpm build → produces main.js.
  2. Copy main.js, manifest.json, styles.css into <vault>/.obsidian/plugins/lifelog/.
  3. Enable "LifeLog" in Settings → Community plugins.

Use

  1. Command palette → LifeLog: 初始化库 (creates 拾枝/笔记, 拾枝/实体, 拾枝/.lifelog).
  2. Copy the three files from templates/ into 拾枝/ to get the Bases views. Tree = Obsidian's own sidebar over 实体/文件夹; graph = Obsidian's own graph view (relations are wiki links).
  3. Command palette → LifeLog: 捕获 → type 下午办驾照 #地点/印度 [[印尼驾照换发]] → Enter.

Frontmatter contract:

lifelog_id: 2141
lifelog_created: 2026-10-26T12:01:32
lifelog_parent: 时间/2026/10/26
lifelog_relations:
  - name: 国籍
    to: 地点/日本

Roadmap

VersionContent
0.1.0init, capture, frontmatter contract, Bases templates
0.2.0import command for an existing lifelog.db (desktop, sql.js read-only)
0.3.0relation validation (a name must resolve to an entity note)

Graph settings that work

Copy templates/graph.json to <vault>/.obsidian/graph.json (or set the same values in the graph panel): tags and attachments off, orphans off, colour groups by folder (拾枝/实体 red, 拾枝/笔记 green), repelStrength -400, centerStrength 0.35, linkDistance 160. Without this the native graph draws 5k tag dots and buries your notes.

Importing an existing LifeLog database

Desktop: pnpm dump:db "<path>/lifelog.db" lifelog-dump.json (uses sql.js, read-only), then in Obsidian run LifeLog: 导入 lifelog.db 或 dump and pick that file. Existing files are never overwritten — a -2, -3… suffix is appended instead, and the notice reports created / renamed / skipped.

Development

pnpm install
pnpm test        # 16 cases, pure TS (parser / indexer / schema)
pnpm typecheck
pnpm build       # -> main.js

src/store/indexer.ts and src/capture/parse.ts do not import obsidian, so they are unit-testable.

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.