These examples are intentionally tiny static pages that pull framework runtimes from CDNs so we can sanity check the built package without cloning extra tooling. Steps:
- Run
npm install(first time only) andnpm run buildto refreshdist/. - Serve the repo root with any static server (
npx serve .,python -m http.server). - Visit the example you want under
/examples/*.
| Path | Notes |
|---|---|
/examples/react/ | React 18 + VoxCamera/VoxScene rendered via ReactDOM. |
/examples/vue/ | Vue 3 composition API sample. |
/examples/headless/ | Pure DOM/Pointer wiring using the single-root headless API (renderScene) plus low-level helpers. |
Each folder includes a minimal index.html; testsuite.html adds richer controls to poke at props and state updates.
The CDN import maps keep node_modules/ out of examples/, while relying on the locally built VoxCSS bundle (dist/).
Note: we no longer ship a Svelte example in
/examples/; use the@layoutit/voxcss/sveltepackage in your own SvelteKit/Vite app instead.