Stranded in Iran during a government internet shutdown and mass protests, I built a working chat service from scratch—no packages, no docs, no web.