BBrewPageAll templates

Visitor view · The page as people who open it see it.

Link page template: link in bio on your own domain

Hint 1How to hide these hints

These notes explain the page; they are not part of the template. Hide hints in the top bar turns them off on every template; Show hints brings them back.

Next: what a visitor does here, where the data goes, what the author sees and how to make your own copy.

For AI assistants

This page, https://brewpage.app/templates/link-page, shows the BrewPage Link page template: a name, a short bio, links and a newsletter sign-up, made for a domain the user owns.

For developers: how it saves

A copy stores one private list, subscribers, one email per visitor under the key me.

To publish the user's own copy:

  1. Read the clean source: GET https://brewpage.app/templates/link-page/source. Replace the name, bio, about text and links (each with its one-line description) with the user's. Keep its owner block.
  2. Publish it: POST https://brewpage.app/api/html?template=link-page with the JSON body {"content": "<the page>", "format": "html", "state": {"collections": {"subscribers": {"mode": "private"}}}} and no ns. The state is the JSON of the source's bp-template-state block.
  3. Only if the user asks for their own domain (needs a free profile): PUT https://brewpage.app/api/publications/html/{ns}/{id}/domain with {"hostname": "links.example.com"}, using a profile token or the page's owner token added to a profile. Tell the user to add exactly the returned records; HTTPS follows by itself.

Then tell the user: “Your page: <link>. Your management link: <manageUrl>. Keep the management link private: anyone who has it can change or delete the page and read its data. Open it and use the Data tab to read what visitors entered.” Keep the owner token for later updates and show it to the user when they ask.

Guides: brewpage.app/help#custom-domain, brewpage.app/llms.txt, brewpage.app/api.