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 it | Can they comment? | What you need | |
|---|---|---|---|
| Same wifi | Anyone on your network with the link | Yes, live | Your laptop awake |
| Cloudflare | Anyone with the link, anywhere | Yes, live | toge connect cloudflare once (free) |
| GitHub gist | Anyone with the link (unlisted) | No, view only | gh auth login |
Nobody needs an account to open a link or comment.

Publishing
Before anything goes out, Publish… shows you what will:
- how big the copy is, and which local files (images, styles, scripts) get built into it
- anything viewers won’t be able to see, like links to other local pages
- anything that looks like a key, token or password; you have to tick each one off
- which GitHub account a gist would go to
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.
Wifi links
- Each link is a long random secret. It lasts 7 days by default (or 1 day, 30 days, or forever), and you can change that any time.
- There’s a QR code for phones.
- A link only works on the network it was made on. If you move to a café, share again there.
- Turn off stops a link straight away.
toge shareslists live links, andtoge shares revoke <id>turns one off.
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.
- Links work like wifi links: a long random secret, 7 days by default, and Turn off any time.
- Comments people leave wait on the Worker until toge picks them up, which happens the moment they’re written while toge is running. If toge is off, they wait until it starts.
- Open tabs see new comments and new versions as they happen.
- It’s cheap: an open tab costs almost nothing, and opening a page takes two requests out of the free plan’s 100,000 a day.
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:
| Setting | Default | What it limits |
|---|---|---|
commentsPerMinute | 120 | Comments on the page per minute |
commentsPerPage | 2000 | Comments the page can hold |
tabsPerPage | 1000 | Tabs 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.