✅ Column Sync with Nostr Relays (NIP-78)
How It Works
Your column configurations are now saved to Nostr relays using NIP-78 (Application-specific Data) with kind 30078. This means:
Automatic Sync:
✅ Log in → Columns automatically load from relays
✅ Add/edit/remove columns → Auto-saves to relays after 2 seconds
✅ Log out and back in → Your columns are still there
✅ Clear browser data → Log in again → Columns restored from relays
✅ Use different browser/device → Log in → Same columns appear everywhere
Manual Sync Options
In the Settings ⚙️ menu, you now have:
☁️ Save to Relays - Manually force save your current columns
☁️ Load from Relays - Manually pull columns from relays
Shows loading state ("...") when syncing
Disabled when not logged in
Storage Strategy
Double backup for reliability:
Nostr Relays (primary) - Syncs across all devices
localStorage (fallback) - Works offline and when logged out
User Experience
First time:
Create your perfect column setup
Log in with Nostr
Columns auto-save to relays (2-second delay)
Toast notification: "Columns saved to relays"
After clearing browser:
Open CyberDeck
Log in
Toast notification: "Columns synced - Loaded X columns from relays"
Your exact column setup appears instantly!
On another device:
Open CyberDeck
Log in with same Nostr account
Your columns sync automatically
Identical deck on all devices!
What Gets Saved
Everything about your columns:
✅ Column type (Latest, Worldwide, Hashtag, Author, Custom)
✅ Column titles
✅ Custom filters (kinds, authors, hashtags, dates, etc.)
✅ Column order/position
✅ All settings and preferences
You'll never lose your column setup again! 🎉
https://cyberdeck.shakespeare.wtf
