Megapot Network · site factory

Ship a Megapot site. Keep attribution private.

megapot.build is a factory for builders who want Megapot-powered marketing and referral sites — without leaking codes, wallets, or tokens into public markup. Preview a starter, bind earnings on the host, deploy to Cloudflare Pages.

What you get

A factory, not a pasted invite link

The old megapot.build builder baked an invite URL into downloaded HTML. This factory keeps the public surface clean: players see a site; operators bind attribution in Cloudflare env. The template library behind the shells still lives at BuiltByGoat/megapot-templates.

Players

A door to the daily drawing

The marketing shell explains odds, money flow, and how to verify a drawing — then sends people to Megapot through a host-side redirect.

Builders

A starter you can actually ship

TypeScript factory, cribble tokens, and a Cloudflare-shaped marketing path. Clone, preview, deploy. No third design system to invent.

Operators

Earnings stay off the page

Bind destination and wallet names in private env. Public copy never prints a referral code or a payout address.

Starter path

Marketing shell — previewable, Pages-ready

One scroll experience: the problem with opaque lotteries, how Megapot works, published odds, and a responsible-play note. Structure follows the megapot-templates contract (self-contained page, repeated CTA, independence disclaimer) with the invite token retired.

  1. Preview it hereOpen the in-factory preview. Every play button points at /go, not an invite URL.
  2. Copy the startertemplates/marketing is a static Cloudflare Pages project: HTML, cribble CSS, and a Pages Function.
  3. Bind privately, then deploySet the env names on your Pages project. The function 302s. The HTML never learns the destination.
/templates/marketing
Independent guide

A daily drawing you can actually read.

Odds, money flow, and receipts — then a play button that does not expose how the operator is credited.

Play today → /go

Private binding

Env names, never values

Set these on Cloudflare Pages (or in .env.local for Next). Documented as names only. Do not put secrets in NEXT_PUBLIC_*.

NameWhere it livesRole
MEGAPOT_PLAY_DESTINATIONPages Function / serverAbsolute URL /go redirects to. Empty → public Megapot origin.
MEGAPOT_REFERRER_ADDRESSServer onlyReserved for a future on-chain app template. Unused by the marketing shell.
MEGAPOT_API_KEYServer onlyData API key if a fork adds server reads. Never ship it in the bundle.
NEXT_PUBLIC_SITE_NAMEPublic labelFactory title. Safe to expose. Not attribution.

Hard rule

Public pages do not carry the money path

No referral codes, wallet addresses, or API tokens in landing copy, footers, README badges, or starter HTML. Attribution is a host concern. If you need the older HTML token set (including an invite placeholder), use it only in a private generator — not in anything this factory publishes.

Developer flywheel

Play. Build. Ship another door.

The factory exists to grow Megapot players and Megapot builders at the same time. Pick the door that matches the visit.