Marques & Co.

Project brief

Project Overview
Custom pet-artwork storefront with passkey sign-in, background image processing, customer proof approval, and print fulfillment.
My Contribution
Designed and built the storefront, passkey authentication, artwork workers, payments, proof approval, and fulfillment integration.

The Problem

Turning a pet photo into a printed product requires artwork generation, payment, customer review, and manufacturing to stay aligned. Image processing takes longer than a normal web request, customers may request revisions, and payment notifications can arrive more than once. The storefront needed to stay responsive while ensuring that only the approved artwork reached production.

100% Solo DevelopmentMarques & Co. custom pet portraits on posters, puzzles, pillows, tote bags, and mugs.
Custom pet portraits applied to the Marques & Co. product lineup, from posters to mugs.

The Engineering

A custom pet-portrait storefront connecting photo uploads and AI artwork generation with product mockups, customer approval, and print fulfillment. Customers choose a style, review proofs, and approve production. The Next.js storefront offers passkey sign-in, while separate Express services handle public requests and queued artwork jobs on Cloud Run.

How It Works

  1. Upload a photo

    The customer chooses a product and style, uploads a pet photo, and checks out.

  2. Generate the portrait

    A background worker creates the portrait and mockup while the storefront stays available.

  3. Review and approve

    The customer reviews the mockup, requests revisions, and approves the proof.

  4. Send to production

    Approval releases production using print artwork stored separately from the preview.

Engineering Decisions

An order moves between processes that finish at different times, from artwork generation to customer review and payment confirmation. The design needed to accommodate revisions and retries while keeping the storefront responsive and production tied to the customer’s approval.

Queued artwork generation

Artwork generation outlasts a normal request, so Cloud Tasks sends authenticated jobs to a private worker. Per-item leases and fencing tokens prevent an older job from overwriting a newer revision.

Approval before production

Payment does not automatically release an order to manufacturing. Printify orders stay on hold until the customer approves a mockup, then production uses high-resolution artwork stored separately from the preview files.

Transactional payment claims

Payment webhooks can arrive repeatedly. Firestore transactions record each event and claim its payment; order creation and claim completion commit together, so retries recognize completed work instead of duplicating orders or fulfillment.

System Architecture

System architecture — Marques & Co.

Storefront & checkout

Storefront

Photo uploads and checkout.

  • Next.js
Public API

Orders, uploads and job dispatch.

  • Express
Payments

Webhooks confirm paid orders.

  • Stripe
Authenticated background jobs

Artwork & production

Task queue

Durable artwork job delivery.

  • Cloud Tasks
Private worker

Express runs proof and print pipelines.

  • Python
  • OpenAI
Approval gate

Customer approval releases Printify production.

Shared storage. Firestore tracks orders; Cloud Storage holds uploads, proofs and print files.

Cloud RunSeparate storefront, public API and private worker services.

The Results

One photo-to-print workflow supports five product types: posters, puzzles, pillows, tote bags, and mugs. Artwork is generated outside storefront requests, and customers approve a proof before production. Payment claims recognize webhook retries, while job ownership checks stop an older artwork task from overwriting a newer revision.