Skip to content

Releases

peer v0.5.6

Choose a tag to compare

@caoer caoer released this 17 Nov 10:03

peer v0.5.6 — GPL-3.0. peer status reads the state from the running serve, and peer wait waits on serve's push.

  • peer serve answers serve.sock in the peer directory (mode 0600, page state only) with the state page's records as its live socket holds them, still sealed. peer status reads them from there and sends no request. With no serve on the directory it reads the whole page in one values list (GET /d/<slug>?values=1) instead of one request per record. Its output is unchanged.
  • New: peer wait [--dir D] [--json] [<name>] blocks until the peer's row changes — a message in or out (last message, unread), a state change — or, with no name, until any peer's row or room line changes, then prints what changed. It holds on serve's push: no request and no timer. With no serve on the directory, or when serve stops, it exits 1 at once. Use it to wait instead of running peer status in a loop.

No relay or wire change, no config change, no change to state-page records.

peer v0.5.5

Choose a tag to compare

@caoer caoer released this 13 Nov 05:45

peer v0.5.5 — GPL-3.0. peer serve takes state and channel changes as pushes, and a reconnect fetches only what it missed.

  • serve holds a live socket on its state page: roster, keys and channel records reach it as pushes, and a round reads nothing from the page while that socket is synced. Without live support on the page, serve reads the page as before.
  • A channel push socket can resume: the upgrade carries ?after=<cursor>, and a relay that supports it answers with the header x-peer-resume: 1, then the rows past the cursor (one page), then {"synced": <seq>, "more": <bool>}. The client pulls only when more is true. Against a relay without resume, it pulls on every connect, as before.
  • Relay: a push socket that stays silent for more than 100 s gives up its place, so a reconnect after a dropped socket is no longer refused with 429 too_many_sockets.

No new flags, no config change, no change to state-page records.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.5 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.5 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.5.3

Choose a tag to compare

@caoer caoer released this 11 Nov 04:12

peer v0.5.3 — GPL-3.0. peer serve stops re-pulling what its push sockets already delivered.

  • A serve round no longer pulls a channel or room whose push socket is open, whose last pull read to the relay's end, and whose cursor is at or past every frame the socket carried. A held card, a seat not yet on the root, a failed step, or a closed or refused socket keeps the round pulling as before. Each open and reconnect still pulls, as the wire contract requires.
  • With every socket up, a round makes no relay pulls, so --every is only the backstop for a socket that is down. No wire or relay change: works against any relay with push, and against one without it as before.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.3 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.3 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.5.2

Choose a tag to compare

@caoer caoer released this 08 Nov 20:38

peer v0.5.2 — GPL-3.0. A message's copies name its sender by party name.

  • config.json top-level name: how a record this party sent names its sender. A received record's sender is named by the roster. With no name, the sender reads as before: by party id in Telegram, by its side on the reader page.
  • The Telegram copy (v0.5.1): POST /forward carries an optional from beside peer and record; the worker heads the line with it and falls back to the record's address when a host sends none.
  • The reader feed and page (new here): a feed frame and a replayed record carry from_name, resolved from the same source. The reader page heads each message with the name and its agent, and the counterpart's full party id moves into 详情.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.2 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.2 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.5.1

Choose a tag to compare

@caoer caoer released this 08 Nov 19:51

peer v0.5.1 — GPL-3.0. The Telegram copy of a message names its sender.

  • config.json top-level name: how the forward's copy of a record this party sent names its sender. A received record's sender is named by the roster. With no name, the copy names the party by its id, as before.
  • POST /forward carries an optional from beside peer and record; the worker heads the Telegram line with it and falls back to the record's address when a host sends none.

The reader feed's host side (peer feed …, readers-pending, e2e publish folding reader keys) shipped in v0.5.0 and is unchanged here.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.1 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.1 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.5.0

Choose a tag to compare

@caoer caoer released this 08 Nov 17:37

peer v0.5.0 — GPL-3.0. Message encryption on top of the channel and a live reader feed.

  • peer e2e keygen | publish | revoke | decrypt and peer send --encrypt: a message sealed to the keys a party's card lists under details.readers, opened only by whoever holds a secret key — never a serving host. A reader page generates its own key in the browser and peer e2e publish, run where root.json is, folds it into the card.
  • peer feed setup | link | revoke | show: the party's reader feed on the worker config.json feed.url names (https://peer.0xtau.com), set up and linked on any machine of the party, no root act — the config is signed by the identity key under the root-signed card, and the source secret and the reader list live in the shared feed state record. peer feed link prints a reader link once; the page at https://peer.0xtau.com/ decrypts with crypto.subtle alone.
  • config.json forward: every record, in both directions, POSTed to the worker, which carries it to the party's Telegram topic.
  • The worker (worker/) now lives in this repository: the relay, the reader feed Object, the forward route, the reader page.
  • details.e2e on the card is details.readers; peer status lists the keys under READERS.

Install: go install github.com/caoer/peer/cmd/peer@v0.5.0 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.5.0 scripts/release-build.sh in a checkout of the tag (go1.27.3) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.4.0

Choose a tag to compare

@caoer caoer released this 19 Oct 00:56

peer v0.4.0 — GPL-3.0. Adds peer room inspect <room>: it prints the relay's view of a room as one JSON object — the room's state, your seat, the members (to an admin) and every record the relay serves, with its size, expiry and sealed header. It opens nothing and changes nothing on the host or the relay.

Install: go install github.com/caoer/peer/cmd/peer@v0.4.0 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.4.0 scripts/release-build.sh in a checkout of the tag (go1.26.5) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.3.0

Choose a tag to compare

@caoer caoer released this 18 Oct 12:00

peer v0.3.0 — GPL-3.0. Adds peer forget: a party forgets a peer, and the name is free again. serve pings a silent HTTP/2 connection to the relay and drops it, so it redials.

Install: go install github.com/caoer/peer/cmd/peer@v0.3.0 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.3.0 scripts/release-build.sh in a checkout of the tag (go1.26.5) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.2.0

Choose a tag to compare

@caoer caoer released this 15 Oct 18:26

peer v0.2.0 — GPL-3.0. Adds rooms and feeds (peer room …).

Install: go install github.com/caoer/peer/cmd/peer@v0.2.0 (Go 1.26 or later), or a binary below; check it against SHA256SUMS. Both report their version with peer version.

The binaries are reproducible: VERSION=v0.2.0 scripts/release-build.sh in a checkout of the tag (go1.26.5) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md

peer v0.1.0

Choose a tag to compare

@caoer caoer released this 15 Oct 02:38

peer v0.1.0 — GPL-3.0.

Install: go install github.com/caoer/peer/cmd/peer@v0.1.0 (Go 1.26 or later), or a binary below; check it against SHA256SUMS.

The binaries are reproducible: VERSION=v0.1.0 scripts/release-build.sh in a checkout of the tag (go1.26.5) builds the same bytes.

Protocol: https://page.sui.pics/a/peer-protocol-2ff24d5d4d58ff5b/doc.md