Custom product shop
A shop for custom mugs, built as a working Next.js app. Three mugs are drawn live in 3D in thirteen glazes. Pick one of eighteen ready-made designs, or place your own photo, words, and small extras anywhere on the mug, and the page takes the colour of the mug you point at. The cart and orders are saved in the browser.
Muggy is an online shop for custom mugs, shown here as a made-up shop with prices in Thai baht. The home page is thirteen small mugs floating over an animated sky, in three shapes drawn to one scale: the Classic 11 oz, the Big 15 oz, and the Tall latte 12 oz, each with its size under it. Point at one and the sky takes its glaze. The customiser walks through up to six short steps: the mug, the colour, the design, then a photo, words, and extras. A ready-made design keeps its pieces in place, so the buyer only drops in a photo. Make your own offers combos A to D, from one photo to any number of pieces, and every piece is dragged, resized, and turned on the mug itself while the price follows. Festive designs for Mother’s Day, Valentine’s, and Christmas come ready to buy, three of them made for the buyer’s photo. The cart and orders live in the browser, and an order goes to the shop as a typed LINE message. In this preview, ordering stays off until the shop connects its LINE account, and the 17 sample photos are AI-made.
This build is for a shop that sells one thing made to order, like custom mugs, printed tumblers, phone cases, or tote bags, and wants buyers to design it themselves and see it live before they buy. It suits a small brand that takes orders in a chat app today and plans to add a checkout later.
Most custom product shops make the buyer fill in a form, upload a photo blind, and hope. The preview is a flat mock-up, the price arrives at the end, and the design is gone on the next visit.
You get the working shop, from the first screen to the order, as a Next.js app with every mug drawn live in 3D. The live preview on this page is its static copy.
| Section | Purpose |
|---|---|
| The mugs afloat | Small mugs, scattered over the sky |
| The sky | One background that changes colour with the mug |
| Three mugs in 3D | Three shapes, drawn in code |
| Ready-made designs | Pick one, put a photo in, buy |
| Make your own | Combos A to D, every piece free |
| Photos, words, and extras | Everything the mug can carry |
| Cart and order | Saved in the browser, sent by chat |
The look is one clear idea: the site wears your mug. Everything else stays quiet so the colour can be the loud part.
The shop works the same on a phone, a tablet, and a laptop, and nothing scrolls sideways at 390 pixels.
Every screen is there to get one mug into the cart. The colour that follows the mug is the hook, and the short way to buy is always one step away.
A few things to know before you build on this one.
It’s a Next.js 16 app in TypeScript with React 19 and three.js, and the live preview is its static export, about 5 MB with the sample photos. A mug is a design saved as plain JSON, with every piece placed in millimetres on the printable wrap. One painter turns that JSON into the wrap, and the same picture feeds the live 3D mug, the flat view, the cart picture, and a 300 dpi print file, so what the buyer saw is what gets printed. The mugs are built in code from their measurements, with studio light baked once and one renderer shared by every mug on the page. One catalog holds every mug, glaze, combo, design, and price, and every line of copy sits in one file, ready for a Thai version. Without WebGL the sky becomes a still gradient and each mug a flat drawing that still takes every press.
The source has 69 unit tests for the design format, the layouts, pricing, orders, the print file, and saving, and 43 browser tests in Chrome at phone (390 by 844), tablet (820 by 1180), and desktop (1440 by 900) sizes, including a run with WebGL switched off. They walk the buying flow, free drag on the mug, photo drops, colour changes, the cart and the order, and an accessibility check, and any console error fails a test. Safari, Firefox, and a real iPhone are still to be tested, and HEIC photos only open in Safari.
Captured from the live preview: the mugs afloat on the home page, a photo on a mug in the customiser, the ready-made designs, the festive page, and the phone view.





Custom build
You get a fixed quote before any work begins. Landing pages start at $1,490.
You pay the full price once the quote is agreed in writing.
The domain, code, content, and analytics live in accounts under your name.
Have a site already? Get the free audit
This build is for a shop that sells one thing made to order, like custom mugs, printed tumblers, phone cases, or tote bags, and wants buyers to design it themselves and see it live before they buy. It suits a small brand that takes orders in a chat app today and plans to add a checkout later. The “Who this template is for” section above lists the three cases it fits best.
Yes. The whole shop is embedded on this page, and the Preview button opens it in its own tab, with no signup and no time limit. You can design a mug, fill the cart, and open the order page. Ordering itself is switched off in the preview until the shop connects its LINE account, so nothing is sent.
The exact production prompt that built Muggy, with the art direction, the structure, and the engineering notes as they were written. You pay once in the prompt shop, and it stays yours.
Yes, that’s the plan for every template. I rebuild it around your brand, your copy, and your goals before anything ships. Start a project and tell me what you’re building.
Every section listed in the sidebar and in the overview table is built and working in the live preview. There are 7 of them, and the “Page sections” panel beside the article describes each one. Expand any row to read what it does.
No. Everything runs in a modern browser on desktop or mobile. Open the live preview and it works.
I rebuild every template around your brand, your copy, and your goals. Nothing ships as is. Tell me what you sell and I’ll adapt it.
Start a project Open the live template ❱