Overview
Peanuts works offline! When you lose connectivity, your entries are safely stored on your device and sync automatically when you reconnect.Offline mode requires installing Peanuts as a PWA for the best experience.
How It Works
Offline Capabilities
What Works Offline
Instant Logs
Simple entries using local pattern matching (0 credits)
View Data
Access recently cached Helpers and entries
Queue Entries
Store entries to sync later
Navigate
Browse the app interface normally
What Requires Connection
AI Features
Ask Peanuts, complex routing, Smart Scan
Voice Transcription
Speech-to-text requires cloud processing
New Helper Creation
AI-generated Helpers need connectivity
Real-time Sync
Live collaboration updates
Pending Entries
When you have unsynced entries, you’ll see:- Badge count showing number of pending entries
- Pending indicator in the app header
- Queue icon to view pending entries
Viewing Pending Entries
- Tap the pending indicator or badge
- See a list of all queued entries
- Entries show their destination Helper
- Status shows “Pending sync”
Manual Sync
To force a sync attempt:- Pull down to refresh on any screen
- Or go to Settings → Sync → Sync Now
- Automatic sync seems delayed
- You want to confirm sync status
- You’re about to close the app
Sync Behavior
Automatic Sync
- Triggers when connectivity is restored
- Runs in the background
- Shows toast when complete
- Retries failed entries automatically
Conflict Resolution
If the same entry was modified both offline and online:- Most recent change wins
- Conflicts are rare in practice
- No data is lost—older version is archived
Offline Duration
Peanuts stores offline entries indefinitely until synced. However:- Very old cached data may be cleared by the browser
- For long offline periods, sync before clearing app data
- The app preserves your queue across restarts
Best Practices
Check sync before closing
Check sync before closing
If you have pending entries, wait for sync to complete before closing Peanuts.
Use Instant Logs offline
Use Instant Logs offline
Simple pattern-matched entries work fully offline. Complex inputs queue for later processing.
Install as PWA
Install as PWA
Installing Peanuts provides better offline support than using the browser.
Sync periodically
Sync periodically
Don’t let too many entries queue up. Sync when you have connection.
Troubleshooting
Entries not syncing
Entries not syncing
- Check internet connection
- Try manual sync (pull to refresh)
- Restart the app
- Check if you’re logged in
Missing pending entries
Missing pending entries
- Check the pending queue
- Entries may have already synced
- Check the target Helper for synced entries
Sync errors
Sync errors
- Some entries may fail validation
- Check the error message
- The entry remains in queue for retry
- Contact support if issues persist
Technical Details
For developers and curious users:- Storage: IndexedDB for reliable local storage
- Queue: FIFO (first-in-first-out) processing
- Retry: Exponential backoff for failed syncs
- Cache: Service Worker caches app assets
