Pumice
approvedby Ji-ho Lee
Sync, version, publish, and share your vault over your own self-hosted server. - This plugin has not been manually reviewed by Obsidian staff.
Pumice
πΊπΈ English | π°π· νκ΅μ΄
An Obsidian community plugin that syncs your vault with a self-hosted server (pumice-server β required, run it yourself). The goal is to sync instantly, no matter how many files are in the vault.
Overview
- Client: TypeScript, Obsidian community plugin (this repository)
- Server: Python (
asyncioreactor+Twisted), see pumice-server - Transport: a single persistent WebSocket connection, opened automatically once you've logged in and kept open for as long as Obsidian is running β modeled on Obsidian's own built-in Sync plugin, so an edit on one device shows up on another right away instead of waiting for a periodic sync. (Earlier versions used gRPC-Web, one HTTP/2 request per RPC with no live push; this version replaces that entirely.)
- Auth: a static token stored in Obsidian's own secret storage (
App#secretStorage, desktop and mobile alike, no platform-specific code needed)
Key features:
- Vault file sync (delta comparison, only changed files are uploaded/downloaded)
- Sync history browsing and file recovery (
syncHistoryModal,fileRecoveryModal) - Automatic local snapshots with retention (
localSnapshotStore) - Selective publishing of chosen folders (
publishModal), including custom domain, navigation, and appearance options for the published site - Site collaboration β publish to a site owned by another account once they've accepted you as a
collaborator (
Publish a shared siteβ¦command,sharedSitePickerModal) - Vault sharing β sync your own vault against another account's instead of your own
(
sharedVaultOwnersetting), or manage who can sync against yours (vaultShareModal) - Community plugin sync β optionally sync installed plugins' code and/or their own
data.json(syncPlugins/syncPluginData, both off by default) - Sync diagnostics log for troubleshooting skipped/queued syncs (
Open sync diagnostics logcommand,syncDiagnosticsModal) - Localization support (Korean/English,
src/locales)
Requirements
- Node.js (with npm)
- Obsidian 1.13.4+ (
manifest.json'sminAppVersion). The settings tab renders entirely via the declarative settings API (getSettingDefinitions()), so it's searchable from Obsidian's own settings search; there's no legacy/imperative fallback UI to keep in sync.
Building
npm install
# Development mode (watch)
npm run dev
# Production build
npm run build
# Type-check only
npm run lint
main.js is generated by esbuild from src/. For releases, it's built alongside
manifest.json and styles.css and attached as a GitHub Release artifact.
Releasing
Pushing a tag runs .github/workflows/release.yml, which
builds the plugin and creates a GitHub Release with main.js, manifest.json, and
styles.css attached (this is also what tools like BRAT, and the official Community Plugins
installer, expect to find). The tag must match manifest.json's version exactly, with no
v prefix.
Bump the version with npm version, which syncs manifest.json and versions.json (via
scripts/version-bump.mjs, wired up as the version lifecycle script) and creates a matching
git tag (.npmrc disables npm's default v prefix):
npm version patch # or minor / major
git push --follow-tags
versions.json maps each released plugin version to the minAppVersion it required at the
time β Obsidian's installer uses it to pick a compatible release for users on older app
versions, which matters once this plugin is submitted to the Community Plugins list.
Installing locally in Obsidian for testing
- Run
npm run buildto generatemain.js. - Create a
.obsidian/plugins/pumice/folder in your vault and copymain.js,manifest.json, andstyles.cssinto it. - Enable Pumice under Settings β Community plugins in Obsidian.
How sync works
Once you've logged in (Settings β Pumice β "Log in", which opens the server's login page in your system browser and hands a token back to Obsidian), the plugin keeps one WebSocket connection to the server open for as long as Obsidian is running β there's no separate "enable live updates" toggle or sync-interval setting to configure, matching how Obsidian's own official Sync works. That connection is what:
- pushes local edits to the server (debounced briefly so a burst of keystrokes becomes one upload, not one per keystroke),
- receives other devices' changes and applies them immediately, and
- runs a full safety-net sync every 30 seconds regardless of push activity, so nothing gets permanently stuck even if a push notification is ever missed.
The status bar icon reflects this connection the same way Obsidian core Sync's own icon does β hover it for a short status ("Syncingβ¦", "Fully synced", "Sync error", etc.). Manually triggering a sync (ribbon icon or the command palette) still shows a toast notification; the automatic background activity above stays silent unless something actually fails.
If the connection drops (network blip, server restart, laptop sleep), it reconnects on its own with backoff and catches up on just what changed while it was gone β it doesn't rescan the whole vault on every reconnect.
Settings
| Setting | Default | Description |
|---|---|---|
| serverHost | localhost | Pumice server address |
| serverPort | 8080 | HTTP + WebSocket port |
| useTls | false | Use TLS (recommended for remote servers) |
| deviceName | OS hostname (desktop) or "Obsidian Client" | Name identifying this device |
| userName | Obsidian User | User name |
| sharedVaultOwner | (empty) | If set, sync against that account's vault instead of your own β requires an accepted share from that account, and this vault's folder name must match their vault ID exactly |
| syncFiles | true | Whether to sync files |
| syncBookmarks | true | Whether to include bookmarks (.obsidian/bookmarks.json) |
| syncPlugins | false | Sync installed community plugins' code/manifest (off by default β this syncs executable code, a bigger trust boundary than note content) |
| syncPluginData | false | Also sync each plugin's own data.json (off by default β commonly holds secrets like API tokens in plaintext) |
| ignorePatterns | see below | Path patterns excluded from sync |
| conflictResolution | server-wins | Which side wins for a non-text file, or a text file with nothing to merge against (server-wins / client-wins) β text files (notes, .json/.css/.js/.base/.canvas) always attempt a 3-way merge first, regardless of this setting |
| enableE2EE | false | Enable end-to-end encryption |
| publishIncludeFolders / publishExcludeFolders | - | Folders to include/exclude when publishing |
| localSnapshotIntervalMinutes | 5 | Local snapshot interval (minutes) |
| localSnapshotKeepDays | 7 | Local snapshot retention (days) |
Default exclude patterns (ignorePatterns / publishExcludeFolders):
.obsidian/workspace
.obsidian/workspace.json
.obsidian/workspace-mobile.json
.obsidian/cache
.obsidian/plugins/pumice
.trash
The vault's folder name is its identity on the server. There's no separate vault ID β the vault's folder name is used as-is to key everything server-side (sync, publish, version history). Every device syncing the same vault needs a folder with the exact same name; a mismatch isn't rejected, it just syncs as an unrelated vault. The settings tab shows the current vault's name for this reason.
"Publish current file" requires
publish: truein the note's frontmatter. Folder-level inclusion (publishIncludeFolders) doesn't need it, but the single-file force-publish action won't upload a file until its frontmatter says so β otherwise a file could go live on the server yet silently fall out of scope on the next folder-wide publish scan, which is frontmatter-driven.
Project structure
pumice/
βββ src/
β βββ main.ts # Plugin entry point; owns the live connection lifecycle
β βββ settings.ts # Settings types and defaults
β βββ settingsTab.ts # Settings panel UI
β βββ settingsTabConnection.ts # Which setting changes require dropping/rebuilding the WS
β βββ settingsTabKeyboard.ts # Works around core's Tab-as-navigation keydown handler
β βββ syncClient.ts # Sync orchestration (scan/E2EE/conflict-resolution/hashing)
β βββ syncTransport.ts # Transport-agnostic interface syncClient.ts talks to
β βββ wsTransport.ts # WebSocket protocol layer (framing, heartbeat, reconnect)
β βββ wsSyncTransportAdapter.ts # Adapts wsTransport.ts to the syncTransport.ts interface
β βββ liveUpdates.ts, liveStatus.ts # Reconnect backoff; status bar icon/state model
β βββ batching.ts # Splits path lists into byte-size + file-count bounded batches
β βββ concurrency.ts # mapWithConcurrency / streamWithConcurrency helpers
β βββ contentHashCache.ts # Persists per-file content hashes (mtime+size keyed)
β βββ lastSyncedHashStore.ts # Per-path "base" hash the 3-way merge diffs against
β βββ textFileTypes.ts # Shared text-file classification (merge/diff eligibility)
β βββ syncHistoryModal.ts # Sync history UI
β βββ fileRecoveryModal.ts # File recovery UI
β βββ localSnapshotStore.ts # Local snapshot management
β βββ diffView.ts # File diff view
β βββ syncDiagnosticsLog.ts, syncDiagnosticsModal.ts # In-memory sync log + its viewer UI
β βββ publishModal.ts # Selective publish UI (folders, site options, custom domain)
β βββ publishEligibility.ts # Pure "should this file be published" decision logic
β βββ navigationOrdering.ts # Customize-sidebar drag/reorder logic for published sites
β βββ siteCollaboration.ts, sharedSitePickerModal.ts # Publish to a site owned by another account
β βββ vaultShareModal.ts # Owner-side "Manage sharing" UI for vault sync sharing
β βββ pluginSync.ts # .obsidian/plugins/** sync logic (opt-in)
β βββ pluginReload.ts # Hot-reloads community plugins after sync pulls new code
β βββ swipeNavigation.ts # Mobile swipe navigation
β βββ tokenStore.ts # Auth token storage (App#secretStorage)
β βββ deviceName.ts # Default device name decision (OS hostname fallback)
β βββ errorMessage.ts # Error-to-string helper
β βββ momentUtil.ts # Typed wrapper around obsidian's locale-aware moment instance
β βββ i18n.ts, locales/ # Localization strings
βββ scripts/
β βββ version-bump.mjs # Syncs manifest.json/versions.json, run by `npm version`
βββ main.js # Generated by esbuild
βββ manifest.json # Obsidian plugin manifest
βββ versions.json # Plugin version β minAppVersion map
βββ esbuild.config.mjs # Build configuration
Contributing
- Fork the repository and create a branch.
- Run
npm run lintafter your changes to make sure there are no type errors. - Keep commit messages concise and focused on the reason for the change.
- Open a Pull Request. Include screenshots for UI changes.
Please use GitHub Issues to report bugs or suggest features.
Support
If you'd like to sponsor this project, reach out at search5@gmail.com. Sponsorships make a real difference in how much time can go into development.
License
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.