mobile-offline-support

Solid

Offline-first mobile apps with local storage, sync queues, conflict resolution. Use for offline functionality, data sync, connectivity handling, or encountering sync conflicts, queue management, storage limits, network transition errors.

Data & Documents 162 stars 25 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Mobile Offline Support Build offline-first mobile applications with local storage and synchronization. ## React Native Implementation ```javascript import AsyncStorage from '@react-native-async-storage/async-storage'; import NetInfo from '@react-native-community/netinfo'; class OfflineManager { constructor() { this.syncQueue = []; this.isOnline = true; // Maximum items in sync queue before discarding oldest this.MAX_SYNC_QUEUE_LENGTH = 1000; NetInfo.addEventListener(state => { this.isOnline = state.isConnected; if (this.isOnline) this.processQueue(); }); } /** * Fetch data from server. * TODO: Replace with actual API endpoint implementation. */ async fetchFromServer(key) { try { // Example implementation - replace with your API const response = await fetch(`${API_BASE_URL}/data/${key}`); if (!response.ok) { throw new Error(`Server returned ${response.status}`); } return await response.json(); } catch (error) { console.error('fetchFromServer failed:', error); throw new Error(`Failed to fetch ${key}: ${error.message}`); } } /** * Sync data to server. * TODO: Replace with actual API endpoint implementation. */ async syncToServer(key, data) { try { // Example implementation - replace with your API const response = await fetch(`${API_BASE_URL}/data/${key}`, { method: 'POST', headers: { 'Content-Type': 'applicatio...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

offline-sync

Use when implementing offline-first patterns with MMKV storage and React Query persistence in React Native.

3 Updated 1 months ago
majiayu000
Web & Frontend Solid

offline-sync

Use when implementing offline-first patterns with MMKV storage and React Query persistence in React Native.

183 Updated 1 months ago
majiayu000
AI & Automation Solid

mobile-offline-storage

Cross-platform offline-first data management

1,160 Updated today
a5c-ai
AI & Automation Listed

couchbase-mobile

Design and build mobile, edge, and offline-first applications with Couchbase Lite, Sync Gateway, and Capella App Services. Use whenever the user asks about Couchbase Lite, Sync Gateway, App Services, offline-first, mobile sync, data replication to mobile, Couchbase Lite database, replicator, push/pull replication, sync function, channel access, user authentication in mobile, conflict resolution in mobile, iOS Couchbase, Android Couchbase, React Native Couchbase, Xamarin Couchbase, .NET MAUI Couchbase, peer-to-peer sync, edge database, Couchbase Lite vector search, or 'how do I sync data to mobile apps.' Distinct from couchbase-xdcr (server-to-server replication) and couchbase-app-integration (server-side SDKs). Use proactively when the user has a mobile, IoT, field worker, or offline-capable application requirement.

1 Updated 4 days ago
celticht32
Data & Documents Listed

native-data-fetching

Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, axios, React Query, SWR, error handling, caching strategies, offline support.

335 Updated today
aiskillstore