Skip to content

Install as an App and Offline Reading

Sergii Kravtsov edited this page Nov 27, 2026 · 1 revision

Install as an App and Offline Reading

Folio can be installed from a supported browser as an app, and individual Markdown documents can be saved on a trusted device for read-only access without a connection. This page needs Folio 0.4.6 or later. The offline reader was contributed by @HarryJhin in #27; the maintainers added a few fixes in review.

This is separate from offline editing, which already covers documents and boards you have opened: those stay editable and sync by themselves. The saved copies described here are for reading in a fresh offline session.

What it does

  • Install. In a browser that supports it, use the install item in the browser menu (or add Folio to the home screen). Folio then opens in its own window. The title bar follows the Folio theme you selected, including a change of system appearance.
  • Save for offline reading. A Markdown document's menu has Save for offline reading. Folio stores the current server copy in this browser profile.
  • Read it later without a connection. Close Folio, go offline, then open the document's normal link, or open Folio at its root address to see the list of saved documents. The copy is read-only and shows when it was saved.

The reader starts working on your first save, not before, and it keeps answering while the server restarts during an update.

Save and remove a copy

  1. Sign in on a device you trust and open a Markdown document.
  2. Open the document menu and choose Save for offline reading.
  3. To remove one copy, use the same menu. To remove all of them, sign out. Switching to another account also clears the previous account's copies.

If the document changes on the server, save it again to refresh the copy; the timestamp shows which version you have.

What works offline and what needs a connection

Works offline Needs a connection
Reading saved Markdown documents (read-only) Editing in a fresh session (documents and boards you opened earlier stay editable, as before)
The list of saved documents at the root address Attachments and embedded media
Documents and boards you opened before, with their queue of edits Data tables, forms, file uploads and templates
Navigating the full space tree

Trusted devices only

A saved copy is readable by anyone who uses the same browser profile or installed app while offline. Save documents only on a device you trust. Each browser profile, and any isolated home-screen app, keeps its own copies. Clearing site data, or the browser evicting storage, can remove them.

Permission changes made on the server reach the device when it reconnects.

Copies expire with the session

A saved copy that the server has not confirmed within the sign-in lifetime is deleted from the device, so an expired session does not leave readable copies behind. The lifetime is FOLIO_SESSION_TTL_DAYS (30 days by default, counted from sign-in).

Switch it off: FOLIO_PWA=off

An administrator can switch the installable app and the offline reader off for the whole instance with FOLIO_PWA=off in the environment (it is on by default). Then:

  • the server hides the manifest and Save for offline reading;
  • it answers /sw.js with a replacement worker that removes the reader's caches and saved copies (not the queue of offline edits) and unregisters itself.

Rolling back to a version without the offline reader: switch off first, then roll back the image.

  1. Set FOLIO_PWA=off and restart.
  2. Wait a day, so browsers fetch the replacement worker.
  3. Deploy the older image.

Without step 1, browsers keep the old worker, because a version without /sw.js cannot replace it. See the FOLIO_PWA row in INSTALL.md.

Limits

  • Saved copies are read-only Markdown documents; boards, tables and forms are not saved this way.
  • Support for installing depends on the browser.
  • The complete list: LIMITATIONS.md and the offline section of FEATURES.md.

See also

FAQ and Troubleshooting · Getting Started · Backups, Updates and Monitoring · Pull request #27

Clone this wiki locally