Loox: Shadow DOM JSON slots, photo-first UGC funnels and PriceRule incentives
Static and sandbox behavioral teardown of Loox Product Reviews & Photos: Shadow DOM <loox-reviews-widget> light-DOM JSON slots, compact metafield footprint, photo-first 5-step UGC funnel with client-side media fingerprinting, PriceRule reward minting, and $299.99/mo Merchant API gating.
- 5-step photo-first ugc-form
- Single-use PriceRule + review_feed
- Shadow DOM zero-XHR slot hydrate
Investigation question
How does Loox hydrate Masonry photo-review grids with zero initial XHR calls via Shadow DOM light-DOM slots, structure its shopper submission funnel to maximize photo uploads, and gate Merchant REST APIs and webhooks behind its top tier?
Observed
Public OpenAPI 3.0.3 surfaces, storefront widget scripts, and controlled sandbox store observation reveal a three-plane architecture built with React, React Router, MobX, TanStack React Query, and Zod. On the storefront, Loox's Theme App Extension renders a Shadow DOM custom element (<loox-reviews-widget>) wrapping an initial <script type="application/json" slot="reviews"> payload populated directly from the product.metafields.loox.review_feed metafield (version 1 JSON containing rating, review body, author, verified_purchase, photos, and merchant reply). When reviews-widget.js upgrades the custom element, it hydrates the Masonry grid from that light-DOM slot with zero initial XHR calls to loox.io while keeping structured JSON visible in initial HTML. Compared to heavier metafield writers, Loox maintains a compact 6-key shop and 4-key product loox.* metafield footprint and actively writes Shopify's standard reviews.rating and reviews.rating_count metafields (overwriting any prior review app's aggregate without merging). On submission, clicking Write a review opens an isolated iframe SPA (ugc-form) that auto-advances immediately on star click, places photo/video upload with a 15% discount banner before written text, omits a separate review title field, and computes imageWidth, imageHeight, dominant RGB imageCommonColor, and hashSum client-side before minting a single-use Shopify REST PriceRule + DiscountCode only when media is attached. Public storefront read APIs (storefront-api.loox.io/v1) contrast sharply with api.loox.io/v1 and X-Loox-Webhook-Hmac-Sha256 webhooks, which are locked behind the $299.99/month Unlimited tier.
Inferred
Three architectural lessons stand out: (1) embedding structured JSON inside a light-DOM <script slot="reviews"> element feeds both Shadow DOM hydration and passive HTML-reading shopping agents without duplicating rendered HTML or firing initial storefront XHRs; (2) moving photo upload ahead of prose and removing optional title fields while issuing PriceRule discounts strictly on media attachment explains high visual-UGC conversion, though uninstalling the app leaves merchant-owned REST PriceRules and metafields behind in Shopify; and (3) gating api.loox.io/v1 and webhooks at $299.99/month blocks small merchants from programmatic moderation or BYOA automation.
Unknown & limitations
Observed across public listings, storefront scripts, and a Beginner ($0 dev-store / $12.99/mo public) sandbox flow without paid Scale/Convert ($39.99–$49.99/mo) or Unlimited ($299.99/mo) billing activation; authenticated api.loox.io/v1 responses, video transcoding pipelines, referral attribution internals, and Customer.io template source code remain outside public and sandbox boundaries.
Architecture
Three isolated runtimes: (1) Embedded Shopify Merchant and Onboarding SPAs (React + React Router + MobX + TanStack React Query + Zod, Vite bundles over App Bridge session exchange); (2) Storefront Theme App Extension (loox-inject embed + 8 blocks) upgrading <loox-reviews-widget> Shadow DOM from light-DOM <script type="application/json" slot="reviews"> metafield output; and (3) sandboxed ugc-form iframe isolating canvas/EXIF inspection and reward minting from the 56.9 KB storefront loader, paired with Customer.io email delivery.
Domain & data models
Entities use compact 9-to-10-character Base62 IDs: Review (id, productId, variant, source, verified_purchase, rating 1..5, review body without mandatory title, author, date, reply { text, date, author }), storedMedia photos[] ({ url, ratio, imageWidth, imageHeight, imageCommonColor, hashSum }), ProductAggregate ({ productId, numReviews, avgRating }), single-use Shopify PriceRule + DiscountCode (-15.0% percentage, usage_limit=1, once_per_customer=true), and 6 shop + 4 product loox.* metafields plus reviews.rating and reviews.rating_count.
Workflows & state machines
The 5-step ugc-form state machine runs: (1) 1..5 star click auto-advances without a Next button -> (2) photo/video upload prompt highlighting 15% reward -> (3) single textarea written body -> (4) reviewer identity fields -> (5) confirmation screen issuing an instant single-use Shopify DiscountCode only when media was uploaded (text-only submissions receive confirmation with no PriceRule created). Default moderation auto-publishes immediately and updates loox.review_feed and reviews.rating within seconds; Customer.io dispatches post-fulfillment requests (14-day default) and photo-reminder follow-ups.
API & protocol surfaces
Split OpenAPI 3.0.3 surfaces: public Storefront API (https://storefront-api.loox.io/v1/reviews cursor-paginated, /v1/aggregates, and /widget/{storeId}/ratings) versus Unlimited-tier ($299.99/mo) Merchant REST API (https://api.loox.io/v1/referrals, /v1/review-requests, /v1/reviews, /v1/reviews/{reviewId}/photos, /v1/reviews/{reviewId}/reply) and X-Loox-Webhook-Hmac-Sha256 webhooks (review.published, referral.created, upsell.purchased). Zero MCP endpoints and zero llms.txt index observed.