Eyewear Virtual Try-On API for Headless & Custom Storefronts.
Integrate browser-based 3D and live camera virtual try-on into Next.js, React, Vue, Hydrogen, or custom ecommerce storefronts using TrynShop's JavaScript SDK and REST API.
Mount high-fidelity 3D and live webcam virtual try-on with a simple DOM target. Supports event hooks for PD measurement, capture snapshots, and frame color swapping.
Mount to any DOM container in <10 lines of code
TypeScript definitions and React wrapper available
GLB frame meshes are optimized with Draco compression and served through global CDN edges for sub-100ms load times across desktop and mobile devices.
Draco compressed 3D geometry
Sub-100ms asset transfer latency
Automatic fallback for legacy browsers
Local On-Device Landmark Tracking
Our facial AI engine processes landmark alignment client-side via WebAssembly and WebGL, guaranteeing zero biometric privacy risk and maximum frame rate.
Smooth 60 FPS tracking on modern smartphones
100% on-device processing (Zero PII uploaded)
Automatic pupillary distance (PD) extraction
REST APIs for Catalog & Asset Sync
Automate frame ingestion with our REST API. Upload 2D front/temple photos and let TrynShop Studio trigger 3D asset generation asynchronously.
Automated 2D to 3D reconstruction API
SKU and variant mapping endpoints
Secure publishable and secret API key model
Headless Framework Ready
Built specifically for modern Jamstack and headless commerce architectures including Shopify Hydrogen, Next.js Commerce, BigCommerce, and Saleor.
SSR-safe dynamic import architecture
Zero hydration mismatches
Works with custom cart and checkout state managers
Developer Support & SLA
Get direct access to our core graphics and machine learning engineers to assist with custom UI embedding, performance tuning, and 3D modeling pipelines.
Dedicated Slack/Discord technical channel
Custom asset pipeline onboarding
Enterprise uptime SLAs
Implementation
How to Get Started in Minutes
01
Generate API Key
Create your publishable API key in TrynShop Studio dashboard and whitelist your domains.
02
Import SDK
Load the lightweight JavaScript SDK into your React, Next.js, or HTML frontend.
03
Mount Container
Call `TrynShopVTO.mount('#target', { frameSku })` inside your product detail component.
04
Listen to Events
Capture user PD values and try-on photos to pass into your custom checkout workflow.
Yes. TrynShop provides both an embeddable Web Component / vanilla JS SDK and REST APIs for seamless integration into React, Next.js, Remix, Hydrogen, Vue, Nuxt, and custom tech stacks.