Strong Offline Packages
Use a verified package when a web app must launch reliably without network connectivity or WebKit cache eviction. A manifest describes an app; a package delivers it durably.
What becomes offline
A complete installed package contains its declared HTML, CSS, JavaScript, images, fonts and icon assets in Drel-managed persistent storage. After every declared file is verified by SHA-256 and the package is atomically activated, its entrypoint can open with airplane mode on.
How an install works
Nothing is activated until every file has been verified. That is what makes the offline guarantee hold.
Trust and installation
- A trusted parent app manifest identifies the web app and pins its Web App Manifest and resource manifest.
- The resource manifest (
package.json) declares each allowed file by path, size and SHA-256 digest. - Drel downloads and verifies the complete package into staging, then activates it atomically.
- The user explicitly downloads, updates or removes a package. A push may open a registered app, but cannot silently install or upgrade one.
Only an operator-approved, signed app registration can authorize an offline package. There is intentionally no public "self-sign any website" shortcut.
Update lifecycle
| Event | Expected result |
|---|---|
| First download | The current package is installed only after every file passes SHA-256 verification. |
| New version available | Publish immutable assets and a new versioned resource manifest; the user initiates an update. |
| Verification or network failure | The prior complete package remains active. A partial staging directory is discarded. |
| Push arrives | It routes to an already registered app and route. It never mutates package bytes. |
Standard PWA compatibility
Use standard manifest.webmanifest fields for name, icons, start URL, scope and display. Drel’s drel_offline profile binds the offline resource set separately so it can be verified exactly. Service Worker and ordinary browser cache are useful optimizations, but they are not Drel’s durable-offline guarantee.
Try the live fixtures: Strong Offline Demo and Offline + Live Data Demo.