Skip to content

E Commerce

10 posts

Building a Contact Inquiry System on Cloudflare Workers
Design a customer contact form with rate limiting, email notifications, and admin management — running entirely on Cloudflare Workers and D1.
Building a Payment Gateway on Cloudflare Workers for Indie E-Commerce
Design a switchable Stripe + PayPal payment gateway abstraction on Cloudflare Workers with D1, encrypted credentials, and unified checkout sessions.
paymentstripepaypalcloudflareworkerse-commerce
Email Capture and Discount Codes for Indie E-Commerce
Design a homepage marketing system with email subscription popups, welcome discount codes, and server-side validation — without a marketing platform.
Organizing Admin Navigation with Collapsible Groups
How to restructure a flat admin sidebar into collapsible navigation groups with localStorage persistence and route-aware auto-expansion.
Transactional Email on Cloudflare Workers with SMTP and React Email
Build a reliable transactional email system on Cloudflare Workers using worker-mailer, React Email templates, D1-backed retry, and HMAC-signed order links.
cloudflareworkersemailsmtpreact-email
Database Design: The Product Model for an Indie Store
Why a product table for an Amazon-FBA indie store looks nothing like a generic e-commerce schema — and the thinking behind every column.
Database Design: The Order Model and Why Money Is Always Integer Cents
Designing an order table that survives payment gateway switches, fulfillment failures, and the eternal floating-point money bug.
Database Design: The Cart Model and Guest Checkout
Why a shopping cart needs both userId and sessionId, why cart items don't store prices, and how to handle cart expiry without a cron job.
Database Design: The Checkout Session as Single Source of Truth
Why you need a local checkout session table between your business logic and the payment gateway — and why gateway metadata is a trap.
Database Design: The Shipment Model and External Fulfillment Tracking
How to model shipments when fulfillment happens outside your system — tracking Amazon FBA orders, syncing carrier events, and knowing when to send the delivery email.

Type to search…

↑↓ navigate↵ selectEsc close