3D PC Builder Sample
A minimal, light-mode demo of parts, RGB lighting, case fans, and scene settings. Setup Builder (Beta) adds desk products and positioning.
The example-sdk-v1 folder includes the viewer controls and Node backend.
It uses plain JavaScript and Node 22+, with no React or package installation.
Run it
From the repository root:
cd example-sdk-v1
cp config.example.json config.json
- Replace the part placeholders with mapped BuildCores IDs.
- Set your BuildCores API key as
BUILDCORES_API_KEYand your key ID asBUILDCORES_API_KEY_IDin the server process environment. - Run
node server.mjs config.json, then open localhost:3090.
Startup registers your storefront origin and hides the built-in controls for your BuildCores account, across all your staging and production embeds.
The default PC sample keeps edits in the browser. config.saved.example.json
also supports saved PCs and Setup Builder (Beta).
See the sample's README.md for configuration.
What is included
- A 3D iframe with storefront controls for parts, fans, RGB, and scene settings.
- A Node backend that registers the viewer, signs tokens, and handles guest sessions.
- Working
/api/editor/openand/api/editor/renewendpoints. - A Run feature demo button and collapsible SDK activity log.
The sample uses shorter endpoint paths than the Browser quickstart; the request and response contracts are the same. Replace the in-memory guest sessions with your shop's session store when integrating it.