Documentation
¶
Overview ¶
Command edgefetch is a minimal-supply-chain HTTP/2 crawler (one Go dependency, with no transitive dependencies) that runs in three modes from one static binary:
- server mode (default): listens on $EDGEFETCH_BIND_ADDR or :$PORT (GET /healthz, POST /fetch) authenticated via EDGEFETCH_SERVER_TOKEN (unless bound strictly to loopback or EDGEFETCH_ALLOW_UNAUTHENTICATED=1).
- agent mode (--mode=agent, EDGEFETCH_MODE=agent, or /data/options.json on Home Assistant OS): opens zero inbound ports; drops root privileges (65532:65532), dials outbound wss:// to AgentHubDO, and executes pull jobs on demand.
- one-shot CLI mode (edgefetch scrape <url>, edgefetch doctor, edgefetch version): polite terminal scraper and self-diagnostics tool.
Click to show internal directories.
Click to hide internal directories.