Examples
Drop-in recipes for popular stacks. Each one mints a session on the server and hands the token to the widget on the browser — never ship your gvk_live_… key to the client.
| Stack | What it shows |
|---|---|
| Express | Minimal REST proxy that mints sessions on demand. |
| Next.js App Router | Server Action that returns a session token to a React Server Component. |
| React (any framework) | useTryOn() hook + headless button. |
| Vue 3 | useTryOn composable for Vue/Nuxt. |
| Vanilla JS | No build step. One <script> tag + a button. |
| Shopify Liquid snippet | Drop-in for custom Shopify themes (non-app install). |
| WooCommerce shortcode | [genvoris_tryon] shortcode for WordPress sites. |
All examples assume:
GENVORIS_API_KEYis set on your server.- You have at least one plan and one verified domain.
- The end-customer is identified by some
externalId(your auth system's user id).