Offline Mode
9.1 Understanding Offline Mode
EasyPrompter supports offline access for viewing and (with paid plans) editing scripts.
Free Plan:
- Read-only offline access
- Can view cached scripts
- Cannot create or edit scripts offline
Creator/Studio Plans:
- Full offline access
- Can view and edit cached scripts
- Cannot create new scripts while offline (create requires an online connection)
- Collections available offline
9.2 Enabling Offline Mode
Automatic Caching
- Scripts you view are automatically cached
- Smart Precaching: Your Recent Scripts and Collections are proactively cached in the background, ensuring your most important work is available even if you haven't opened it recently.
- Caching happens in background
- No manual action required
Manual Caching
- View scripts while online (they're cached automatically)
- View collections while online
- Data is stored in browser's IndexedDB
- Available offline after caching
Edge Cases:
- Very large scripts may take time to cache
- Browser storage limits apply (typically 50MB-1GB depending on browser)
- Clearing browser data clears offline cache
9.3 Using Offline Mode
When Offline
- App detects you're offline
- Offline Mode indicator appears
- You can access cached scripts and collections
- Free plan: Read-only access
- Paid plans: You can edit cached scripts (edits are saved locally and sync when you reconnect)
Offline Indicators
The app shows different indicators based on your connection status:
Bottom-Right Indicator (paid plans):
- Yellow "Offline Mode": Shows when offline
- Displays number of cached scripts available
- Shows days remaining if approaching grace period limit
- Green "Back Online": Shows briefly when connection is restored
Read-Only Indicator (Free plan):
- "Read Only" badge appears on scripts
- Cannot edit even cached scripts
Grace Period (Paid Plans)
Paid plans include an offline grace period:
- Duration: 7 days of offline access
- Countdown: When approaching limit, shows "X days remaining"
- Expiration: After grace period expires, access is blocked until you reconnect
- A full-screen modal appears requiring internet connection
- Click "Retry Connection" to reconnect and restore access
Edge Cases:
- If script isn't cached, it won't be available offline
- Offline edits sync automatically when you're back online (best-effort)
- If the script changed on the server while you were offline, you may be prompted to choose which version to keep
- Editor drafts are stored locally while you work but do not appear as separate scripts in the script list
- Network reconnection is detected automatically
- Changes made offline sync when you reconnect
- Grace period resets each time you connect to the internet
- The offline indicator doesn't appear for the first 30 seconds after page load (to prevent false positives)
9.4 Managing Offline Cache
Viewing Cache Status
- Go to Settings → Offline Cache
- See cached scripts count
- See cache size
- See last sync time
Clearing Cache
- Go to Settings → Offline Cache
- Click "Clear Cache"
- Confirm clearing
- All cached data is removed
Edge Cases:
- Clearing cache doesn't delete scripts from server
- You'll need to view scripts again to cache them
- Cache is per-organization (switching orgs loads different cache)
9.5 Syncing Changes
When You Reconnect
- App detects you're back online
- "Back Online" message appears
- Offline changes sync automatically
- You can create/edit scripts normally
Sync Conflicts
- Rare, but can occur if script was edited by another user while you were offline
- You'll see a conflict resolution dialog
- Choose which version to keep
Edge Cases:
- If sync fails, you'll see an error message
- You can retry sync manually
- Very large changes may take time to sync