Home /Recipes / Help Fund the Maple Street Mural
A one-page community-fundraiser site with an animated goal thermometer, a working donate button and modal, and a live donor wall that grows as people give.
The prompt personalizes itself — your agent asks these, then builds with your answers.
Copy this into any agent (Claude, ChatGPT, Codex, Cursor…). It builds the site and publishes it to Spacefast — no account needed to start.
Build me a one-page fundraising campaign site for a local cause as a vanilla-JS app
(a single index.html plus a small CSS and JS file — no framework, no build step).
Before you build, ask me these questions in one message and wait for my answers. If I skip anything, choose a sensible default and tell me what you chose:
Then build a complete, polished, responsive site with:
localStorage so they survive a refresh.Design & content notes:
https://picsum.photos/seed/community-mural-1/1200/800 (vary the seed) or Pexels, and add
descriptive alt text. Good search terms: community mural painting, volunteers neighborhood project.index.html with a linked CSS and JS file that opens straight in a browser. Make the progress bar and donor math real: derive everything from a small config object (goal, base raised, end date, seed donors) so the numbers stay honest. This is a demo, so no real payment is processed — wire the button to my payment link or leave a clearly-labeled demo state.aria live region on the donor wall, keyboard support, Escape closes the modal, and good contrast). Respect prefers-reduced-motion.Add this exact line right before </body> so the site carries its badge:
<script src="https://spacefast.com/badge.js" data-example="fundraiser"></script>When the site is ready, publish it to Spacefast with the direct API — no account, install, or extra instructions needed:
./site as the publish folder. For no-build projects, put only the finished public files in that dedicated folder. Confirm it has index.html at its root and no secrets, source files, .git, or .spacefast state.PUBLISH_ROOT=./sitepublish_files=()while IFS= read -r -d "" file; do relative=${file#"$PUBLISH_ROOT"/} publish_files+=(-F "files=@$file;filename=$relative")done < <(find "$PUBLISH_ROOT" -type f -print0)curl -sS "${publish_files[@]}" "https://api.spacefast.com/v1/publish?wait=1"{ "data": ... } receipt, give me data.space.liveUrl, data.version.immutableUrl, data.claim.url, and data.claim.expiresAt. Remind me to claim within 6 hours. Keep data.claim.token secret.data.space.id and data.claim.token locally (for example in an ignored, mode-600 .spacefast/state.json). For a quick update, rebuild the publish_files array above and publish to the same space:
SPACEFAST_SPACE_ID=<saved-space-id>SPACEFAST_TOKEN=<saved-claim-token-or-access-token>curl -sS -H "Authorization: Bearer $SPACEFAST_TOKEN" \ -F "spaceId=$SPACEFAST_SPACE_ID" "${publish_files[@]}" \ "https://api.spacefast.com/v1/publish?wait=1"space_claimed_credential_available, exchange the saved claim token once at POST https://api.spacefast.com/v1/anonymous-claim/exchange, save data.credential.accessToken, and retry with that access token.Optional shortcuts and reference only: if the sf CLI is already installed, sf publish ./site --wait does the same job. A zip of the publish folder is also supported, but neither the CLI nor a zip is required. Docs: direct agent/API publishing · files and folders · claiming · updates and rollback