The short version
Four commands, from inside the cloned repo
cli/dumps install-dumpsd, then cli/dumps publish ./page.html, then cli/dumps serve-local, then open http://localhost:8090.
Local mode is the default (DUMPS_HOST=local), so there is no config file to write.
Before you start
Local mode runs on macOS and Linux. It needs:
bash,jq,rsyncandpython3.- Go, at the version in
server/go.mod(currentlygo 1.26), to builddumpsd. - Optional, for thumbnails: Chrome or Chromium, plus
sips(built into macOS) or ImageMagick (Linux).
Without a browser or a resizer, publishing still works. The home just shows a placeholder card with the first letter of the title.
Step by step
-
Clone the repository
git clone https://github.com/grippado/dumps.gitcd dumpsYou are at the repo root, where
cli/dumpslives. Every command below runs from here. -
Build and install dumpsd
This runs the Go tests, builds
dumpsdfor the current machine and installs it into the local root,~/.local/share/dumps/bin. There is no need to runmake build.cli/dumps install-dumpsdThe command ends by printing the installed
dumpsdversion, and~/.local/share/dumps/bin/dumpsdexists. -
Write a page to publish
Any single
.htmlfile works, or a folder with anindex.html. If you do not have one at hand, make a tiny one:printf '<!doctype html><title>Hello</title><h1>Hello, dumps</h1>\n' > page.htmlA
page.htmlfile sits in the current folder. -
Publish it
cli/dumps publish ./page.htmlThe last line is the dump's URL, with a short random id:
http://localhost:8090/<id>/To pick the title and a readable, stable URL, pass flags. Publishing the same id again updates that dump.
cli/dumps publish ./my-folder --title "My folder" --id my-folder -
Serve and open it
This re-renders the home and the listing, then serves both on loopback. Leave it running; stop it with Ctrl-C.
cli/dumps serve-localIt prints this line (the CLI messages are in Portuguese for now):
dumps local em http://localhost:8090/ e admin em http://localhost:8091/_dumps/ (origens separadas). Ctrl-C para sair.Then open:
- http://localhost:8090 for the home, and
http://localhost:8090/<id>/for your dump. - http://localhost:8091/_dumps/ for the admin listing: archive, rename, delete.
WarningOpen the admin with
localhost, not127.0.0.1. The API compares theOriginheader as exact text, so onhttp://127.0.0.1:8091every admin action fails with 403. - http://localhost:8090 for the home, and
Optional: let your agent publish
The dump-this skill turns a request into a finished page and publishes it hidden for your review. This links the skill and the /dump-this command into Claude Code and Codex (use claude or codex instead of all for just one):
cli/dumps install-agent allThe agent calls the bare dumps command, so put the CLI on your PATH. The CLI suggests a symlink like this one:
ln -s "$PWD/cli/dumps" ~/.local/bin/dumpsdumps config works from any folder, and /dump-this <what you want> is available in your harness.
Command reference
All commands run as cli/dumps <command> (or dumps <command> once it is on your PATH).
| Command | What it does |
|---|---|
install-dumpsd | Runs the Go tests, builds dumpsd for this machine and installs it into the root. |
publish <file|folder> | Publishes a .html file or a folder with index.html and prints its URL. |
serve-local | Serves the home and dumps on 127.0.0.1:8090 and the admin on 127.0.0.1:8091. Local mode only. |
list | Lists every dump: id, last update, title (marked when archived) and URL. |
archive <id> | Takes a dump off the public home without taking it offline. |
unarchive <id> | Puts an archived dump back on the home. |
edit <id> --title <text> | Renames a dump on the home and in the listing. The bar inside the HTML changes on the next publish. |
rm <id> | Deletes a dump. |
regen | Rebuilds the home and the listing from the manifests. |
config | Shows the effective configuration. |
install-agent [claude|codex|all] | Symlinks the dump-this skill and the /dump-this command. Default all. |
rm does not ask for confirmation. If you only want a dump off the home, use archive.
Flags for publish
| Flag | Default | Meaning |
|---|---|---|
--title <text> | the page's <title>, else the file name | Title shown on the home, the listing and the bar. |
--id <id> | random, 10 chars | Readable, stable URL. Lowercase letters, digits and hyphens, starting with a letter or digit. Republishing the same id updates it. |
--hidden | off | Publishes already archived: the link works, but the dump stays off the home. |
--author "Name|URL" | DUMPS_AUTHORS | Author shown in the footer. Repeat the flag for more than one. |
--source agent | cli | Marks the dump as made by an agent. Accepts cli or agent. |
--no-bar | off | Publishes without the top bar. |
--no-footer | off | Publishes without the footer. |
Local defaults
| Setting | Default | Variable |
|---|---|---|
| Root | ~/.local/share/dumps (or $XDG_DATA_HOME/dumps) | DUMPS_ROOT |
| Dumps origin | http://localhost:8090 | DUMPS_URL |
| Dumps listener | 127.0.0.1:8090 | DUMPS_LISTEN |
| Admin listener | 127.0.0.1:8091 | DUMPS_ADMIN_LISTEN |
| Admin origin | http://localhost:8091, from the admin port | DUMPS_ADMIN_ORIGIN |
| Admin page | http://localhost:8091/_dumps/ | DUMPS_LIST_URL |
Exit codes
| Code | Meaning |
|---|---|
0 | OK |
1 | Usage or validation error |
2 | Blocked path (DUMPS_BLOCKED_PATHS) |
3 | Server unreachable |
4 | Remote failure |
Troubleshooting
CLI errors start with erro: and warnings with aviso:. The messages are quoted as printed.
- Admin actions fail with 403
You opened the admin at
127.0.0.1. Use http://localhost:8091/_dumps/: theOriginmust matchhttp://localhost:8091exactly. A customDUMPS_ADMIN_ORIGINbreaks the check the same way when it differs from the address you open.go não encontrado nesta máquinaGo is not on your
PATH. Install the version inserver/go.modand runinstall-dumpsdagain.dumpsd ausente em …; rode: dumps install-dumpsdserve-localfound no binary in the root. Runcli/dumps install-dumpsdfirst, with the sameDUMPS_ROOT.pasta sem index.htmlorarquivo precisa ser .htmlpublishtakes a single.htmlfile or a folder that has anindex.htmlat its top level.id inválido: use minúsculas, números e hífenThe
--idmust be lowercase letters, digits and hyphens, start with a letter or digit, and be at most 63 characters.aviso: miniatura não gerada, a home usa um placeholderNo Chrome or Chromium, or no resizer. Install one of each (
sipsships with macOS; on Linux, ImageMagick), or pointDUMPS_CHROMEat your browser. The dump itself is published either way.- The thumbnail is missing styles or images
The thumbnail is rendered from
file://, so absolute paths such as/assets/x.cssdo not load. Use relative paths in the folders you publish.- Links point to the wrong port
DUMPS_URLandDUMPS_LISTENdisagree. To move ports, set the three values together:DUMPS_URL=http://localhost:9000 DUMPS_LISTEN=127.0.0.1:9000 DUMPS_ADMIN_LISTEN=127.0.0.1:9001 cli/dumps serve-localaviso: 'dumps' não está no PATHPrinted by
install-agent. The skill is installed, but the agent cannot publish untildumpsresolves. Add the symlink from the agent step.
Dumps share one origin with each other, so publish only HTML you trust. A dump's JavaScript cannot reach the admin API, which lives on a different origin.