mobile-offline-sync
Skill4 starsChanged 5 months agoMITView on GitHub
Offline-first patterns for React Native including local databases (WatermelonDB, expo-sqlite, MMKV), background sync, conflict resolution, and large file offline queues. Use for field-capture apps with unreliable connectivity.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- wrsilva/reis-mobiletheir own version, first seen Nov 8, 2026
- SkillMedev/mobile-app-engineeringtheir own version, first seen Oct 5, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- wrsilva/reis-mobile★ 8same name
- SkillMedev/mobile-app-engineering★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository101 other files it gives its agents.
- ai-video-understandingSkill
- apple-foundation-modelsSkill
- arch-dddSkill
- arch-decision-recordsSkill
- arch-diagramsSkill
- arch-eventsSkill
- arch-mvp-roadmapSkill
- arch-python-modernSkill
- aws-app-runnerSkill
- aws-cicd-patternsSkill
- aws-security-hardeningSkill
- azure-functions-python-v2Skill
- azure-identity-m2m-authSkill
- azure-service-bus-messagingSkill
- azure-workflow-execution-modelsSkill
- caddy-tls-proxySkill
- compliance-frameworksSkill
- design-system-workflowSkill
- dev-debugging-strategiesSkill
- dev-standardsSkill
- docker-python-poetrySkill
- docker-pythonSkill
- fastapi-patternsSkill
- ffmpeg-laravel-videoSkill
- formik-yup-react-nativeSkill
- frontend-accessibilitySkill
- frontend-angular-aiSkill
- frontend-angularSkill
- frontend-angular-toolingSkill
- frontend-design-systemsSkill
- frontend-material-chatSkill
- frontend-material-design-3Skill
- frontend-svelteSkill
- gcp-cicd-patternsSkill
- gcp-cloud-runSkill
- gcp-cloudsql-infrastructureSkill
- gcp-finopsSkill
- gcp-observabilitySkill
- gcp-security-hardeningSkill
- github-actions-cicdSkill
- healthkit-biofeedbackSkill
- infra-terraformSkill
- ios-app-qualitySkill
- ios-audio-hapticsSkill
- jest-nestjs-testingSkill
- langchain-azure-openai-patternsSkill
- laravel-auth-hardeningSkill
- laravel-ci-mysqlSkill
- laravel-mix-webpackSkill
- laravel-modern-patternsSkill
- laravel-pint-patternsSkill
- laravel-s3-storageSkill
- laravel-sail-dockerSkill
- mobile-app-deploymentSkill
- mobile-e2e-testingSkill
- mobile-push-notificationsSkill
- mobile-video-uploadSkill
- mongodb-asyncmongoclient-patternsSkill
- mongodb-atlas-patternsSkill
- nestjs-patternsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
RealmJS sync features deprecated September 2025: Avoid for new projects; existing apps should plan migration.
- Very specific: line 27
Optimistic UI: Write locally first, update UI immediately, queue sync operation with pendingSync flag
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mobile Offline Sync
Offline-first architecture patterns for React Native field-capture applications (construction, inspection, agriculture) where connectivity is unreliable and large files must be captured locally then synced later.
Database Decision Matrix
| Library | Use Case | Performance | Sync |
| WatermelonDB 0.27 | Complex relational data, 10k+ records, reactive queries | Excellent (lazy load, native thread) | Built-in protocol |
| expo-sqlite SDK 53 | Expo managed workflow, simpler relational needs | Good (sync API available) | Manual or PowerSync |
| op-sqlite 15.x | Performance-critical, advanced SQLite features (FTS5, sqlite-vec) | Best raw speed (5x less memory) | PowerSync |
| MMKV v4 | Preferences, session tokens, feature flags, small cached data | 30x faster than AsyncStorage | N/A (key-value only) |
RealmJS sync features deprecated September 2025. Avoid for new projects; existing apps should plan migration.
Sync Strategy Quick Reference
- Optimistic UI: Write locally first, update UI immediately, queue sync operation with
pendingSyncflag - Queue-based: Operation log with retry counts and exponential backoff; replay on reconnect via NetInfo listener
- CRDTs (Yjs, Automerge): Reserve for collaborative editing scenarios; most field apps use last-write-wins safely since records have single-user ownership
Large File Offline Queue
For video capture: compress to 20-50 MB with react-native-compressor, persist upload queue and chunk progress to MMKV, use tus protocol or 500 KB chunked uploads for resumable transfers across app restarts.
Cross-References
- reference.md: Database install commands, conflict resolution strategies, background sync setup, security patterns, anti-patterns table
- examples.md: Production TypeScript for WatermelonDB models, MMKV+Zustand stores, sync managers, video capture flows, migration patterns
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

