A standalone, stateless markdown viewer and editor. The entire note is base64-encoded in the URL — no database, no server state, no auth. Share a link and the recipient sees rendered markdown.
docker run -p 3099:3000 garretpremo/pad:latest
Then visit http://localhost:3099
encoded=$(base64 -w0 < myfile.md | tr '+/' '-_' | tr -d '=')
echo "http://localhost:3099/${encoded}"
See utility script below
http://localhost:3000/SGVsbG8gV29ybGQ renders "Hello World".
services:
pad:
image: garretpremo/pad:latest
ports:
- "3099:3000"
| Variable | Default | Description |
|---|---|---|
PORT | 3000 | Server port |
#!/bin/bash
set -euo pipefail
HOST="localhost:3099"
file="${1:-}"
if [ -z "$file" ] || [ ! -f "$file" ]; then
echo "Usage: generate-pad.sh <file>" >&2
exit 1
fi
encoded=$(base64 -w0 < "$file" | tr '+/' '-_' | tr -d '=')
xdg-open "https://${HOST}/${encoded}"
Content type
Image
Digest
sha256:9c750e13d…
Size
84.3 MB
Last updated
5 months ago
docker pull garretpremo/pad