# sbot **Simple Archiver Bot** -- a suckless web archiver written in C. sbot creates self-contained archives of web pages and entire websites. Every resource -- CSS, images, fonts, scripts -- is fetched and inlined directly into the HTML as base64 data URIs. The result is a single file (or directory of files) that renders perfectly offline, with no external dependencies, forever. ## Why Web pages disappear. Link rot is real. The average web page has a half-life of about two years. Bookmarks break, articles vanish, references evaporate. sbot solves this by creating archives that are: - **Self-contained.** Everything is inlined. No external requests needed. - **Human-readable.** Output is standard HTML. Open it in any browser. - **Permanent.** No database, no server, no special viewer. Just files. - **Metadata-rich.** GWTAR headers record provenance, date, and source. ## Modes ### Single Page Archive ```sh sbot https://example.com/article ``` Archives a single page in **GWTAR format** (Gwern Web Tar Archive). This is the default mode and the most common use case. The output is one `.gwtar.html` file containing: - A GWTAR metadata header (HTML comment) with title, source URL, domain, author, archive date, and generator version - The full HTML with all CSS stylesheets inlined as `