zeven195 downloadsBidirectional WebDAV vault sync with conflict handling, encryption, and auto sync.
Vault Base is a bidirectional WebDAV sync plugin for Obsidian. Use a NAS or self-hosted WebDAV server as the central store and keep desktop and mobile clients in sync.
Vault Base(项目名 vault-base-plugin)是面向 Obsidian 的双向 WebDAV 同步插件,同时兼容桌面端与移动端。适合以 NAS WebDAV 作为中央仓库,在多端之间同步。
Back up your vault and test with a separate remote folder before syncing production data.
npm install
npm run check
npm test
npm run dev
单元测试依赖 Bun。未安装时仍可进行类型检查与生产构建。
开发构建会写入 dist/,并同步复制到 release/。把 release/ 里的 main.js、manifest.json、styles.css 放到测试库的 .obsidian/plugins/vault-base/,然后在 Obsidian 中启用插件。
Local artifacts:
npm run package
Obsidian store files land in release/: main.js, manifest.json, and styles.css.
To publish a version, bump first, then commit, tag, and push. The Git tag must match manifest.json exactly, with no v prefix. Pushing that tag runs GitHub Actions, which creates the GitHub Release the community directory downloads.
本地产物:
npm run package
Obsidian 商店产物在 release/:main.js、manifest.json、styles.css。
发新版本按下面做:先改版本,再提交,再打 tag,再推送。Git 标签必须与 manifest.json 版本完全一致,且不要加 v 前缀。把 tag 推到 GitHub 后,Actions 会自动建 Release;已经上架的插件不用再往商店提一次。
在 CHANGELOG.md 顶部加一节,标题里必须带目标版本号(Actions 靠它抽 Release notes):
## Vault Base v0.2.3 - 2026-08-19
- Prevented an empty new local vault from wiping an existing remote repository.
然后 bump 版本文件(把 0.2.3 换成实际版本):
npm version 0.2.3 --no-git-tag-version
npm run ver
npm run ver 会同步 manifest.json、versions.json、src/consts.ts。核对这四处都是同一版本后再继续。
先提交全部改动,再打注释 tag,最后推分支和 tag。不要用 v0.2.3。
git add -A
git commit -m "Prevent empty local vault from wiping remote files."
git tag -a 0.2.3 -m "0.2.3"
git push origin main
git push origin 0.2.3
origin 会同时推 GitHub 和 Gitea。商店只认 GitHub:https://github.com/zinkiv/vault-base-plugin
打开仓库的 Actions,等 Release Plugin 成功。完成后应出现:
https://github.com/zinkiv/vault-base-plugin/releases/tag/0.2.3
Release 资源里要有单独的 main.js、manifest.json、styles.css(不能只在 source zip 里)。
| 情况 | 做什么 |
|---|---|
| 已经在 community.obsidian.md 上架 | 不用再提交。用户端会按 GitHub 上最新 manifest.json 的 version,去对应 tag 的 Release 下载。 |
| 还没过审 / 第一次上架 | 用 Obsidian 账号登录社区站,绑定 GitHub zinkiv,仓库填 https://github.com/zinkiv/vault-base-plugin(不要带 .git),提交后按 Scorecard 改。 |
扫描可能要几小时。本机可在「第三方插件」里刷新,或用 BRAT 先装 GitHub 上的新版本。
.obsidian, .git, .trash, and similar paths are excluded by default. Use include rules to allow specific config files..obsidian、.git、.trash 等路径;可用包含规则单独放行配置文件。This project is based on Obsidian WebDAV Sync and Nutstore Sync, and is released under the GNU Affero General Public License v3.0. See NOTICE for attribution and LICENSE for the full terms.
本项目基于 Obsidian WebDAV Sync 与 Nutstore Sync,按 GNU Affero General Public License v3.0 发布。归属与修改说明见 NOTICE,完整条款见 LICENSE。