Nuggs & Co
Full-stack e-commerce with Medusa.js, Hyperdrive connection pooling, and edge-delivered storefront.
Backend
Medusa.js on Docker
DB Connection
Hyperdrive pooling
Backup
7-day automated retention
Overview
Nuggs & Co is a full-stack e-commerce store built on a Medusa.js backend running in Docker on a dedicated VM. The storefront is served via Cloudflare Pages for edge-delivered speed, and database queries from the edge use Cloudflare Hyperdrive for connection pooling. The entire stack is self-owned with automated daily backups.
Challenge
The business needed a performant e-commerce store with complete ownership of the stack — no Shopify fees, no vendor lock-in, and full customization capability. The solution also had to deliver fast page loads globally while maintaining a reliable, self-managed database with proper backup infrastructure.
Solution
Medusa.js runs in a Docker container on a dedicated VM with PostgreSQL for data storage. The headless architecture separates the backend API from the storefront, allowing the Astro-based frontend to be deployed to Cloudflare Pages for sub-100ms delivery worldwide.
Cloudflare Hyperdrive connects the edge frontend to the PostgreSQL database with automatic connection pooling, eliminating cold-start latency on database queries. This means edge-speed reads without needing to replicate the database.
Automated daily backups with 7-day retention run on a separate backup server, providing disaster recovery without adding load to the production VM.
Tech Stack
Outcome
- ✓ Complete stack ownership — no monthly platform fees or vendor lock-in
- ✓ Edge-delivered storefront with sub-100ms page loads
- ✓ Database queries via Hyperdrive connection pooling for edge-speed reads
- ✓ Automated backup system with 7-day retention on a separate server
Live Site
nuggsandco.comRelated Services
Ready to own your stack?
We build self-hosted e-commerce platforms with edge delivery, full customization, and zero vendor lock-in.
Start a conversation