M4RKYU.SYSEdition 2027
Skip to content
LOCEN/Ontario · CA/▸work · purecreateStandbyOK/--:--:--EST
M4M4RK_YUportfolio
  • BuildBuild
    BuildOverview
    • WorkSelected case studies and write-ups
    • GamesPlayable prototypes and game-dev logs
  • GalleryGallery
    GalleryOverview
    • PhotosPhoto collections and visual experiments
    • ShopPrints, posters, and one-off objects
  • WritingWriting
    WritingOverview
    • BlogLong-form devlogs and field notes
    • NotesShort observations, links, snippets
  • ResourcesResources
    ResourcesOverview
    • Tools38 in-browser developer utilities
    • LinksDaily-use dev and design bookmarks
  • AboutAbout
  • ContactContact
中文
← projects
AI tool · 2024Ready

Purecreate

A 3D apparel customizer that designs your shirt in real time and generates decals from a text prompt with DALL·E 3.

Quick facts

Role
Solo developer: original customizer, 3D canvas, AI image route, reactive state, and the Vite/Express-to-Next.js migration.
Timeline
2024 · Next.js migration in 2026
Platforms
Desktop web prototype · WebGL
Source

On this page

  • >What it is
  • >What it looks like
  • >Built with
  • >Highlights
  • >Engineering
  • >Under the hood
  • >Outcome
  • >Roadmap & lessons
Purecreate repository documentation describing the Next.js 15 migration and 3D application stack
Fig. 01 — Purecreate

Why I made this

Half curiosity about putting a real-time 3D scene next to an image model, half an excuse to fold an old two-server monorepo into one app I could deploy without thinking about it.

01

What it is

#

Problem

Designing custom apparel usually means clunky mockup tools or a slow back-and-forth with a designer — there's no fast, visual way to see an idea on the product and iterate.

Solution

A single Next.js app pairing a real-time react-three-fiber 3D garment canvas with DALL·E 3 decal generation: pick colors, type a prompt, and watch the design appear on a rotating shirt. It consolidates an older Vite + Express monorepo into one deployable app, with the OpenAI calls living in Route Handlers instead of a separate server.

02

What it looks like

#
  • Source assetAn original texture from the customizer's public asset library, used to test live material and decal changes on the garment.
03

Built with

#

Frontend

  • Next.js 15
  • React 18.3
  • Tailwind CSS 3.4

3D

  • react-three-fiber
  • three.js
  • Valtio

AI + API

  • OpenAI DALL·E 3
  • Next.js Route Handlers
04

Highlights

#
  • Real-time 3D garment customizer (react-three-fiber)
  • AI decal generation from a text prompt (DALL·E 3)
  • Live color and texture controls
  • Single deployable Next.js app — OpenAI in Route Handlers
05

Engineering

#
  1. Process 01

    Collapse two deployments into one application

    Context
    The original Vite frontend and Express image API required separate hosting, environment wiring, and CORS configuration.
    Approach
    Move the image endpoint into a Next.js Node Route Handler and keep the OpenAI key server-side.
    Outcome
    Deployment and same-origin requests are simpler, but the image route inherits serverless duration and provider-latency limits.
  2. Process 02

    Keep WebGL outside server rendering

    Context
    Three.js and its renderer depend on browser globals and add substantial client work.
    Approach
    Dynamically import the canvas with server rendering disabled while the rest of the application uses the App Router.
    Outcome
    The page shell can render independently, but the current renderer compatibility regression still has to be repaired before the demo is healthy.
06

Under the hood

#

Architecture notes

  • The 3D scene is dynamically imported (ssr: false) so heavy WebGL never blocks first paint.
  • OpenAI calls live in a Node.js Route Handler with a server-only key and a 60-second duration budget.
  • Valtio holds reactive design state shared between the UI and the 3D scene.
  • Moving the API and canvas under one origin removed the old Express server and its CORS boundary.

Challenges

  • three.js touches browser globals, so the canvas must stay outside server rendering.
  • The current public deployment is behind a Vercel security checkpoint, and a clean local install exposes a React renderer compatibility regression; the source is available, but the demo should not be presented as healthy.
07

Outcome

#
“
A source-available 3D and AI product prototype plus a completed architectural migration from a Vite/Express split deployment to a single Next.js application. The present demo still needs compatibility repair.
08

Roadmap & lessons

#

Lessons learned

  1. 01Dynamically importing the 3D scene keeps a heavy WebGL app fast to first paint.
  2. 02Collapsing a frontend + API monorepo into one Next.js app removes a whole deploy surface.

Next steps

  1. 01Repair the current renderer compatibility regression
  2. 02Restore a publicly accessible demo
  3. 03Add saved designs and more garment types

Related work

AI tool

BioLoom

A no-signup AI writing tool that generates, scores, edits, and shares platform-specific bios across eight models.

AI tool

AI Agent Toolkit

A personal Windows-first toolkit for local AI coding: PowerShell automation, Ollama, a Streamlit control center, and conservative repo workers.

PreviousPolitiLensA political news intelligence dashboard for comparing how outlets across the spectrum frame the same story.
Back to all work
NextUnreal Battle Royale PrototypeA single-player Unreal Engine 4 systems prototype covering stance, looting, equipment, inventory, weapons, and scopes.
Back to archive
M4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYUM4RKYU
Crafted since 2024
ZhenXiao Mark YuZhenXiao Mark Yu
get in touch

Saw something here?Tell me about it.

It's a portfolio, not a service · but I read every note — drop a line if anything here resonated, or just to say hi.

Start a conversation
open channel

say hi anytime · 2026

--:--:--ESTOntario, Canada
  • Email
  • GitHub
  • dev.to
  • LinkedIn
  • Twitter / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat

Newsletter

Get the occasional dispatch

Notes and logs from m4rkyu.com — short, dated, no noise. Unsubscribe anytime.

Work

Production builds, games, and visual archives.

  • Projects
  • Games
  • Archive
  • Logs

Resources

Daily-use tools and a personal link library.

  • Search
  • Latest
  • Tools
  • Links
  • Notes
  • Topics
  • Shop
RSSJSON feed

Studio

Background, contact, and channels for collaboration.

  • About
  • Contact
  • Changelog
  • Colophon
  • Resumepending

Socials

Find me on the usual feeds.

  • GitHub
  • dev.to
  • LinkedIn
  • Twitter / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat
  • Email
© 2026 ZhenXiao Mark Yumarkyu0615@gmail.com
  • Email
  • GitHub
  • dev.to
  • LinkedIn
  • Twitter / X
  • Instagram
  • Facebook
  • YouTube
  • CodePen
  • Spotify
  • Snapchat
PrivacyTermsBuilt with Next.js 16 · React 19 · Tailwind 4