A charged phone with no working connection is a specific failure mode: a border crossing with roaming off, a network outage, a stolen phone replaced by a blank one. Offline Kit builds a microSD card that still works in that state.
What it does
- One command —
install.shasks what to include, formats the card, and runs each download step in order. - Knowledge — Kiwix archives: Wikivoyage, Wikipedia, first aid, water, food, post-disaster and repair guides.
- Maps — OsmAnd country data, kept zipped, plus transit PDFs that open without an app.
- Installers — macOS, Android and Windows builds of the apps that open the archives, downloaded while there is still internet.
- Local model — a GGUF model for PocketPal or llama.cpp, so the card can answer questions offline.
- Encrypted layer — a VeraCrypt container for passport and insurance scans, with an encrypted
.7zalternative for iOS. - Resumable and verified — downloads resume, sizes are checked, superseded editions are deleted, and
5-verify.shchecks the result.
Under the hood
- Bash 3.2, the version macOS ships, so the tools run without Homebrew.
- A catalogue in
_tools/lib/catalog.shdrives the menus, presets and space budget; the download scripts read the current Kiwix, OsmAnd and GitHub indexes instead of hardcoded versions. 4-sync.shcopies documents and tools to the card but never overwrites a file you filled in by hand.- The repository ships templates and scripts only; the archives are fetched at build time and stay under their upstream licenses.
Limits
- macOS 12+ is the build host. The card itself reads on iOS, Android, Windows and Linux.
- A 32 GB card fills quickly once maps are included; the
fullarchive preset needs 64 GB. - The emergency card and vault are only useful if you fill them in, print the card and test the reader before you need them.
Run it
git clone https://public.omerduran.dev/omer/offline-kit.git
cd offline-kit
./install.sh --plan