Growth

Ship an embeddable badge other sites link to

A lightweight SVG badge, copy-paste snippet, and a checker that verifies it stays live.

Prompt
Create an embeddable badge that customers or listed products can put on their sites, linking back to us.

1. Serve the badge as a small, cacheable SVG from a route (light and dark variants, optional dynamic number like rank or rating). Keep it accessible with a <title>.
2. Build a page with copy-paste HTML snippets: <a href="our-page"><img src="badge" alt="…" width height></a>. Make the link dofollow only when the listing is verified.
3. Add a verifier: fetch the customer's page server-side (blocking private IPs and following redirects safely), check that it links to our URL, and record when it was verified.
4. Re-check periodically and notify the owner if the badge disappears.
5. Track badge impressions via the image route (no cookies).

Work in small steps. Before changing anything, read the relevant code and tell me your plan in a few bullet points. Don't add new dependencies unless you explain why. When you're done, list every file you changed and how I can verify the result.
Or open in:ChatGPTClaude

Best used in a coding agent with access to your repository: paste it into Claude Code, Cursor, Codex or Copilot chat.