Documents & spreadsheets guide

Apps that work without internet: how offline web apps work

By Taha Tahir Ali · Updated

Short answer

An offline web app saves its own files in your browser on the first visit (with a "service worker") and keeps your work on your device, so it opens and works without internet afterwards. Open it once while online, install it from the browser menu if offered, and test it in airplane mode. Raaj Office, Raaj Recipes, Raaj Premiere and Raaj Hunch work this way; anything that syncs, sends or looks things up online still needs a connection.

Internet in shops, schools, trains and villages still drops out. Some apps stop working the moment it does; others carry on as if nothing happened. The difference is not magic: it depends on where the app's files and your data live.

Three kinds of apps

Kind Where your work is Without internet
Online app (most websites, cloud software) On the company's server Stops or shows an error
Offline web app ("local-first") On your device, in the browser Opens and works normally
Installed desktop or phone app On your device Works, unless it checks a licence or syncs

The middle kind is the newest. It runs in a browser like a website but behaves like installed software (background in what is local-first software).

How an offline web app works

  1. On your first visit, the app saves its own files (pages, scripts, fonts) in the browser using a service worker.
  2. Your documents are stored on the device, in the browser's own storage.
  3. Next time, the browser loads the app from that saved copy if the network is gone, and fetches updates when it's back.

So the one rule is: open the app once while you're online, on the same device and browser you'll use offline.

Set it up before you need it

  1. Open the app on good internet and use it once.
  2. If the browser offers Install or Add to Home screen, accept it; the app then opens from its own icon.
  3. Turn on airplane mode and open it again. If it works now, it will work on the train.
  4. Keep the browser's site data: clearing "cookies and site data" removes both the app's copy and your work (see back up data stored in your browser).

Raaj apps that work offline

  • Raaj Office: Writer, Sheets and Slides; opens and saves Word, Excel and PowerPoint files; documents stay in your browser.
  • Raaj Recipes: your recipe book on your device; the optional account sync needs internet when you use it.
  • Raaj Premiere: a browser video editor; your clips stay on your device.
  • Raaj Hunch: a calculator for uncertain numbers; models stay in your browser.

Need internet: Raaj PDF must be opened online (the files you process still stay on your device), its Lisan ud-Dawat transliteration looks words up in an online dictionary, and the account-based products (billing, inventory, help desk) keep shared data on a server.

What never works offline

Sending email or WhatsApp messages, syncing between devices, payments, online dictionaries and maps, and anything shared live with other people. A good offline app tells you clearly when something waits for the connection.

Frequently asked questions

Do offline web apps use mobile data in the background?

They download updates when you open them online, usually small. Your documents are not uploaded unless you use a sync feature.

Will my work be lost if the app updates?

No. Updates replace the app's files, not your documents.

Is an offline web app safe?

Your data stays on your device, so it is as safe as the device: lock it, and keep backups.

Does it work on a cheap phone?

Yes, in a current version of Chrome, Edge or Safari; very large files are limited by the phone's memory.

Raaj Software

May you never need us again.

We build solutions that make themselves indispensable, not problems that make us indispensable.

A philosophy of customer independence, not customer dependency.