nyonyataro12 downloadsWarns when your vault unexpectedly loses files, Markdown notes, or storage size.
Vault Canary is a small, local-first Obsidian plugin that warns when the visible contents of your vault unexpectedly shrink.
Vault Canary requires Obsidian 1.13.0 or later.
The settings, notices, and command names follow Obsidian's Japanese interface by default. You can also force Japanese or English from the plugin settings.
It is meant to catch the kind of problem that can otherwise stay unnoticed for hours or days: a sync mistake, a broken automation, or another tool deleting a large set of files.
Vault Canary is an early-warning signal, not a backup. Keep a separate backup or version history so you can recover files after an alert.
Vault Canary keeps a lightweight baseline containing only aggregate metrics:
It then checks the current vault after startup, periodically, and shortly after file create, delete, rename, or modify events.
By default it warns when any of these happen:
All thresholds are configurable.
A warning does not automatically replace the saved baseline with the smaller state. This is intentional: an accidental deletion should not silently become the new normal. After a warning, the baseline remains until the aggregate metrics recover to at least the previous baseline or you explicitly set a new baseline.
After you review sync or backups, use Set current vault state as baseline only if the shrink was expected.
Other safeguards:
You can exclude vault-relative folders in Settings → Vault Canary, one folder per line. For example:
Archive
Generated/cache
The folder itself and all descendants are ignored.
Vault Canary uses Obsidian's public Vault API. It therefore monitors files that Obsidian exposes through that API. Hidden/configuration folders such as .obsidian are not part of the monitored file set.
Vault Canary runs locally. It stores only settings, the aggregate baseline, the unresolved-shrink state, and the last alert time in the plugin's normal data file. It does not read note contents, upload data, or use analytics.
Vault Canary is available in the official Community Plugins directory:
Vault Canary in Community Plugins
Vault Canary.For unreleased builds, you can use BRAT with this repository:
https://github.com/nyonyataro/obsidian-vault-canary
npm install.npm run build.main.js, manifest.json, and styles.css into .obsidian/plugins/vault-canary/ in a test vault.Do not develop or test destructive scenarios against your only copy of a real vault.
npm install
npm run check
npm run check runs linting, unit tests for detection logic, TypeScript checking, and a production build.
Production main.js is generated during builds and release workflows; it is intentionally not committed to the source repository.
Stable releases are distributed through Community Plugins. Release tags use plain semantic versions such as 0.1.0 without a v prefix. A matching tag creates a draft GitHub release with main.js, manifest.json, and styles.css attached; after maintainer review, the release is published and the Community Plugins listing is checked.
If Vault Canary helps protect your notes, you can optionally support development with a coffee ☕. Donations do not unlock additional features.
Please report reproducible issues on GitHub without attaching private vault contents.
MIT