Connect & Sync
Browser Sync (Default)
Browser Sync works immediately with no configuration. Just:
- Make sure you’re signed into your browser’s sync (Chrome Sync, Firefox Sync, Brave Sync, etc.)
- Add whitelist rules for the sites you want to sync
- That’s it — data syncs automatically across all your devices using the same browser
Add Your First Whitelist Rule
- Navigate to a site you want to sync (e.g.,
https://www.obsidianstats.com) - Click the StashBridge icon in your toolbar
- The Origin field auto-fills with the current site
- Enter a specific localStorage key, or check sync all keys
- Click Add Rule
Storage Usage
Browser Sync has a 100KB limit. StashBridge compresses data (typically 50-70% reduction), so you effectively get ~200-300KB of raw data. The popup shows a usage bar so you can monitor this.
Optional Encryption
- Open Settings (gear icon)
- Check Encrypt synced data
- Enter a passphrase
- Important: Enter the same passphrase on every browser. It’s stored locally only — not synced.
Server Relay (Optional)
To sync across different browsers (Chrome to Firefox), switch to Server Relay or Both mode:
- Deploy the server first
- Open StashBridge Settings (gear icon)
- Change Sync Mode to “Server Relay” or “Both”
- Enter your worker URL and API token
- Click Save
Sync Modes
| Mode | What it does |
|---|---|
| Browser Sync (default) | Uses Chrome/Firefox/Brave built-in sync. No server needed. Same browser only. |
| Server Relay | Uses your Cloudflare Worker. Works across different browsers. |
| Both | Uses both. Browser sync for same-browser devices, server for cross-browser. |
How Sync Works
- Local changes: When a whitelisted site writes to
localStorage, the extension captures it and pushes within 500ms - Remote changes: Every 60 seconds, the extension pulls new changes and applies them to open tabs
- Conflicts: Last-write-wins by timestamp
- Offline: Changes queue locally and push when connectivity returns
- Compression: All synced data is compressed with LZ-String before storage