Tempusxr Français
Menu
  1. Docs
  2. Contribute

How it is built

For people who work on the SDK itself. The repository is private; this page is what a new team member reads first.

packages/
  sdk-core            session, frame loop, camera, anchors, trackers registry, overlay, .txr format (no Three.js, no A-Frame)
  sdk-three           Three.js stage, attach(anchor, object), loadScene
  sdk-aframe          A-Frame components: tempusxr, tempusxr-image-target, tempusxr-scene, tempusxr-capture
  sdk-capture         photo and video capture
  sdk-tracker-image   the MindAR fork behind the tracker contract
  sdk-tracker-world   WebXR floor and wall tracking
  scene               scene file schema, validation, migrations
  target-compiler     images to .txr, in a browser
apps/viewer           the web Viewer
tools/                docs and site builders, release scripts
examples/             one folder per example; examples/library.json feeds the Library

The rules that shape the code:

Write a new tracker: implement TrackerAdapter (see packages/sdk-core/src/contracts/tracker.ts: load, start, stop, dispose, anchors, events), extend TrackerBase, and register it with trackers.register('face', factory). Then session.use('face', options) works, in A-Frame, Three.js and scene files.