Requirements
Start with a WebGPU-ready browser.
OBYOM runs in the browser and needs WebGPU access. Use a current Chrome, Edge, Safari, or Firefox release with WebGPU enabled.
Install
Add the package to your application.
npm install obyom-3dInitialize
Mount a viewer on a canvas.
import { OBYOM } from 'obyom-3d';
const obyom = new OBYOM({ canvas: '#viewer', params: {} });
await obyom.start();
await obyom.load('/assets/model.stl');Deploy
Serve the built application over HTTP(S).
Keep the bundle, model files, and static assets available at their referenced paths.
Try the viewer ↗