Description
A plugin for tracking note integrity in Joplin
Additional Information
| Links: | |
|---|---|
| Maintainers: | dzen.tiur.2 |
| Version: | 1.0.0 |
| Minimum app version: | 3.7 |
| Downloads: This version: | 2 |
| Last updated: | 2026-11-30T01:59:45Z |
Joplin NotesGuard
A plugin for Joplin that keeps track of note integrity.
Features
- On startup, recounts all notes and stores snapshots of the notes tree (titles, notebooks, update time, size) and of the notebook tree as the baseline for summaries. Snapshots are stored in the plugin state and survive an app restart.
- The regular summary computes changes by diffing snapshots of the notes tree since the previous summary, so it includes edits of unselected notes and changes arriving via synchronization from other clients.
- On schedule (daily, weekly or monthly; the time is configurable), composes
a change summary and writes it to the log note:
- each entry is prepended to the log note and separated by a horizontal rule; the entry header is "Summary for YYYY-MM-DD HH:MM";
- the summary lists all created, updated, moved and deleted notes — in sections with counts; note titles are colored (by default: created — green, updated — dark goldenrod, moved — purple, deleted — red; colors are configurable);
- an internal "(link)" to the note is added after its title (deleted notes get no link);
- for updated and moved notes, the size change is shown in the format "old+diff=new";
- for moved notes, a "from" -> "to" path is added; the old path is built from the notebook tree snapshot at the previous summary, so renames and moves of the notebooks themselves are taken into account;
- if there were no changes, the line "No changes since the previous summary." is written;
- at the end of the summary, the note count formula is written:
old value + created - deleted = actual; - if the expected count differs from the recount result, a red line "Mismatch detected!!!" is added to the summary.
- The plugin's own entries in the log note do not appear in the next summary as note changes.
- The "Collect NotesGuard change summary" command in the "Tools" menu collects an unscheduled summary from the snapshot diff. If there was no snapshot yet, the command fixes the note count, stores the snapshot as the baseline and prepends an entry "Note statistics recounted: N" with the date and time to the log note.
- The schedule is checked immediately on startup and then once a minute, so a summary is not skipped if the app was opened after the configured time.
Settings ("NotesGuard" section)
| Setting | Description | Default |
|---|---|---|
| Summary time (HH:MM) | Local time when the summary is composed | 08:00 |
| Summary frequency | Daily / weekly / monthly | Daily |
| Log note notebook | Created automatically if it does not exist | NotesGuard |
| Log note title | Created automatically if it does not exist | Log |
| Color of created note titles | CSS color name or #RGB / #RRGGBB code |
green |
| Color of updated note titles | CSS color name or #RGB / #RRGGBB code |
darkgoldenrod |
| Color of moved note titles | CSS color name or #RGB / #RRGGBB code |
purple |
| Color of deleted note titles | CSS color name or #RGB / #RRGGBB code |
red |
| Add path to statistics for moved notes | A "from" -> "to" path of notebook names after the note title | Enabled |
An invalid color value is replaced with the default color.
Building
npm install
npm run dist
The resulting plugin file dzen-tiur.NotesGuard.jpl will appear in the
publish/ directory. It can be installed in Joplin via "Tools → Options →
Plugins → Advanced → Install from file".