Skip to main content

Safe read-only exporter for vivo Office / Atomic Notes NoteSync.db

Project description

vivo-note-cli

vivo-note-cli is a small, dependency-free command line exporter for vivo Office / Atomic Notes (vivo 办公笔记 / 原子笔记) desktop NoteSync.db files.

It is designed for safe local use:

  • snapshots NoteSync.db plus -wal / -shm sidecar files before reading;
  • opens the copied database with a read-only SQLite URI;
  • exports active notes to JSON or Markdown;
  • omits raw vivo HTML unless you explicitly pass --include-html;
  • never writes to the original vivo database.

[!WARNING] Your notes may contain private content. Do not commit exported JSON/Markdown, database snapshots, or raw private note text to a public repository.

Install

Install from PyPI with uv:

uv tool install vivo-note-cli
vivo-note install-skills

vivo-note install-skills installs the project AI-agent Skill globally so tools such as Codex, Claude Code, and Cursor can discover the safe vivo-note workflow. Restart your AI agent after installing the Skill so it reloads the new instructions.

Upgrade or remove the CLI:

uv tool upgrade vivo-note-cli
uv tool uninstall vivo-note-cli

Manual Skill installation fallback:

npx -y skills add gobylor/vivo-note-cli -g -y

Quick start

The default database path is:

~/Library/Application Support/pcsuite/database/NoteSync.db

List notebooks:

vivo-note list
vivo-note list --json

Export all active notes as JSON:

vivo-note export --format json --output /tmp/vivo-notes.json

Export one notebook as Markdown:

vivo-note export --notebook 日记 --format markdown --output /tmp/vivo-diary.md

Export notes updated since a date:

vivo-note export --since 2026-04-01 --since-field update --format json

Check whether a database can be read safely without exporting note content:

vivo-note doctor

JSON output

Default JSON records keep these stable fields:

id, guid, notebook, title, contentDigest, created, updated, content_updated,
type, stickTop, content_markdown

content_html is only emitted when --include-html is passed.

中文快速开始

vivo-note-cli 用于只读导出 vivo 办公笔记 / 原子笔记桌面端的 NoteSync.db。默认会先把数据库复制到临时目录,再用 SQLite 只读模式打开,不会写原始数据库。

# 查看笔记文件夹
vivo-note list --json

# 导出「日记」文件夹为 Markdown
vivo-note export --notebook 日记 --format markdown --output /tmp/vivo-diary.md

# 诊断数据库是否可读(不会导出正文)
vivo-note doctor

请不要把 /tmp/vivo-*.json、导出的 Markdown、NoteSync.db 快照或任何私人笔记内容提交到公开仓库。

Scope

Version 0.1 focuses on read-only export. It intentionally does not copy attachments, write to Obsidian, or perform bidirectional sync. See docs/obsidian-recipe.md for an optional import recipe you can adapt outside this package.

Documentation

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vivo_note_cli-0.1.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vivo_note_cli-0.1.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file vivo_note_cli-0.1.1.tar.gz.

File metadata

  • Download URL: vivo_note_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vivo_note_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0a8b3aea58e78e0c237d19048dfaedc8fd2d2921da0b0dfabeee9b47423a4bf
MD5 85b97e9071f40c5bd208c8424ba4e136
BLAKE2b-256 f17eacdac8d5046f5d7349b0006a57daec8dc3be68b208e05d6a232e8e3698e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for vivo_note_cli-0.1.1.tar.gz:

Publisher: release.yml on gobylor/vivo-note-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vivo_note_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vivo_note_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vivo_note_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a42ae5c3791e41df2850bea8a29fc78a731e5cc3c10cb050e43c11c98de2a9c6
MD5 67fe9990186faa0345983e3d9e4fc425
BLAKE2b-256 e7b1af82fe9a7c7aa82275fa7653ffe92fe03b4aa8f2f6b781f3c0f4f94782c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vivo_note_cli-0.1.1-py3-none-any.whl:

Publisher: release.yml on gobylor/vivo-note-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page