feat: Customizable STL Product Designer (React + TypeScript + Three.js)#1
Draft
feat: Customizable STL Product Designer (React + TypeScript + Three.js)#1
Conversation
- Scaffold Vite + React + TypeScript project - Install three.js, @react-three/fiber, @react-three/drei, zustand, react-router-dom - Create TypeScript types for Design, TextFieldConfig, TextFieldState - Create design catalog config with nameplate and keychain designs - Create Zustand store for design state management - Create STL viewer component with OrbitControls and 3D text overlay - Create text editor panel with font, size, and scale controls - Create catalog page with search and category filtering - Create design customizer page with split-panel layout - Generate binary STL placeholder files for nameplate and keychain - Create SVG thumbnail images for catalog - Responsive design with mobile support Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: QBlockTech <212770657+QBlockTech@users.noreply.github.com>
…-ignore - Fix verbatimModuleSyntax TypeScript errors by using 'import type' - Add navigate and setCurrentDesign to useEffect dependency array - Remove unnecessary @ts-ignore comment (Text component types are compatible) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: QBlockTech <212770657+QBlockTech@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add design catalog and customizer pages for STL designer
feat: Customizable STL Product Designer (React + TypeScript + Three.js)
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps a full React/TypeScript SPA for browsing and customizing 3D-printable STL products with live text overlays — no backend required.
Architecture
/catalog,/design/:idcustomizeruseDesignStore) holds active design + per-field text state; updates propagate live to the 3D scenesrc/config/designs.tsexports a typedDesign[]array; adding a new product requires only a new entry (STL path, text field positions, defaults)Key Components
STLViewer— React Three Fiber canvas; loads binary STL viaSTLLoader, centers geometry, auto-fits perspective camera to bounding box,OrbitControls(rotate/zoom/pan), drei<Text>meshes for live 3D textTextEditorPanel— field selector, text input, font dropdown (6 families), font-size and scale sliders, per-field and global resetDesignGrid— live search + category filter over the design catalogData Shape
Sample Data
Two placeholder designs (
nameplate,keychain) ship with binary STL boxes and SVG thumbnails. Each has two independently configurable text fields.Extension Points
DesignCustomizerPagemarks where STL generation/backend integration plugs inCatalogPageheaderOriginal prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.