toge

Sharing

Share a copy of a page with other people. They can read it and, on wifi or Cloudflare, comment too.

Share on the bar publishes a frozen copy of the page for other people. They don’t see your later edits until you publish again.

Who can open itCan they comment?What you need
Same wifiAnyone on your network with the linkYes, liveYour laptop awake
CloudflareAnyone with the link, anywhereYes, livetoge connect cloudflare once (free)
GitHub gistAnyone with the link (unlisted)No, view onlygh auth login

Nobody needs an account to open a link or comment.

The Share panel: a live wifi link with its QR code, Cloudflare and GitHub gist
The Share panel, with a live wifi link.

Publishing

Before anything goes out, Publish… shows you what will:

Publish then sends exactly that copy everywhere the page is shared, so every link shows the same version. toge never reads hidden files (like .env or .git) or anything outside the page’s folder.

People you share with give a name with their first comment. They can comment, reply, and edit or delete their own unsent comments. They see your sent threads and the agent’s replies, never your drafts. Their comments only reach the agent if you press Send all, and the agent is told they’re from a collaborator.

Cloudflare

This puts the page on a small Worker in your own Cloudflare account, so people anywhere can open and comment on it, even when your laptop is off. It fits in Cloudflare’s free plan.

toge connect cloudflare   # wrangler asks you to log in the first time

You need Node.js for this (it runs npx wrangler). toge never sees your Cloudflare login; it keeps only a secret it shares with the Worker. Run the command again after updating toge, and your links keep working. toge doctor tells you when the Worker needs an update.

If something goes wrong with the Worker, the Share panel tells you what to do: publish again if the Worker lost a page, or run toge connect cloudflare again if it no longer knows toge.

Disconnecting. toge disconnect cloudflare makes toge forget the Worker. If any links still work there, toge lists them first, because it can’t turn them off afterwards. Add --turn-off to turn them off, or --keep to leave them working until they expire. The Worker stays in your Cloudflare account until you delete it (npx wrangler delete --name toge).

Limits

To keep a shared page from being flooded, each one has three limits, shared by everyone on it:

SettingDefaultWhat it limits
commentsPerMinute120Comments on the page per minute
commentsPerPage2000Comments the page can hold
tabsPerPage1000Tabs getting live updates at once (Cloudflare only)

The defaults suit Cloudflare’s free plan. On a paid plan you can raise them in ~/.toge/settings.json:

{ "limits": { "commentsPerMinute": 300, "tabsPerPage": 5000 } }

Wifi links pick up a change straight away. Cloudflare gets it the next time toge talks to the Worker: when toge starts, or when anyone comments. When too many tabs have a page open, a new tab says the page is busy and tries again when you come back to it.

Gists

Gists use your own gh login. Publishing again updates the same gist (GitHub keeps the old versions), and Delete takes it down.

Gist links open in gistpreview.github.io, which only shows about the first 1 MB of a page (toge warns you before publishing). For bigger pages, host toge’s own viewer on GitHub Pages:

toge viewer export ~/code/me.github.io/viewer   # then push it
toge viewer set https://me.github.io/viewer/

The viewer runs the page in a sandbox, so it can’t touch the rest of your site.