Clicker game with save: template
For AI assistants
This page, https://brewpage.app/templates/coin-cave, shows the BrewPage Clicker game template (Coin Cave): tap the rock, buy a better pickaxe, dig deeper; each player's depth and coins are kept for their next visit in the same browser. Players see only their own save; the author sees every save. A copy stores one private list, saves, one entry per player under the key slot1.
To publish the user's own copy:
- Read the clean source:
GET https://brewpage.app/templates/coin-cave/source. - Publish it:
POST https://brewpage.app/api/htmlwith the JSON body{"content": "<the source>", "format": "html", "state": {"collections": {"saves": {"mode": "private"}}}}and nons. Thestateis the JSON of the source'sbp-template-stateblock. - The copy has a private link: only people who have it can open it.
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/llms.txt, brewpage.app/help#page-data, brewpage.app/api#page-data.