---
title: Offline Kit
description: "A macOS builder for an offline emergency microSD card: knowledge, maps, installers and an encrypted vault."
date: 2026-11-30T23:00:00.000Z
repoURL: "https://public.omerduran.dev/omer/offline-kit/"
canonical: "https://omerduran.dev/projects/offline-kit"
---

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.sh` asks 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 `.7z` alternative for iOS.
- **Resumable and verified** — downloads resume, sizes are checked, superseded editions are deleted, and `5-verify.sh` checks the result.

## Under the hood

- Bash 3.2, the version macOS ships, so the tools run without Homebrew.
- A catalogue in `_tools/lib/catalog.sh` drives the menus, presets and space budget; the download scripts read the current Kiwix, OsmAnd and GitHub indexes instead of hardcoded versions.
- `4-sync.sh` copies 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 `full` archive 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

```sh
git clone https://public.omerduran.dev/omer/offline-kit.git
cd offline-kit
./install.sh --plan
```
