sotot

module
v0.0.0-...-04431ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT

README

sotot: Stay On Top Of Things

sotot is a small daemon and read-only dashboard for the things that need your attention, from the next few minutes to months away: PRs to review, email to answer, bills to pay, domains and registrations to renew.

Each integration is a separate program, a source, that publishes things to the daemon over a documented WebSocket protocol, carried by tailcat so sources need no inbound ports. Sources can live anywhere, with their own credentials.

cmd/sotot the daemon: source listeners, state, dashboard (TCP or tsnet)
cmd/sotot-cast shows the dashboard on a Chromecast
cmd/sotot-gandi, cmd/sotot-porkbun sources: domain expiries at those registrars
cmd/sotot-gmail source: Gmail threads with a label
cmd/sotot-demo-live, cmd/sotot-demo-periodic fake sources for testing
source Go client for writing sources
protocol the wire types

Quick start

go generate ./web     # builds the dashboard's Go/Wasm browser client
go run ./cmd/sotot new-identity keys/demo.json
cat > sotot.json <<'EOF'
{"version": 1, "sources": [{"id": "demo", "name": "Demo", "listeners": [{"identity_file": "keys/demo.json"}]}]}
EOF
go run ./cmd/sotot run --config=sotot.json --state-dir=state &
SOTOT_ADDR=$(go run ./cmd/sotot address --config=sotot.json demo) go run ./cmd/sotot-demo-live

Then open http://127.0.0.1:8080/.

Requires Go 1.27.1 or later.

Directories

Path Synopsis
cmd
sotot command
Command sotot is the Stay On Top Of Things daemon: it collects things needing attention from sources and serves a read-only dashboard.
Command sotot is the Stay On Top Of Things daemon: it collects things needing attention from sources and serves a read-only dashboard.
sotot-cast command
Command sotot-cast shows the sotot dashboard on a Chromecast.
Command sotot-cast shows the sotot dashboard on a Chromecast.
sotot-demo-live command
Command sotot-demo-live is a fake sotot source for testing: it stays connected and publishes a changing set of bills to pay, messages and emails to answer, PRs to review, and meetings.
Command sotot-demo-live is a fake sotot source for testing: it stays connected and publishes a changing set of bills to pay, messages and emails to answer, PRs to review, and meetings.
sotot-demo-periodic command
Command sotot-demo-periodic is a fake sotot source for testing the one-shot pattern: like a cron job, it publishes a snapshot of slowly changing obligations (renewals, taxes), waits for sotot's acknowledgement, and exits.
Command sotot-demo-periodic is a fake sotot source for testing the one-shot pattern: like a cron job, it publishes a snapshot of slowly changing obligations (renewals, taxes), waits for sotot's acknowledgement, and exits.
sotot-gandi command
Command sotot-gandi is a sotot source watching the domains in a Gandi account: expiries that need a manual renewal, upcoming automatic renewals, holds, and disagreements with the registry.
Command sotot-gandi is a sotot source watching the domains in a Gandi account: expiries that need a manual renewal, upcoming automatic renewals, holds, and disagreements with the registry.
sotot-gmail command
Command sotot-gmail is a sotot source for email needing attention: by default, Gmail threads in the inbox labeled "todo".
Command sotot-gmail is a sotot source for email needing attention: by default, Gmail threads in the inbox labeled "todo".
sotot-porkbun command
Command sotot-porkbun is a sotot source watching the domains in a Porkbun account: expiries that need a manual renewal, upcoming automatic renewals, non-active domains, and disagreements with the registry.
Command sotot-porkbun is a sotot source watching the domains in a Porkbun account: expiries that need a manual renewal, upcoming automatic renewals, non-active domains, and disagreements with the registry.
internal
cast
Package cast implements the minimum of Google Cast (CASTV2) needed to show images on a Chromecast: mDNS discovery, launching the Default Media Receiver, and loading media URLs into it.
Package cast implements the minimum of Google Cast (CASTV2) needed to show images on a Chromecast: mDNS discovery, launching the Default Media Receiver, and loading media URLs into it.
dashboard
Package dashboard serves sotot's read-only dashboard: a Go-rendered HTML page kept live over a WebSocket, and a JSON stream of the dashboard state for other displays such as sotot-cast.
Package dashboard serves sotot's read-only dashboard: a Go-rendered HTML page kept live over a WebSocket, and a JSON stream of the dashboard state for other displays such as sotot-cast.
domainwatch
Package domainwatch is the shared core of the sotot sources that watch the domains in a registrar account (cmd/sotot-gandi, cmd/sotot-porkbun): listing the account's domains, checking each one's expiry with its registry by RDAP or whois, deciding what needs attention, and publishing it.
Package domainwatch is the shared core of the sotot sources that watch the domains in a registrar account (cmd/sotot-gandi, cmd/sotot-porkbun): listing the account's domains, checking each one's expiry with its registry by RDAP or whois, deciding what needs attention, and publishing it.
ingest
Package ingest accepts source connections: one tailcat listener per configured source, each serving the source WebSocket protocol for only that source.
Package ingest accepts source connections: one tailcat listener per configured source, each serving the source WebSocket protocol for only that source.
present
Package present turns dashboard state into what's shown on screen: ordered entries with human-readable times, and source status labels.
Package present turns dashboard state into what's shown on screen: ordered entries with human-readable times, and source status labels.
state
Package state holds sotot's in-memory view of each source: its things, whether it has reported, its cache expiry, and its connection status.
Package state holds sotot's in-memory view of each source: its things, whether it has reported, its cache expiry, and its connection status.
Package protocol defines the sotot source protocol, version 1: the JSON messages a source sends to the sotot daemon over a WebSocket, and the daemon's replies.
Package protocol defines the sotot source protocol, version 1: the JSON messages a source sends to the sotot daemon over a WebSocket, and the daemon's replies.
Package source is the Go client for writing sotot sources: programs that watch something and publish the things needing attention to a sotot daemon.
Package source is the Go client for writing sotot sources: programs that watch something and publish the things needing attention to a sotot daemon.
web
Package web holds the dashboard's browser client: a Go/Wasm program that keeps the page live, plus its static files.
Package web holds the dashboard's browser client: a Go/Wasm program that keeps the page live, plus its static files.
client command
Command client is the dashboard's browser client.
Command client is the dashboard's browser client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL