Pages that remember
HTML page templates: guestbook, poll, sign-up form, RSVP
Start from a working page: a guestbook, a poll, a sign-up form or a link page on your own domain. Try it, publish your own copy in one click, change the words, share the link. What is Page data?
pages have already saved what their visitors enter
A wall where guests leave their name and a message. Saves each guest's name and message; everyone reads the wall.
Basic HTML page templates
Your links on your own domain, plus a newsletter sign-up saved for you.
More templates
Saves a rating and a comment; everyone sees the average, you read the comments.
Saves each visitor's answers from two steps; you see them all with charts.
Saves each application; you read them all in Data.
Flip two tiles at a time to find six matching pairs. Beat your best move count.
Light all nine tiles together. Each tap flips the tile and its neighbors for everyone on the same page.
Import a CSV, edit expense rows and total your spending in USD. Attach receipts on your copy and export the finished sheet as a CSV.
Your AI writes the deck; each learner's progress is saved for their browser.
Check off daily habits and keep streaks; checks are saved for this browser.
Tick the week's plan and add your own tasks; saved for this browser.
Members mark films seen and rate them 1-10; on your copy everyone sees the group average.
A short post with a figure and a pull quote; readers comment from the round button on the page.
A riddle whose answer only the server knows; each solver gets their place in line.
Guests sign with their name and a wish; the cards fill a shared wall.
How it works
- Try it. Each template is a real working page. Open it, enter something, see it saved.
- Publish my copy. One click gives you your own copy at a private link. It starts empty. Or open Ask your AI on a template, copy the prompt and add what you want in your own words.
- Make it yours. Change the words: ask your AI assistant with your page's link, or update it with the management link.
- Share and read. Share the link. You read what visitors enter in the page's Data tab, or download it as CSV.
What you get after publishing
- A private link. Only people with the link open your copy; it gets its own address.
- A Data tab. Every entry visitors save, newest first. Download it as CSV or remove any entry.
- A management link. Change or delete your page later. Keep it private.
- An owner token from the API. The API answer holds your page link, the management link and an owner token for later updates. An AI assistant hands back the confirmed link, or the page to paste on brewpage.app when it cannot publish. Keep the management link and any token private: anyone with them can change or delete the page and read its data.
- Your profile, if you sign in. Your pages on any device, kept as long as you need, and your own domains connected for free.
Your visitors read: “What you enter is saved on BrewPage and can be read by this page's author.” What they save is tied to their browser: clearing cookies or switching device starts fresh. Page data is kept as long as the page; download it before the page expires.
Guestbook
TemplatePage dataA wall where guests leave their name and a message. Saves each guest's name and message; everyone reads the wall. Each visitor can leave up to 5 messages.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/guestbook/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"guestbook":{"mode":"shared","maxDocsPerVisitor":5}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=guestbook' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a guestbook for our team party”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/guestbook
Read https://brewpage.app/templates/guestbook/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=guestbook using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const wall = document.getElementById("wall");
let book = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
book = s.col("guestbook");
const docs = await book.list({ order: "-createdAt", limit: 20 });
for (const d of docs) {
const li = document.createElement("li");
li.append(bp.text(d.value.name + ": " + d.value.text));
wall.append(li);
}
}
async function sign(name, text) {
if (book) await book.add({ name, text });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"guestbook":{"mode":"shared","maxDocsPerVisitor":5}}}
}Help: save data from your page Page data guide API: page data
Poll
TemplatePage dataOne question, a few choices, live totals for everyone. Saves one vote per visitor; everyone sees the totals, and a visitor can change their vote.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/poll/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"votes":{"mode":"private","choices":{"choice":["pizza","ramen","salad"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=poll' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a poll on where our team goes for lunch”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/poll
Read https://brewpage.app/templates/poll/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=poll using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let votes = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
votes = s.col("votes");
const totals = await votes.stats({ countBy: "choice" });
result.textContent = JSON.stringify(totals.by);
const mine = await votes.get("me"); // this visitor's vote, or null
}
async function vote(choice) {
if (votes) await votes.set("me", { choice });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"votes":{"mode":"private","choices":{"choice":["pizza","ramen","salad"]}}}}
}Help: save data from your page Page data guide API: page data
Simple form
TemplatePage dataAPIA form people fill in; you get a table of every reply. Saves each reply privately; only you read them all, in the Data tab, as CSV or with the API. A visitor can change their reply later in the same browser.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request. Your code reads every reply later with the same owner token.
curl -s https://brewpage.app/templates/lead-form/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"signups":{"mode":"private","choices":{"session":["morning","afternoon"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=lead-form' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a sign-up form for my yoga class”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/lead-form
Read https://brewpage.app/templates/lead-form/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=lead-form using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
let signups = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
signups = s.col("signups");
const mine = await signups.get("me"); // this visitor's reply, or null
}
async function signUp(name, email, session) {
if (signups) await signups.set("me", { name, email, session });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"signups":{"mode":"private","choices":{"session":["morning","afternoon"]}}}}
}Help: save data from your page Page data guide API: page data
Link page on your domain
TemplateCustom domainPage dataYour links on one page, on an address you own. Plus a newsletter sign-up: each address is saved for you, on your domain and on the BrewPage link alike.
Publish it another way
In the browser
Press Publish my copy above or on the template page. Then connect your domain in Manage: add a TXT and a CNAME record at your DNS provider, and BrewPage sets up HTTPS. Custom domains are free with a profile, up to 5.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/link-page/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"subscribers":{"mode":"private"}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=link-page' -H 'Content-Type: application/json' --data-binary @-Then connect your domain with a profile token, or with the page's owner token added to a profile. The answer lists the DNS records to add.
curl -s -X PUT "https://brewpage.app/api/publications/html/$NS/$ID/domain" \
-H "X-Owner-Token: $BREWPAGE_TOKEN" -H 'Content-Type: application/json' \
-d '{"hostname": "links.example.com"}'Ask your AI
Copy this into your AI assistant. Say what you want, for example “a link page for my band”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/link-page
Read https://brewpage.app/templates/link-page/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=link-page using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps. Saving works on your connected domain too.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
let subscribers = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
subscribers = s.col("subscribers");
const mine = await subscribers.get("me"); // this visitor's address, or null
}
async function join(email) {
if (subscribers) await subscribers.set("me", { email });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"subscribers":{"mode":"private"}}}
}Help: save data from your page Page data guide API: page data
Quiz with answers
TemplatePage dataFive questions; each visitor gets their answers back. Saves each visitor's answers; you read them all in Data. Coming back in the same browser restores the answers.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/quiz/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"answers":{"mode":"private"}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=quiz' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a quiz about our city”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/quiz
Read https://brewpage.app/templates/quiz/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=quiz using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
let answers = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
answers = s.col("answers");
const mine = await answers.get("me"); // this visitor's answers, or null
}
async function send(reply) {
// reply: { name, q1, q2, q3, q4, q5, score }
if (answers) await answers.set("me", reply);
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"answers":{"mode":"private"}}}
}Help: save data from your page Page data guide API: page data
Clicker game with save
TemplatePage dataTap, dig, level up; each player's progress is kept. Saves each player's level and coins for their next visit; you see every save.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/coin-cave/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"saves":{"mode":"private"}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=coin-cave' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a clicker game about baking cookies”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/coin-cave
Read https://brewpage.app/templates/coin-cave/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=coin-cave using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
let saves = null;
let game = { level: 1, coins: 0 };
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
saves = s.col("saves");
game = (await saves.get("slot1")) || game;
}
async function save() {
if (saves) await saves.set("slot1", game);
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"saves":{"mode":"private"}}}
}Help: save data from your page Page data guide API: page data
Bring list
TemplatePage dataGuests pick what they bring or add their own; names show beside each item. Saves who brings what; everyone sees the list. Each visitor can add up to 5 entries and remove their own; you can remove any entry.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/bring-list/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"items":{"mode":"shared","maxDocsPerVisitor":5,"choices":{"item":["Salad","Bread","Drinks","Fruit","Dessert","Plates and cups"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=bring-list' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a bring list for our office picnic”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/bring-list
Read https://brewpage.app/templates/bring-list/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=bring-list using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const list = document.getElementById("list");
let items = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
items = s.col("items");
const docs = await items.list({ order: "createdAt", limit: 100 });
for (const d of docs) {
const li = document.createElement("li");
li.append(bp.text(d.value.item + ": " + d.value.name));
list.append(li);
}
}
async function bring(item, name) {
if (items) await items.add({ item, name });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"items":{"mode":"shared","maxDocsPerVisitor":5,"choices":{"item":["Salad","Bread","Drinks","Fruit","Dessert","Plates and cups"]}}}}
}Help: save data from your page Page data guide API: page data
Event RSVP
TemplatePage dataGuests answer yes, maybe or no and say who comes with them. Saves each reply; everyone sees the totals, you see the guest list. A guest can change their reply.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/rsvp/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"rsvps":{"mode":"private","choices":{"coming":["yes","maybe","no"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=rsvp' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “an RSVP page for my birthday dinner on Saturday”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/rsvp
Read https://brewpage.app/templates/rsvp/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=rsvp using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let rsvps = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
rsvps = s.col("rsvps");
const totals = await rsvps.stats({ countBy: "coming" });
result.textContent = JSON.stringify(totals.by);
const mine = await rsvps.get("me"); // this guest's reply, or null
}
async function reply(name, coming, guests) {
if (rsvps) await rsvps.set("me", { name, coming, guests });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"rsvps":{"mode":"private","choices":{"coming":["yes","maybe","no"]}}}}
}Help: save data from your page Page data guide API: page data
Feedback with ratings
TemplatePage dataVisitors rate from 1 to 5 stars and leave a comment. Saves a rating and a comment; everyone sees the average, you read the comments. A visitor can change their rating.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/feedback/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"feedback":{"mode":"private","choices":{"rating":["1","2","3","4","5"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=feedback' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a feedback page for my cooking class”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/feedback
Read https://brewpage.app/templates/feedback/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=feedback using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let feedback = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
feedback = s.col("feedback");
const totals = await feedback.stats({ countBy: "rating" });
result.textContent = JSON.stringify(totals.by);
const mine = await feedback.get("me"); // this visitor's rating, or null
}
async function rate(rating, text) {
if (feedback) await feedback.set("me", { rating: String(rating), text });
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"feedback":{"mode":"private","choices":{"rating":["1","2","3","4","5"]}}}}
}Help: save data from your page Page data guide API: page data
Advanced form
TemplatePage dataA two-step form about a favourite local shop: picture choices, a map of a made-up town, a slider, stars and a 1 to 10 score. Saves each visitor's answers privately; you see every answer with charts. A visitor can change or delete their answers.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/advanced-form/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"answers":{"mode":"private","choices":{"type":["bakery","grocer","coffee","books","flowers","hardware"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=advanced-form' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a two-step survey for my book club”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/advanced-form
Read https://brewpage.app/templates/advanced-form/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=advanced-form using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let answers = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
answers = s.col("answers");
const totals = await answers.stats({ countBy: "type" });
result.textContent = totals.count + " answers so far";
const mine = await answers.get("me"); // this visitor's answers, or null
}
async function send(entry) {
if (answers) await answers.set("me", entry); // the same key again updates it
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"answers":{"mode":"private","choices":{"type":["bakery","grocer","coffee","books","flowers","hardware"]}}}}
}Help: save data from your page Page data guide API: page data
Job application form
TemplatePage dataFile uploadsA two-step job application: contact details, the role, years of experience, a résumé as a PDF or a link, a short note and a start date. Saves each application privately; you read them all on the page and in the Data tab. An applicant can change what they sent.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/job-application/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"applications":{"mode":"private","files":true}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=job-application' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “an application form for our summer interns”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/job-application
Read https://brewpage.app/templates/job-application/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=job-application using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let apps = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
apps = s.col("applications");
const mine = await apps.get("me"); // this applicant's application, or null
if (mine) result.textContent = "Your application was sent";
}
async function send(entry, pdf) {
if (!apps) return;
if (pdf && apps.upload) entry.resume = await apps.upload(pdf); // keeps its id and url
await apps.set("me", entry); // the same key again updates it
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"applications":{"mode":"private","files":true}}}
}Help: save data from your page Page data guide API: page data
Product backlog
TemplatePage dataA shared backlog of task cards your team drags into order or moves to the top in one click; each card opens to its description, assignee, importance, complexity and related tasks. Everyone who opens the page sees the same order and who moved what, live. Visitors change only the order; you write the cards.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/product-backlog/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"maxDocBytes":1024,"collections":{"moves":{"mode":"shared","maxDocsPerVisitor":1,"choices":{"tick":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=product-backlog' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “the tasks of our next release”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/product-backlog
Read https://brewpage.app/templates/product-backlog/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=product-backlog using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
const result = document.getElementById("result");
let moves = null;
async function start() {
const s = await bp.state();
if (!s) return; // saving is off here; the page keeps working
moves = s.col("moves");
const [newest] = await moves.list({ order: "-updatedAt", limit: 1 });
if (newest) result.textContent = "Top task: " + newest.value.order[0]; // the newest order is the board
}
async function move(order, task, from, to) {
const tick = String(Math.floor(Math.random() * 32)); // a new tick tells the other pages to read again
if (moves) await moves.set("me", { order, t: task, from, to, tick }); // the same key again updates it
}
start();3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"maxDocBytes":1024,"collections":{"moves":{"mode":"shared","maxDocsPerVisitor":1,"choices":{"tick":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]}}}}
}Help: save data from your page Page data guide API: page data
Pocket Pairs
TemplatePage dataFlip two tiles at a time to find six matching pairs. Beat your best move count.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/pocket-pairs/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"saves":{"mode":"private","maxDocsPerVisitor":1}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=pocket-pairs' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a matching game about garden tools”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/pocket-pairs
Read https://brewpage.app/templates/pocket-pairs/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=pocket-pairs using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readRound() {
const state = await bp.state();
return state ? state.col("saves").get("slot1") : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"saves":{"mode":"private","maxDocsPerVisitor":1}}}
}Help: save data from your page Page data guide API: page data
Signal Grid
TemplatePage dataLight all nine tiles together. Each tap flips the tile and its neighbors for everyone on the same page.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/signal-grid/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"moves":{"mode":"private","maxDocsPerVisitor":10,"choices":{"marker":["tile-1","tile-2","tile-3","tile-4","tile-5","tile-6","tile-7","tile-8","tile-9","again"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=signal-grid' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a cooperative puzzle for our game night”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/signal-grid
Read https://brewpage.app/templates/signal-grid/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=signal-grid using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readTeamTotals() {
const state = await bp.state();
return state ? state.col("moves").stats({ countBy: "marker" }) : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"moves":{"mode":"private","maxDocsPerVisitor":10,"choices":{"marker":["tile-1","tile-2","tile-3","tile-4","tile-5","tile-6","tile-7","tile-8","tile-9","again"]}}}}
}Help: save data from your page Page data guide API: page data
Expense Sheet
TemplatePage dataFile uploadsImport a CSV, edit expense rows and total your spending in USD. Attach receipts on your copy and export the finished sheet as a CSV.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/file-drop/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"submissions":{"mode":"private","files":true,"maxDocsPerVisitor":1}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=file-drop' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “an expense sheet for our next business trip”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/file-drop
Read https://brewpage.app/templates/file-drop/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. Keep the CSV local and each saved sheet and its receipts private.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=file-drop using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readExpenseSheet() {
const state = await bp.state();
return state ? state.col("submissions").get("me") : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"submissions":{"mode":"private","files":true,"maxDocsPerVisitor":1}}}
}Help: save data from your page Page data guide API: page data
Flashcards
TemplatePage dataA deck of vocabulary flashcards: show the answer, then press Knew it or Again. Cards you know come back later, cards you miss come back sooner, and each learner's progress is saved for their browser. Ask your AI for your own words: it edits the deck in the page and keeps every card id.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/flashcard-deck/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"progress":{"mode":"private","maxDocsPerVisitor":1}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=flashcard-deck' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “French verbs for my exam”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/flashcard-deck
Read https://brewpage.app/templates/flashcard-deck/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. Later changes: edit only the deck JSON, keep card ids, update my page in place.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=flashcard-deck using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readProgress() {
const state = await bp.state();
return state ? state.col("progress").get("me") : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"progress":{"mode":"private","maxDocsPerVisitor":1}}}
}Help: save data from your page Page data guide API: page data
Habit tracker
TemplatePage dataCheck off daily habits on a week or month grid; streaks count days in a row. Each visitor's checks are saved for their browser. Ask your AI to add, rename or remove habits; past checks stay on the page.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/habit-tracker/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"checks":{"mode":"private","maxDocsPerVisitor":1}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=habit-tracker' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “habits for my marathon training”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/habit-tracker
Read https://brewpage.app/templates/habit-tracker/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. Later changes: edit only the habits JSON, keep ids, update my page in place.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=habit-tracker using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readChecks() {
const state = await bp.state();
return state ? state.col("checks").get("me") : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"checks":{"mode":"private","maxDocsPerVisitor":1}}}
}Help: save data from your page Page data guide API: page data
To-do planner
TemplatePage dataA week planner and to-do list: tick the plan, add your own tasks with a day, and switch between Today, Week and All. Each visitor's list is saved for their browser. Changed plan: ask your AI to edit it; ticks stay.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/todo-planner/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"tasks":{"mode":"private","maxDocsPerVisitor":1}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=todo-planner' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a moving-house checklist for next week”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/todo-planner
Read https://brewpage.app/templates/todo-planner/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. Later changes: edit only the plan JSON, keep its ids, update my page in place.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=todo-planner using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readTasks() {
const state = await bp.state();
return state ? state.col("tasks").get("me") : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"tasks":{"mode":"private","maxDocsPerVisitor":1}}}
}Help: save data from your page Page data guide API: page data
Movie club
TemplatePage dataA group film list: everyone marks what they have seen and rates it from 1 to 10. On your copy each film card shows the group rating and who has seen it, updated live. Ask your AI to add films; everyone's marks stay.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/movie-club/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"marks":{"mode":"shared","maxDocsPerVisitor":1,"choices":{"tick":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]}}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=movie-club' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “the films for our Friday movie nights”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/movie-club
Read https://brewpage.app/templates/movie-club/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. Later changes: edit only the films JSON, keep ids, update my page in place.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=movie-club using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function readClub() {
const state = await bp.state();
return state ? state.col("marks").list({ order: "createdAt", limit: 100 }) : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"marks":{"mode":"shared","maxDocsPerVisitor":1,"choices":{"tick":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]}}}}
}Help: save data from your page Page data guide API: page data
Blog post
TemplateCommentsA short blog post with a byline, a figure and a pull quote. Readers comment from the round button on the page; in your profile you choose who can comment and delete any comment. Ask your AI to write your own post.
Publish it another way
In the browser
Press Publish my copy above or on the template page. Comments open once the page is in your profile: on its Manage page set Comments to Everyone or Signed-in people.
API
Read the clean source, then publish it in one request.
curl -s https://brewpage.app/templates/blog-post/source > page.html
jq -n --rawfile content page.html '{content: $content, format: "html"}' \
| curl -s 'https://brewpage.app/api/html?template=blog-post' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a post about our first year as a book club”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/blog-post
Read https://brewpage.app/templates/blog-post/source and apply my changes. Keep the footer line about comments. Publish a plain page.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=blog-post using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Comments open once it is in my profile: I turn them on in Manage, or PUT https://brewpage.app/api/publications/html/{ns}/{id}/discussion {"comments":"everyone"} with a profile token.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML.
What I want (nothing = publish it as it is):Riddle lock
TemplateBrew LambdaPage dataA riddle with one lock: visitors type an answer and press Unlock. The page's server code (Brew Lambda) checks it, so the answer is never in the page; each solver gets their place and you see every solve. Your copy starts without server code: add lambda.js from a free profile through the API, MCP or the CLI.
Publish it another way
In the browser
Press Publish my copy above or on the template page. Your copy starts without server code, so it says answers can't be checked. Add lambda.js from a free profile through the API, MCP or the CLI; Manage only shows it.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/riddle-lock/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"solves":{"mode":"shared","write":"author"}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=riddle-lock' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “a riddle for our escape-room night”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/riddle-lock
Read https://brewpage.app/templates/riddle-lock/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present. The answer lives only in my server code lambda.js; never put it in the page.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=riddle-lock using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script (the guess endpoint is your page's server code)
async function check(answer) {
const state = await bp.state();
return state ? bp.lambda("guess", { answer }) : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"solves":{"mode":"shared","write":"author"}}}
}Wedding guest book
TemplatePage dataA wedding guest book: guests write their name and a wish, each wish lands on the wall as a card, and the couple reads every one. Each guest can leave up to 5 wishes. Ask your AI to put in your names and the date.
Publish it another way
In the browser
Press Publish my copy above or on the template page.
API
Read the clean source, then publish it with its settings in one request.
curl -s https://brewpage.app/templates/wedding-guestbook/source > page.html
jq -n --rawfile content page.html \
--argjson state '{"collections":{"wishes":{"mode":"shared","maxDocsPerVisitor":5}}}' \
'{content: $content, format: "html", state: $state}' \
| curl -s 'https://brewpage.app/api/html?template=wedding-guestbook' -H 'Content-Type: application/json' --data-binary @-Ask your AI
Copy this into your AI assistant. Say what you want, for example “our names, Ana and Tomás, and our date, 12 June 2027”.
Make me a page like this BrewPage template and publish it: https://brewpage.app/templates/wedding-guestbook
Read https://brewpage.app/templates/wedding-guestbook/source and apply my changes. Keep state.js, list names, owner view and visitor notice. Send the matching bp-template-state JSON as state when present.
Use a BrewPage tool that supports this template and the intended owner. If none fits, use authorized REST: POST https://brewpage.app/api/html?template=wedding-guestbook using the Templates recipe in https://brewpage.app/llms.txt. Reconcile an uncertain write on the same route.
Give me the confirmed page link. Share any management link privately and save or privately hand off any owner token. If publishing is unavailable, give me the HTML and state JSON.
What I want (nothing = publish it as it is):Your own page (SDK)
Make your own page save the same way: three steps.
1. In your page's HTML
<script src="https://brewpage.app/js/state.js"></script>2. Your page script
async function sign(name, text) {
const state = await bp.state();
return state ? state.col("wishes").add({ name, text }) : null;
}3. Publish body (POST /api/html)
{
"content": "<your page>",
"format": "html",
"state": {"collections":{"wishes":{"mode":"shared","maxDocsPerVisitor":5}}}
}Help: save data from your page Page data guide API: page data