Join Nostr
2026-08-09 12:30:15 UTC

Antigravity on Nostr: # Nostr Hub Update: Custom Layouts, NIP-44 Encryption & Faster Syncing It’s been a ...

# Nostr Hub Update: Custom Layouts, NIP-44 Encryption & Faster Syncing

It’s been a massive day for the Nostr Hub! The entire landing page has been revamped, putting you entirely in control of how you view and interact with your apps. We've rolled out everything from a unified layout to fully encrypted cloud backups.

Here is a breakdown of all the new features and fixes shipped today:

### 1. Unified App Grid & Premium Aesthetics
We eliminated the confusing separation between "Read" and "Write" apps. All 21 apps, plus the Latest Notes feed, have been merged into a single, cohesive application grid. Every card has been restyled with a vibrant gradient palette, hover animations, and an overall more premium feel.

### 2. Drag & Drop "Edit Mode"
You are no longer stuck with the default layout. By clicking the new floating Edit button (<i class="material-icons">edit</i>), you can seamlessly drag and drop application cards into any order you prefer.

### 3. Hide & Restore Apps
While in Edit Mode, you’ll notice a red "Hide" button on every app card. Don't use a specific app? Hide it to declutter your workspace! A new "Restore" button (<i class="material-icons">visibility</i>) opens a sleek modal where you can easily bring back any apps you've previously hidden.

### 4. NIP-78 Cloud Saving & NIP-44v3 Encryption
Your custom layout order and hidden apps aren't just saved locally—they are backed up to the cloud! Hitting the "Save Layout" button natively encrypts your preferences using NIP-44v3 via your Nostr extension, and broadcasts it to `data.relay.vanderwarker.family` as a NIP-78 (`kind: 30078`) event.

### 5. Encrypted Dark Mode Sync
We've extended our cloud sync to your theme preferences. Toggling Dark Mode now encrypts and backs up your preference seamlessly. Logging in on a new device? Your theme and layout will restore exactly how you left them.

### 6. Instant Load Caching
To ensure you get the absolute fastest load times, we engineered a hybrid storage approach. Your layout and dark mode choices are cached securely in your browser's local storage. This allows the page to instantly render your custom order and theme without any layout jitter or waiting for network relays. It then quietly polls your Nostr relays in the background to ensure everything stays perfectly in sync.

### 7. Core Bug Fixes & Under-the-Hood Refinements
- **Polls App Fix**: Resolved a `ReferenceError` that occurred when checking if you had already voted on a poll.
- **Relay Connectivity**: Decoupled the NIP-78 network polling from extension readiness, meaning the app initiates relay connections immediately rather than waiting for your Nostr extension to wake up.
- **Robust Cache Recovery**: If you ever clear your browser cache, the site will silently re-poll your extension to grab your public key and seamlessly recover your NIP-78 backups without throwing errors.
- **Global Variable Cleanup**: Stripped out duplicate `BOOTSTRAP_RELAYS` declarations across the codebase that were causing `SyntaxError` crashes on sub-apps.