Cloudflare-native affiliate storefront builder

Ship mini storefronts that feel built for paid traffic, not just bio links.

This SvelteKit scaffold gives Byzhop a real starting point: marketing routes, dashboard structure, admin structure, public storefront previews, feed export, tracked redirect stubs, and a Drizzle schema aligned to the v1.1 PRD.

10 min Target storefront setup time
5 pages Core public route family scaffolded
7 tables Core D1 domain tables defined in Drizzle
What is already scaffolded

Enough structure to start implementation without rethinking routing, schema, or layout.

Dashboard shell

Ready for page editor, products, billing, and account flows.

Public routes

Username, product list, product detail, feed, and redirect paths are in place.

Drizzle schema

Users, pages, products, subscriptions, transactions, events, and audit logs.

Cloudflare config

Workers, D1, R2, KV, observability, and cron bindings are stubbed.

Storefront model

Public URLs are path-based in MVP: /{username}, /{username}/products, and /{username}/products/{slug}. That keeps launch routing simple and stable.

Billing model

The scaffold anticipates Midtrans Snap checkout, verified webhooks, subscription state transitions, grace period support, and audit logs for manual overrides.

Catalog output

The public feed export route and product detail metadata structure are both included because ad-readiness is a product requirement, not an afterthought.

Recommended next implementation moves

  • Install dependencies and generate Worker bindings types.
  • Wire better-auth into `hooks.server.ts` and protected layouts.
  • Replace placeholder storefront data with D1 queries from Drizzle.
  • Implement R2 upload flow and real dashboard actions.