rsw://
Getting Started
Create a file, keep it, and connect only when you choose.
Compile the CLI
Use Go 1.26.11 or newer. No C compiler, database, Docker, account, or graphical interface is required.
go mod download
go test ./...
CGO_ENABLED=0 go build -trimpath -o rsw ./cmd/rsw
rsw versionCreate an identity and cartridge
rsw init --name hello --title "Hello World" hello
rsw keygen --out private/identity.json
rsw pack --cover hello/cover.png --key private/identity.json --out hello.rsw.png hello
rsw verify hello.rsw.pngKeep private/identity.json outside every publication and web root. A signature proves key control, not civil identity or content safety.
Import and export
rsw import hello.rsw.png
rsw library list
rsw export --out hello-copy.rsw.png H_PNGReplace H_PNG with the hash printed by import or inspection. Export preserves the original bytes exactly.
Resolve an address
rsw fetch --accept-tofu rsw://example.org/hello
rsw update rsw://example.org/hello
rsw versions rsw://example.org/helloA new domain first returns TOFU_REQUIRED with the proposed key. Review it independently before using --accept-tofu. The server must provide a valid signed index and cartridge over HTTPS.
Start the local browser
rsw browse
rsw browse --no-open --port 0
rsw --offline browse --no-open
rsw open ./hello.rsw.pngOpen the exact loopback URL printed by the command. Import cartridges, read Text and Static pages, follow links explicitly, manage favorites and identities, inspect versions, and export original PNGs. See RSW Browser for real captures and the security model.
Use the web tools without installation
Create a cartridge in RSW Forge, then download the PNG. Inspect its chunks and manifest, run grouped conformance checks, and open it in the Web Reader. Local files are processed in your browser and are not uploaded.
The tools require JavaScript, WebAssembly, and a static HTTP server. The documentary pages and examples do not require the runtime. Browser CORS limits remote fetching; the CLI and local browser provide different network capabilities.
Use the library offline
rsw --offline resolve rsw://example.org/hello
rsw --offline --json library list
rsw links H_PNG
rsw doctorOffline mode prevents DNS and HTTP. Locally available references still work; missing objects return OFFLINE_MISS. Select a portable data directory with --data-dir PATH.