Skip to content

Preview 0.1.0. AdornTry is a 0.x preview: not yet production quality, and the API may change before 1.0.

AdornTry

Browser AR try-on SDK · for developers, agencies and teams

Your camera never leaves the device.

AdornTry puts 3D glasses on a shopper's face in the browser. Face tracking and rendering run on their phone or laptop, so camera frames and face data are never sent anywhere. Open source, Apache-2.0.

Get started

Opens your camera only after you agree. Nothing is recorded.

§ 01 · How it works

Three steps from npm install to glasses on a face.

  1. Install

    Add the engine and three.js, its peer dependency. Pin the exact version while AdornTry is in preview.

    terminal
    npm install visifit three
  2. Host the engine's files

    Copy the WASM, the face model and the tracking worker into a folder your own site serves. No third-party CDN.

    terminal
    node node_modules/visifit/scripts/copy-assets.mjs public/visifit
  3. Load a GLB, call loadItem

    Give the engine a canvas and a playing camera video. It draws the glasses on the face, sized to that face.

    try-on.ts
    import { createTryOn } from "visifit";
    
    // Your page owns the camera. Ask only after the shopper agreed.
    const tryOn = await createTryOn({ canvas, video, category: "glasses", assetRoot: "/visifit/" });
    await tryOn.loadItem({ id: "round-black", url: "/frames/round-black.glb" });
    
    // Later: release everything. The engine never stops your camera.
    tryOn.dispose();

The README covers the full API: switchItem, snapshot, onFrame, preloading, errors and the CSP it needs.

Read it on GitHub

§ 02 · Categories

Glasses today. More of the body, one tracker at a time.

  • Glasses

    Free · now
    • Frames
    • Sunglasses

    In the free core, Apache-2.0. Tracks the face and sizes frames to it.

  • Face+

    Coming
    • Earrings
    • Headwear

    An add-on that reuses face tracking.

  • Hand

    Coming
    • Watch
    • Bracelet
    • Ring

    An add-on with hand tracking.

  • Body

    Coming
    • Necklace

    An add-on with body pose tracking.

§ 03 · Why AdornTry

A try-on you can explain to your privacy reviewer.

Runs on the device
Face tracking (MediaPipe Face Landmarker) and rendering (three.js) run in the shopper's browser, in a Web Worker where the page allows it.
Privacy first
No camera frame, snapshot or face data is sent anywhere. The free core sends no telemetry and makes no requests beyond its own files and the GLBs you give it.
No third-party CDN
The WASM, the face model and the worker ship in the package and load from your own origin, at a path you choose.
Open source, Apache-2.0
Read the code, fork it, ship it. No vendor licence key for the core, and every dependency is Apache-2.0, MIT or BSD.
A free GLB validator
visifit-validate checks a model against the asset spec (named parts, size, triangles, frame width) and gives a fix hint for each problem.npx visifit-validate frame.glb

§ 04 · For agencies & teams

Build it once. Ship it to every client.

One account, every client

Coming

An Organization with members and roles owns as many sites and domains as you run, so an agency keeps every client store under one login.

Organization → Sites

Keys per domain

Coming

A licence key covers the production domains you list. Development hosts need no key, and your CI refreshes keys with the licence CLI.

adorntry-license pull

Add-ons when a client needs them

Coming

Glasses are free. Earrings, watches, rings and necklaces come as paid add-ons on the same engine, per add-on and per domain tier.

engine.use(plugin)

Run an online store and want it without code? AdornTry for stores is the ready-made try-on, built on this same engine.