Skip to main content

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
  1. Replace the part placeholders with mapped BuildCores IDs.
  2. Set your BuildCores API key as BUILDCORES_API_KEY and your key ID as BUILDCORES_API_KEY_ID in the server process environment.
  3. 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/open and /api/editor/renew endpoints.
  • 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.