offline-first

Installation
SKILL.md

Offline-First Architecture

Apps that require internet to work lose 30%+ of users. These patterns make your app work everywhere — with or without connectivity.

Core principle: Local DB is source of truth

User Action → ViewModel → Repository
                         Local DB (Room)  ← single source of truth
                          UI observes Flow from Room
                               ↓ (background)
                         Network sync → update Local DB → UI auto-updates

Rule 1: Single-direction data flow — never mix local + remote in UI

Installs
9
GitHub Stars
13
First Seen
Apr 19, 2026
offline-first — piyushverma0/android-agent-skills