← all repositories
Immortal-Protocols/lastbook

A survival library that assumes the internet is gone

Lastbook bundles manuals, videos, maps and a local AI into one offline desktop app — built for the day you actually need it.

★2.9k stars Python RAG · SearchDomain Apps
Too new to rank. Velocity needs a few days of history.
not enough history yet
star history

What it does Lastbook is a desktop app (Mac, Windows, Linux) that puts a curated survival library on one computer: manuals and PDFs, videos, offline encyclopedias as ZIM files, and an offline map with street-level detail for a US state of your choosing. A chat interface answers questions in plain language and cites the library pages it drew from, using an optional local model that runs on your machine. After first-run setup downloads your chosen pack, everything works with no network at all.

The interesting bit The paranoia is the feature. The app opens no listening port, the UI talks to the engine through an in-memory bridge, and exactly one module (engine/setup/download.py) is allowed to touch the network — HTTPS only, to an allow-list of hosts, pinned to 11 Mozilla root certificates instead of the system trust store. Every download is SHA-256 checked, zips are inspected for unsafe paths, and library updates unpack beside the old data and swap in with a single rename so a failed update never breaks a working library. Builds even refuse to ship if a package scan finds a stray network call.

Key highlights

  • Curated short guides for urgent needs, each linking to real library pages with page numbers — plus a gaps.json recording what curators searched for and couldn’t find, which is refreshingly honest.
  • Offline address search and detailed state maps (streets, terrain, water, help points); you pick the state, the app never detects location.
  • Chat works without the AI model too — it falls back to finding the right pages.
  • The web UI is plain HTML/CSS/JS with no build step and nothing loaded from the web.
  • A library-server variant (server.py) runs the same engine in a browser for sharing with phones on local Wi-Fi.

Caveats

  • Linux is narrowly scoped: Ubuntu 24.04/26.04 LTS on x86_64 only, tested in WSL2 with CPU inference; GPU performance and other distros are unvalidated.
  • The iPad app is source-only — no App Store, TestFlight, or downloadable build; contributors build and sign it themselves.
  • Meaning-based search is Windows-only; keyword search everywhere else.

Verdict Worth a look if you’re into disaster preparedness, offline-first design, or want a well-engineered example of a network-hostile desktop app. If you were hoping for a general-purpose offline Wikipedia browser, the survival framing and US-state map focus narrow it considerably.

Frequently asked

What is Immortal-Protocols/lastbook?
Lastbook bundles manuals, videos, maps and a local AI into one offline desktop app — built for the day you actually need it.
Is lastbook open source?
Yes — Immortal-Protocols/lastbook is open source, released under the MIT license.
What language is lastbook written in?
Immortal-Protocols/lastbook is primarily written in Python.
How popular is lastbook?
Immortal-Protocols/lastbook has 2.9k stars on GitHub.
Where can I find lastbook?
Immortal-Protocols/lastbook is on GitHub at https://github.com/Immortal-Protocols/lastbook.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.