A house at dusk, windows lit, radio signals rising from its antenna into a starry sky
SELF-HOSTED · OFF-GRID · FAMILY

OFFGRID://CHAT

The family chat that lives in your house — not in a cloud. No internet, no accounts, no company in the middle. If the grid goes down, this still works.

OffGrid Chat icon: a glowing green radio-wave speech bubble with a transmission tower
Add it to your home screenShare → “Add to Home Screen” and this page — and the chat itself — open like real apps, with this icon.

01HOW IT FITS TOGETHER

THE HOSTA computer or laptop at home runs one small file. That's the chat's home base — nothing leaves the house.
THE ADDRESS + PINWhen it starts, it shows an address like http://192.168.1.20:8787 and a family PIN. Window open = chat ON.
THE PHONESEveryone on the house WiFi opens the address, types a name and the PIN once, and chats. Phones remember it after that.

02DOWNLOAD — ALL YOU NEED

One folder. Inside it is everything: the chat, the double-click starters, the illustrated guide, the security audit, and the family card. Download it, put it on the host computer, and skip to Tutorial 1.

⬇ THE CHAT FOLDER
DOWNLOAD THE FOLDER (.zip)Everything you need to start the chat — unzip it and double-click the starter Just the app file Family card (picture)
SHA-256 of the folder: 8a97bffa00af785d5c04f32fbf2126a33ff15ac380cbd8f2377686434ea9332d
SHA-256 of the app file: 5d3c4e72cc17837788f02286256e51f1a062e0531ac06c35a50354ff63b38405

Paranoid in the right way? Verify the checksum after downloading — Windows: certutil -hashfile offgrid-chat.py SHA256 · Mac: shasum -a 256 offgrid-chat.py. If the numbers don't match the ones above, don't run the file.

03TUTORIAL 1 — SET UP THE HOST COMPUTER

  1. Download the folder (above) onto the computer that will host the chat, and unzip it. Windows: right-click → Extract All. Mac: double-click the zip.
  2. Double-click the starter for your system — start-windows.bat on Windows, start-mac.command on Mac. No terminal, no commands to type.
  3. First-run prompts are normal. Windows firewall asks? Click Allow — it only listens on your house network. A Mac may offer to install Python — accept, then double-click the starter again.
  4. If it says Python wasn't found (Windows): install it free from python.org/downloads, tick “Add python.exe to PATH” on the first screen, then double-click the starter again.
  5. Leave the window open. It shows the chat address and the family PIN. Write the address on the family card; tell the family the PIN in person.

04TUTORIAL 2 — JOIN FROM A PHONE + MAKE IT AN APP

  1. Connect the phone to the house WiFi.
  2. Open the browser — Safari on iPhone, Chrome on Android.
  3. Type the chat address exactly as the host window shows it, and tap Go.
  4. Type your name and the family PIN, tap JOIN CHAT. First time only — the phone remembers both.
  5. Type at the bottom, tap SEND. You're in. Rooms live in the # box at the top; the online list is behind the counter in the corner.
  6. Make it one tap: while the chat is open, tap the Share button → Add to Home Screen. It gets the glowing tower icon and opens full-screen like a real app — no browser bars.

05TUTORIAL 3 — MAKE IT YOURS

  1. Set your own PIN: create a file named pin.txt next to offgrid-chat.py with your PIN alone on the first line, then restart the chat. (Or set the OGC_PIN environment variable.) No pin.txt = a fresh random PIN every start.
  2. Daily rhythm: double-click the starter to turn the chat on; close the window to turn it off. Message history clears when it stops — by design.
  3. Address changed? Routers sometimes hand out a new one. The starter window always shows the current address — read it there and update the family card.
  4. Best host habits: plugged in, awake, firewall on. If the host sleeps, the chat naps with it.

06SECURITY — ATTACKED, FIXED, VERIFIED

This chat was red-teamed before it was hardened: real attack probes from raw network clients against a running server, then the same probes again after the fixes. The full report ships in the folder as SECURITY.md. The short version:

AttackBeforeNow
Join without permission / impersonate anyoneWide openFamily PIN required — no PIN, no history, no messages
Guess the PIN forever—5 wrong tries = connection cut + 10-minute ban
Flood the server with giant headersunbounded (781 KB held)Cut off at 16 KB, 10-second deadline
Pin the server with fake giant messagesone thread stuck per fakeClaims over 64 KB refused before reading
Spam-flood everyone's screen300 of 300 deliveredRate-limited: 10 of 300 got through, then disconnect
Inject scripts through messagesalready safeStill safe — text-only rendering + strict page policy
About this website: it's static — no logins, no forms, no cookies, no trackers, no third-party anything; every file is local. It also ships with locked-down security headers (scripts forbidden, framing denied, referrers suppressed). And the chat itself never runs here: this site is the manual and the download shelf. The chat runs on your computer at home — that's what makes it off-grid.

Honest limits, always: the PIN is a shared family secret, not per-person accounts — anyone with it can join under any name. Traffic inside the house isn't end-to-end encrypted (your WiFi's WPA2/WPA3 covers the air). And a web page can't do Bluetooth mesh like the native BitChat app — this chat uses one host computer on your WiFi instead. Details in SECURITY.md.

07TROUBLESHOOTING

The page won't load on a phonePhone and host must be on the same WiFi, the host window must be open, and the address must match it exactly.
“Wrong PIN”The PIN changes at every restart unless you set your own. Read the current one from the host window. Five wrong tries locks that phone out for 10 minutes — that's the lockout working, not a bug.
The name box does nothingYou're looking at the chat page with no host behind it — usually the page opened as a downloaded file, or uploaded to a website. The fix is always the same: open the address the host window prints, in the phone's browser.
It worked yesterday, not todayHost off, asleep, or the router gave it a new address. Start the starter, read the address fresh.
Can people outside the house join?No — and that's the point. It exists only on your home WiFi, behind your family PIN. Keep both the WiFi password and the PIN in the family.