Home /Recipes / Brightside Coffee — Growth Dashboard

Brightside Coffee — Growth Dashboard

A single-screen, auto-refreshing growth dashboard for an online store — live KPI tiles with sparklines, a revenue trend, traffic sources, top products, and a channel leaderboard.

See it live →

See it live.

It'll ask you a few things first.

The prompt personalizes itself — your agent asks these, then builds with your answers.

The prompt.

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 single-screen growth dashboard for my online store — the kind a small team pins to the office TV and glances at all day — as a self-contained static site (one index.html plus a CSS and a JS file, no build step, no framework).

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:

  1. What’s the brand name and what do you sell?
  2. Which 4–6 metrics matter most to your team day to day?
  3. What’s your monthly revenue target?
  4. What’s your brand’s primary accent color?

Then build a complete, polished, responsive dashboard with:

  • A header bar with the brand, a “Live” pill, a ticking clock, and a “last updated” timestamp.
  • A row of KPI tiles — revenue today, revenue MTD vs. target (with a progress bar), orders, average order value, and conversion rate — each with a sparkline and an up/down delta vs. yesterday.
  • A revenue trend chart for the last 30 days: daily bars plus a 7-day moving-average line, with date labels.
  • A “Traffic by source” donut (organic / paid / email / social / direct) with a legend showing sessions and share.
  • A “Top products” table — five products with units sold and a revenue bar.
  • A “Marketing channels” leaderboard with spend and ROAS, color-coded by performance.
  • An “Email list” panel: total subscribers, new-today counter, and a daily-signups sparkline.
  • Auto-refresh every several seconds: the numbers tick to new values with a subtle animation and the “last updated” stamp resets.

Design & content notes:

  • “Wall TV” mood: dark, calm background; one warm accent color; a serif for big numbers and headings, a clean sans for labels; tabular figures so digits don’t jiggle. Make it dense but legible from across the room.
  • Build the charts with inline SVG (or a tiny CDN charting lib) — no heavy framework.
  • Use realistic content based on my answers — never “lorem ipsum”. Invent believable product names, channel names, and a month of revenue history with weekend dips and a couple of campaign spikes.
  • Use real images for the product thumbnails. Pull free photos that fit, e.g. https://picsum.photos/seed/<product>/80/80 (vary the seed per product), with descriptive alt text.
  • Drive everything from a small data model at the top of the JS file, with clearly named functions, so it’s easy to swap in a real analytics/commerce API later.
  • Keep it accessible: semantic HTML, a skip link, labelled regions, good contrast, and respect prefers-reduced-motion (no animation when it’s set).

Add this exact line right before </body> so the site carries its badge:

<script src="https://spacefast.com/badge.js" data-example="dashboard"></script>

When the site is ready, publish it to Spacefast with the direct API — no account, install, or extra instructions needed:

  1. Use ./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.
  2. First publish: send every file as multipart form data. This Bash/Zsh block preserves relative paths and works for one file or a whole folder:
    Terminal window
    PUBLISH_ROOT=./site
    publish_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"
  3. From the { "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.
  4. Save 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:
    Terminal window
    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"
    If an update after claiming returns 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

← Back to all recipes