Krey
Multi-tenant creator-commerce platform — creators launch a branded storefront on their own domain and sell digital products, courses, and memberships with built-in checkout and payouts.
The problem
Creators who sell online stitch together five tools — link-in-bio, digital downloads, courses, checkout, email list — and still don't own their storefront or domain. Krey set out to be a single multi-tenant platform where a creator signs up, gets a branded storefront on their own domain, and sells digital products, courses, and memberships through built-in checkout, while the platform handles payments, secure delivery, subscriptions, and moderation.
What I built
A TypeScript monorepo (Turborepo + pnpm): a Next.js 16 front end (storefront, dashboard, admin, checkout), a Hono REST API as the system of record, a background worker, a Prisma/PostgreSQL database package, a Redis queue, and a shared Zod validation/types package. Every API module follows strict routes → controller → service → repository layering with a typed error hierarchy.
Engineering highlights
Multi-tenant storefronts on custom domains
Each creator's storefront is reachable at a platform subdomain or their own apex domain, provisioned through Cloudflare for SaaS with automatic DNS verification and SSL — no manual certificate work.
Secure paid-content delivery with signed URLs
Uploads live in S3/R2 behind a public/private key layout; every download is a short-lived signed URL re-signed on each authorized read. Auto-generated course certificates are served the same way.
A real billing/subscription engine
Tiered plans (Free/Starter/Pro/Business), monthly/yearly cycles, per-plan feature gating, proration on plan changes, invoice history, and the Stripe Customer Portal — kept truthful with idempotent webhook handling.
Security-first auth
Email/password + Google OAuth, email-verification gating, and 2FA. Access token in memory, refresh token in an HttpOnly cookie — never in localStorage, so tokens aren't exposed to XSS.
Admin console built for scale
The dashboard loads its metrics from a single endpoint that fans out ~15 parallel queries behind one date-range toggle, plus full moderation with an audit trail.
Results
- ✓A shipped MVP covering the full creator journey: onboard → build storefront → publish on a custom domain → sell → get paid → manage from a dashboard.
- ✓A strictly-typed monorepo whose layered design absorbed a full API framework migration (Express → Hono) without changing module contracts.
- ✓Production-ready deploy path (PM2 + Nginx + Postgres/Redis on a VPS).
Full tech stack
Built at Nextbit — the source lives in a private repository, so it isn't publicly available. A live screen-share demo and code walkthrough are available on request for hiring managers.