# For AI agents (/docs/ai) These docs are meant to be read by agents as much as by people. Three things to know: ## llms.txt and llms-full.txt [#llmstxt-and-llms-fulltxt] * **`/llms.txt`** — an index of every page, with a one-line description and a link to that page's markdown. About 2,000 tokens. Start here to decide what to fetch. * **`/llms-full.txt`** — the entire documentation as one markdown document, roughly 42,000 tokens. Fetch once, answer many questions. ## Per-page markdown [#per-page-markdown] Every page is also served as markdown. Append `.md` to any docs URL, or `/index.md` if you prefer that convention. Both return the same document as `text/markdown`: ``` https:///docs/build/custom-blocks ← HTML, ~250 KB https:///docs/build/custom-blocks.md ← markdown, ~8 KB https:///docs/build/custom-blocks/index.md ← the same markdown ``` **Prefer the markdown.** It is roughly a thirtieth of the tokens and carries no navigation, styling, or scripts. Every HTML page also declares its markdown twin in the head, so you can discover it without guessing: ```html ``` The "Copy Markdown" button on each page copies the same document. ## Crawling [#crawling] All well-behaved crawlers are welcome, including AI crawlers: `robots.txt` allows them explicitly and links the sitemap. Content on this site is public; there is nothing behind auth. ## Ground rules for agents [#ground-rules-for-agents] * The [Reference](/docs/reference) section is generated from platform source at publish time — treat it as authoritative over guide prose when the two disagree. * All `@gauntlet/*` packages version in lockstep; never recommend mixing versions ([The package ecosystem](/docs/concepts/package-ecosystem)). * When a task involves credentials or registry tokens, direct users to [Getting help](/docs/start/getting-help) rather than inventing setup steps. # Appbrew developer docs (/docs) Appbrew apps are config-driven React Native apps: the platform renders screens and blocks from your store's app config, and developers extend them with custom blocks, features, and integrations. These docs cover both developer tracks, from first clone to live release. You have an app repo for your brand. Run it locally, build custom blocks and features, ship releases. You are integrating your product with Appbrew apps. Build a package with blocks, trackers, and settings. ## Find your way [#find-your-way] * **[Start here](/docs/start)** — toolchain, quickstarts, running your app, getting help. * **[Concepts](/docs/concepts)** — how config, screens, blocks, state, and packages fit together. * **[Build](/docs/build)** — tutorials: custom blocks, integrations, trackers, metafields, testing. * **[Ship](/docs/ship)** — app releases and package publishing, upgrades, registry access, troubleshooting. * **[Reference](/docs/reference)** — package APIs, the integration catalog, and schemas, all generated from platform source. * **[Changelog](/docs/changelog)** — what changed in each platform release. Working with an AI agent? Point it at [the machine-readable endpoints](/docs/ai). # Analytics trackers (/docs/build/analytics-trackers) Every meaningful user action in an Appbrew app fires an analytics event to all registered trackers: add to cart, purchase, screen view, search. A tracker is a class you ship in your integration package that receives those events and forwards them to your platform. ## The base class [#the-base-class] Extend `AnalyticsTrackerV2` from `@gauntlet/analytics`. It handles queuing (events fired before your init finishes are replayed after), whitelist filtering, and name mapping. You implement: * `initTracker(config)` — read your settings, initialize your SDK or client, and declare your whitelists and mappers. * `sendEvent(event, payload)` — called for every whitelisted event, after filtering and mapping. * `sendScreenView(screenName)` — called on every screen navigation. * `setUserDetails(user)` — called when a user signs in or their profile updates (`email`, `phone`, `firstName`, `lastName`). ## A compact tracker [#a-compact-tracker] ```ts title="packages/my-integration/src/tracker.ts" import { AnalyticsTrackerV2 } from '@gauntlet/analytics' import { AnalyticsEvent, AnalyticsEventParams, AnalyticsPayload, AppConfig, } from '@gauntlet/types' export class MyTracker extends AnalyticsTrackerV2 { async initTracker(config?: AppConfig) { const settings = config?.integrations?.['my-integration'] if (!settings?.apiKey) return // Initialize your SDK or API client here. this.eventsWhitelist = [ AnalyticsEvent.ADD_TO_CART, AnalyticsEvent.BEGIN_CHECKOUT, AnalyticsEvent.PURCHASE, AnalyticsEvent.VIEW_ITEM, AnalyticsEvent.SEARCH, ] this.paramsWhitelist = Object.values(AnalyticsEventParams) this.eventsMapper = { [AnalyticsEvent.ADD_TO_CART]: 'item_added', [AnalyticsEvent.PURCHASE]: 'order_completed', } this.paramsMapper = { item_id: 'product_id', item_name: 'product_title', } } async sendEvent(event?: AnalyticsEvent, payload?: AnalyticsPayload) { await fetch('https://api.example.com/events', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ event, payload, timestamp: Date.now() }), }) } async sendScreenView(screenName?: string) { // Optional: forward screen views. } async setUserDetails(user?: { email?: string; phone?: string }) { // Optional: identify the user on your platform. } } ``` Both whitelists default to an **empty list, which is deny-all**. A tracker that never sets `eventsWhitelist` receives no events; one that never sets `paramsWhitelist` receives events with an empty payload. There is no error — your dashboard just stays quiet. Use `Object.values(AnalyticsEvent)` / `Object.values(AnalyticsEventParams)` to opt into everything, or list exactly what you need. ## Whitelists and mappers [#whitelists-and-mappers] * **`eventsWhitelist`** — the `AnalyticsEvent` values your tracker receives. Everything else is dropped before `sendEvent`. * **`paramsWhitelist`** — the payload keys forwarded. Keys not listed are stripped. * **`eventsMapper`** — renames Appbrew event names to your platform's (`PURCHASE` → `order_completed`). Unmapped events keep their original name. * **`paramsMapper`** — renames payload keys the same way (`item_id` → `product_id`). The event vocabulary covers the commerce funnel: `VIEW_ITEM`, `VIEW_ITEM_LIST`, `SELECT_ITEM`, `ADD_TO_CART`, `REMOVE_FROM_CART`, `VIEW_CART`, `BEGIN_CHECKOUT`, `PURCHASE` (with `value`, `currency`, `transaction_id`, `items[]`), plus `SEARCH`, `SCREEN_VIEW`, `LOGIN`, `SIGNUP`, wishlist, and coupon events. Events carrying `items[]` describe each line item with `item_id`, `item_name`, `price`, `quantity`, `variant_id`, `sku`, and `handle`. ## Reading your settings [#reading-your-settings] Your tracker's configuration is whatever merchants entered against your [manifest](/docs/build/integrations) settings, delivered in the app config under your `configKey`: ```ts const settings = config?.integrations?.['my-integration'] ``` Treat every field as optional and bail out of initialization quietly if required settings are missing. An app with your package installed but not configured must not crash or spam errors. ## Registering the tracker [#registering-the-tracker] The host app adds your tracker during startup, in `src/app/App.tsx`. On 0.27.0 and later it can do that through the [`app` extension host](/docs/build/extending-app-behavior) from `@gauntlet/brewery`; `AnalyticsProvider` does the same job on every version. ```ts title="src/app/App.tsx" import { app } from '@gauntlet/brewery' import { MyTracker } from 'my-integration' app.trackers.add(new MyTracker()) ``` Returns an undo, so an integration that adds a tracker can take it back out — see [Extending app behavior](/docs/build/extending-app-behavior). ```ts title="src/app/App.tsx" import { AnalyticsProvider } from '@gauntlet/analytics' import { MyTracker } from 'my-integration' AnalyticsProvider.getInstance().addTracker(new MyTracker()) ``` This is the form the app scaffold generates today. It works on every platform version, 0.27 included. ## Verifying events [#verifying-events] There is no simulator for this. Run the real loop: 1. Run the app with your integration configured (see [Testing your work](/docs/build/testing)). 2. Exercise the flows behind your whitelist: view a product, add to cart, search, complete a purchase. 3. Watch your platform's debugger or live-events view and confirm each action arrives once, under the mapped name, with the payload keys you expect. If nothing arrives, check the whitelists first, since an unset whitelist is by far the most common cause, then confirm `initTracker` actually ran (missing settings make it return early). # UI elements catalog (/docs/build/atoms-catalog) Everything on this page imports from `@gauntlet/ui-builder`. When you build a block, reach for these elements before writing raw React Native. They read the platform's style trees, merge theme defaults, and handle the edge cases (CDN image sizing, layout animation, link routing) you would otherwise reimplement. Some of these elements are also re-exported from `@gauntlet/components`. For new blocks, always import from `@gauntlet/ui-builder` and prefer its elements over reaching into `@gauntlet/components` — the components library is for legacy maintenance and a few app-specific organisms. ## Atoms [#atoms] The primitives. Each takes a `style` object shaped like the block config's `style` section, so merchants can restyle them without code. ### Layout and structure [#layout-and-structure] * **`Box`** — a view with an optional background: `{ kind: 'image' | 'gradient' | 'solid' | 'none' }`. Use for any container that needs a background asset; plain containers can stay `View`s. * **`Row` / `Column`** — flex containers, so you stop typing `flexDirection` by hand. * **`Spacer`** — a fixed gap whose dimensions live in config. * **`Header`** — the standard "section title + optional image + see-all link" row. Don't hand-roll a heading with a chevron. * **`BlockSection`** — the root wrapper for a block: pass it the `useBlock` result and it renders the configured header, navigation button, and content padding for you. Most "carousel of cards" blocks should start here. (`Section` is its lower-level primitive when you need to bypass the config plumbing.) ### Content [#content] * **`Text`** — themed text leaf; set `style.kind` to pick a typography token. Use it for every text node instead of React Native's `Text`. * **`Image`** — responsive image that rounds widths to CDN breakpoints and adapts quality to the connection. Requires a `uri` and a width or height; returns null otherwise. * **`Icon`** — renders a registered SVG by `iconId`, with a remote-URL fallback. * **`HtmlRichText`** — renders an HTML string (product descriptions, rich-text metafields stored as HTML) with per-tag styles. * **`ShopifyRichText`** — renders Shopify's rich-text JSON format (what `rich_text` metafields contain). Use `HtmlRichText` for raw HTML instead. * **`Video`** — native MP4/HLS playback, portrait by default; all `react-native-video` props pass through. * **`YoutubeVideo`** — thumbnail-plus-play-button YouTube embed. ### Interaction [#interaction] * **`Button`** — pressable CTA with text, optional start/end icons, loading and disabled states, and theme kinds (`primary` / `secondary` / `tertiary`). * **`Link`** — a pressable that routes a config link (`{ kind, value }`) through the app's navigation. Use it when the pressable is purely navigational; use `Button` when it looks like a CTA. * **`Accordion`** — self-managed expand/collapse panel with animated layout and configurable icons. Always prefer it over a hand-rolled `Pressable` + state. ### Lists [#lists] * **`List`** — virtualized scrolling list (FlatList under the hood). For a static handful of items, a plain `.map()` is lighter. * **`VerticalList`** — multi-column grid with row/column separators and correct handling of a partial last row. Use for 2+ column grids. ## Helper elements [#helper-elements] Higher-level, config-shaped compositions. Each renders a complete section from a `data` prop plus optional layout and style overrides. Use them when your block is "one of the usual sections" rather than a bespoke design. `Cta`, `Faq`, `Media`, `MediaList`, `MediaListAccordion`, `RichTextElement` (Shopify rich text), `RichTextAccordion`, `RichTextList`, `TestimonialsList`, `TextElement`, `LinkButton`, `VideoHelperElement`, `VideoList`, `HtmlRichTextElement`, and `YoutubeVideoComponent`. ## Layout elements [#layout-elements] The units a config-declared layout is assembled from. You will mostly meet them indirectly, since the platform instantiates them from layout config, but they are exported for blocks that render layout regions themselves: `TextLayoutItem`, `ImageLayoutItem`, `RichTextLayoutItem`, `HtmlRichTextLayoutItem`, `AccordionLayoutItem`, `ListLayoutItem`, `LinkLayoutItem`, `LinkButtonLayoutElement`, `VideoLayoutElement`, `SpacerLayoutElement`. ## Layout-driven rendering: `Content` and `getLayoutItem` [#layout-driven-rendering-content-and-getlayoutitem] `Content` is a block that renders whatever layout its config declares — the fully config-driven end of the spectrum, where even the structure is data. Under the hood it calls `getLayoutItem(layout, source, style, options)`, which resolves a layout tree into the layout elements above. Call `getLayoutItem` yourself when your own block needs to render a config-declared region inside otherwise hand-written UI. ## Putting it together [#putting-it-together] A card composed from atoms, with an image, a title, and a CTA inside a padded column: ```tsx title="src/app/blocks/feature-card.tsx" import { Button, Column, Image, Text } from '@gauntlet/ui-builder' {title} ``` ## Use the access token [#use-the-access-token] `customerAccessToken` is a Shopify Storefront API customer access token. Use it for authenticated Storefront calls from your page: order history, saved addresses, customer metafields. You also need a Storefront API public access token for the shop, created in Shopify admin under **Settings → Apps and sales channels → Develop apps**, with the customer scopes you need. That one is shop-level and safe in theme code. The customer access token is not. ```js async function fetchOrders(customerAccessToken) { const response = await fetch( 'https://' + window.Shopify.shop + '/api/2025-04/graphql.json', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Shopify-Storefront-Access-Token': 'YOUR_PUBLIC_STOREFRONT_TOKEN', }, body: JSON.stringify({ query: ` query GetOrders($token: String!) { customer(customerAccessToken: $token) { orders(first: 10, reverse: true) { edges { node { id orderNumber processedAt fulfillmentStatus totalPrice { amount currencyCode } } } } } } `, variables: { token: customerAccessToken }, }), } ) const json = await response.json() return json?.data?.customer?.orders?.edges?.map((e) => e.node) ?? [] } ``` To send identity to a backend of your own, put the token in a header over HTTPS and verify it server-side by calling the Storefront API with it. A customer id or email sent from a browser proves nothing on its own. ```js await fetch('https://your-api.example.com/loyalty/balance', { headers: { 'X-Customer-Access-Token': result.customerAccessToken }, }) ``` It is an API credential. With a valid token in hand, `{{ customer }}` in Liquid is still empty, `customer_logged_in` is still false, and `/account` still redirects to the login page. Use it for personalisation and for your own API calls. If you need Shopify's own account pages to work inside the app, [talk to us](/docs/start/getting-help) about that separately. ### Passing the token in without JavaScript [#passing-the-token-in-without-javascript] A web-view block can template the token straight into the URL it loads. Put `{{customerAccessToken}}` anywhere in the block's configured link and the app substitutes it before navigating: ``` https://example.com/loyalty?token={{customerAccessToken}} ``` Only the first occurrence is substituted. Nothing is substituted when no one is signed in, so the placeholder reaches your server verbatim. Treat that as the signed-out case. Prefer `getUserDetails()` where you can: a token in a URL lands in server logs and `Referer` headers. ## Move the shopper into the app [#move-the-shopper-into-the-app] `gotoLink(link)` hands navigation to the app. It does not wait for the app to confirm, so there is nothing useful to await. ```js // The app's own sign-in screen, wherever this app puts it window.appbrewSDK.gotoLink({ kind: 'screen', value: 'default-signin' }) // A product, by handle window.appbrewSDK.gotoLink({ kind: 'product', value: 'your-product-handle' }) // A collection, by handle window.appbrewSDK.gotoLink({ kind: 'collection', value: 'best-sellers' }) // The cart window.appbrewSDK.gotoLink({ kind: 'cart', value: 'cart' }) ``` `goBackInApp()` closes the page and returns to the previous screen. ```js window.appbrewSDK.goBackInApp() ``` Every `kind` the app accepts is listed in the [Web SDK reference](/docs/reference/web-sdk#link-kinds). ## Add to the cart [#add-to-the-cart] `addToCart` takes a product handle, a variant id, and a quantity. The handle is sent along but the app ignores it: items are added by variant. ```js const result = await window.appbrewSDK.addToCart( 'product-handle', 'gid://shopify/ProductVariant/1234567890', 1 ) // { status: 'success', message: 'Item added to cart' } ``` For several items in one go, `addMultipleItemsToCart` takes an array and adds them in a single cart update: ```js await window.appbrewSDK.addMultipleItemsToCart([ { handle: 'tee', variantId: 'gid://shopify/ProductVariant/111', quantity: 2 }, { handle: 'cap', variantId: 'gid://shopify/ProductVariant/222', quantity: 1 }, ]) ``` Both resolve to `{ status: 'error' }` if the app has not confirmed within five seconds. Neither answer is proof. A rejected or out-of-stock variant produces silence, and therefore a timeout; an error inside the app still comes back as `'success'`. Re-read the cart rather than trusting the result. ## Forward an analytics event [#forward-an-analytics-event] `sendEvent(name, data)` passes an event to every analytics tracker the app has configured. Like `gotoLink`, it does not wait for a reply. ```js window.appbrewSDK.sendEvent('viewed_loyalty_page', { tier: 'gold' }) ``` ## Sign the shopper out [#sign-the-shopper-out] Your site's own sign-out, such as `/account/logout`, ends only the web session. The app stays signed in, so the next `getUserDetails()` reports the customer again and your page signs them straight back in. Call `signout()` as the last step of your sign-out: ```js async function logout() { await fetch('/account/logout', { credentials: 'same-origin' }) if (window.appbrewSDK?.isApp()) { await window.appbrewSDK.signout() // Reached only when the page survived the sign-out. window.appbrewSDK.gotoLink({ kind: 'screen', value: 'home' }) return } window.location.href = '/' } ``` Expect your page to be gone before `signout()` returns. If your page only shows to signed-in customers, the app removes it as soon as it signs out. Apps using GoKwik sign-in also take the shopper to the home screen themselves. In both cases the `await` never settles and the lines after it never run, so finish your own clean-up first. If the page does survive, `signout()` resolves to `{ status: 'success' }` once the app has signed out, or to `{ status: 'error' }` after five seconds without a reply. That timeout usually means an app older than 0.37.0, which drops the call and stays signed in. ## Handle the four outcomes [#handle-the-four-outcomes] The call never throws. There are four cases, and they want different responses. ```js const result = await window.appbrewSDK.getUserDetails() if (!result) { // No bridge at all. The page is not running inside the app. } else if (result.status === 'error') { // Sent, but nothing came back within five seconds. } else if (!result.isLoggedIn) { // Nobody signed in. Show a sign-in call to action. } else { // Signed in. result.customer and result.tags are ready. } ``` `isLoggedIn: false` also comes back when the app briefly could not confirm the session, on a poor network for instance. Show the sign-in prompt, and leave your own stored state alone. ## Security [#security] The customer access token acts on behalf of a real shopper. Handle it the way you would handle a password. Do: * Call `getUserDetails()` only on pages whose scripts you control. * Keep the token in a local JavaScript variable, scoped to the page. * Send it only to Shopify or to your own HTTPS backend. * Cache non-sensitive fields only, such as name or tags, and only in `sessionStorage`. Do not: * Put the token in a URL, query string, or redirect. * Write it to `localStorage`, a cookie, or a hidden form field. * Log it to the console or to an analytics tool. * Pass it to third-party scripts unless that vendor documents support for Shopify customer access tokens. The app delivers responses with `window.postMessage`, which any script on the page can observe. On a theme loading many third-party apps, call `getUserDetails()` where the script surface is under your control, and never rebroadcast the payload yourself. ## Troubleshooting [#troubleshooting] | Symptom | Likely cause | Fix | | -------------------------------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `window.appbrewSDK` is undefined | Script tag missing, or blocked by a content blocker | Confirm the tag is on the page and loads before your code | | `isApp()` is false inside the app | The link opened in the device browser instead of in-app | Check how that link is configured in the app | | `status: 'error'` after five seconds | The app is older than the method you called, or the page is not rendered by a web-view block | See [version gates](/docs/build/webview-contract#version-gates) | | `isLoggedIn: false` while clearly signed in | The session could not be confirmed, or the app signs in through a method this bridge does not read | Retry once; if it persists, [get in touch](/docs/start/getting-help) | | Profile shows stale values after an edit | The app caches the profile and only refetches when its cache is empty | Reloading the page does not help: the cache is in the app, not the page. The app has to refetch | | Storefront API returns `null` for `customer` | Token expired, or your Storefront token lacks customer scopes | Check your Storefront token's scopes first. Calling `getUserDetails()` again will not help: while the app holds a cached profile it re-reads the same token rather than renewing it, so an expired token comes back expired. Send the shopper through sign-in again | A page exercising every method is published at [solutions.appbrew.tech/web-sdk/appbrew-sdk-sample](https://solutions.appbrew.tech/web-sdk/appbrew-sdk-sample). Open it in an app to see live payloads. # The webview contract (/docs/build/webview-contract) A page opened inside an Appbrew app is a normal web page with two differences: the app injects a bridge into it before it runs, and the app intercepts some of its navigation. This page describes both, so you can predict what your page will do in-app without guessing. If you only want to call the app, use [the Web SDK](/docs/build/web-sdk). What follows is the layer underneath it, worth reading when something does not behave the way the SDK docs suggest. ## The bridge [#the-bridge] The app defines one global on your page: ```js window.appbrew = { postMessage: function (data) { /* hands `data` to the app */ }, } ``` That is the entire surface. There is no callback, no promise, no version field, and no way to ask the app what it supports. The Web SDK builds everything else on top of this one method. Its presence is the only reliable signal that your page is running in-app: ```js if (typeof window.appbrew !== 'undefined') { // in-app } ``` Most of the time the app installs the bridge before any of your scripts run. On Android WebViews too old to support document-start scripts, it is installed as the page starts loading instead, which can be after an inline script near the top of your ``. Check for the bridge at the moment you call it rather than once at load, and treat its absence as "not in the app yet" rather than "not in the app". ## The envelope [#the-envelope] Every message you send takes the same shape: ```ts { action: string // what you want the app to do payload: Record | any[] // arguments for that action actionId?: string // your correlation id, echoed back on replies } ``` The app parses it, switches on `action`, and ignores anything it does not recognise. An unknown action produces no error and no reply. ## How replies come back [#how-replies-come-back] Three actions reply. The app answers by broadcasting a `message` event on your page, not by calling you back: ```js window.addEventListener('message', (event) => { if (event.data.action === 'GET_USER_DETAILS_SUCCESS' && event.data.actionId === myId) { // event.data.payload } }) ``` Three consequences follow, and each of them explains a class of bug: * **You must match on `actionId` yourself.** Replies are broadcast, not routed. Two concurrent calls to the same action are told apart only by the id you sent. * **Any script on the page can read the reply.** A `message` listener installed by a third-party script sees the payload too. This matters most for the customer access token. * **Failure is silence.** The app never sends an error. When something goes wrong it simply does not reply, and your only signal is a timeout you implement yourself. The Web SDK waits five seconds and then resolves with `{ status: 'error' }`. ## Actions the app accepts [#actions-the-app-accepts] | `action` | `payload` | Effect | Replies with | | ---------------------- | ------------------------------ | ------------------------------------------------------------------ | ------------------------------------ | | `GET_USER_DETAILS` | `{}` | Resolves the signed-in customer | `GET_USER_DETAILS_SUCCESS` | | `ADD_TO_CART` | `LineItemToAdd[]` | Adds items to the app cart | `ADD_TO_CART_SUCCESS`, but see below | | `GOTO_LINK` | `Link` | Navigates the app | none | | `GO_BACK` | `{}` | Pops the current screen | none | | `SEND_ANALYTICS_EVENT` | `{ event, data }` | Forwards to every configured tracker | none | | `SIGNOUT` | `{}` | Signs the customer out of the app, as its own sign-out button does | `SIGNOUT_SUCCESS` | | `SHOW_TOAST` | `{ kind, message, duration? }` | Shows an in-app toast. `duration` defaults to 1000 ms | none | | `APPLY_COUPON` | `{ code }` | Applies a discount code to the cart, with a toast | none | | `REMOVE_COUPON` | `{ code }` | Removes a discount code from the cart, with a toast | none | The Web SDK wraps the first six. To use the last three, post to the bridge directly: ```js window.appbrew.postMessage({ action: 'SHOW_TOAST', payload: { kind: 'success', message: 'Saved', duration: 2000 }, actionId: 'toast-1', }) ``` `ADD_TO_CART_SUCCESS` is weaker than its name. The app replies once it has finished handling the request, so an error thrown on the app side still comes back as a success. A rejected or out-of-stock variant produces no reply at all. Neither outcome tells you what is in the cart, so read the cart back. ## The user agent [#the-user-agent] The app sets a user agent containing `Appbrew///`, where `` is lowercased with spaces removed and `` is the build number, for example `Appbrew/acmestore/android/412`. Most combinations append that token to the browser's own user agent. One does not: iOS running the Appbrew native webview replaces the user agent entirely, so the usual `Mozilla/5.0 …` tokens are absent. Do not parse the string, do not split on spaces, and do not assume a prefix. Test that the user agent contains `Appbrew/`. The user agent reaches your server on the first request, which makes it the only in-app signal available before any JavaScript runs. ## Navigation the app takes over [#navigation-the-app-takes-over] Some paths never load in your page. The app matches them and pushes a native screen instead: | Path | What happens | | ---------------------- | ------------------------------------------------------ | | `/products/:handle` | Opens the native product screen for that handle | | `/collections/:handle` | Opens the native collection screen for that handle | | `/account/reset` | Replaces the page with the app's password-reset screen | The two webview implementations match differently. One matches the URL's path exactly, so a nested URL such as `/collections/all/products/blue-tee` stays in your page. The other tests the **whole URL** as a substring, so that same URL opens the native product screen — and so does anything carrying the fragment in a query string, such as `/search?return_url=/products/blue-tee`. Keeping `/products/` and `/collections/` out of the path is not enough; keep them out of the query too, or take over the click and call `gotoLink` yourself. So a product link in your page usually opens the native product detail screen, not your PDP. That is usually what you want. When it is not, route around it: link somewhere that does not match these patterns, or take over the click and call `gotoLink` yourself. Links to other hosts open according to how the app is configured, which may be the in-app browser or the device browser. A page opened in the device browser has no bridge. ## Settings that change your page [#settings-that-change-your-page] A web-view block carries a few settings that affect what your page sees. Merchants set them in Studio or through app config, not from the page. | Setting | Effect on your page | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `source.link` | The URL loaded. Supports `{{customerAccessToken}}`, substituted before navigation when someone is signed in | | `source.hideElements` | An array of CSS selectors the app hides from document start, for trimming site chrome. The Appbrew native webview keeps watching the DOM. The other one re-runs on animation frames and stops once the **total** number of matched nodes equals the **number of selectors** you configured — a count comparison, not one match per selector. So two selectors where the first matches two nodes and the second matches none will stop with the second never applied, while a single selector matching two nodes never stops and keeps hiding new ones. Do not rely on either outcome | | `options.fallbackUrlPatterns` | Extra regexes for recovering a web URL from an app-scheme link that failed to open. The app already reads `fallback_url`, `redirect_url`, `target_url`, and `web_url` parameters without any configuration | | `options.debuggable` | Enables Safari and Chrome remote inspection of the page. Read only by the Appbrew native webview, where it defaults to on in debug builds | ## Version gates [#version-gates] The bridge grows by adding actions, and older apps drop actions they do not know. A page calling a newer action against an older app gets a five-second hang and then a timeout, with nothing in the console. * `GET_USER_DETAILS` is available **on 0.26.0 and later**. On 0.25 and earlier the action is dropped. * `SIGNOUT` is available **on 0.37.0 and later**. On 0.36 and earlier the action is dropped and the app stays signed in. * **On 0.26 and earlier**, an iOS page in an app running the Appbrew native webview, inside a block that sets `hideElements`, may find `window.appbrew` missing altogether: applying the selectors tore the bridge down. Fixed on 0.27.0. Apps on the other webview were never affected. If you support older builds and your block hides elements, check for the bridge on every call rather than once at load. There is no capability handshake, so a page cannot ask the app what it supports. Write for the oldest app version you still serve, and treat a timeout as "this app is too old" rather than as an error worth showing the shopper. ## Calling the bridge without the SDK [#calling-the-bridge-without-the-sdk] The Web SDK is a convenience, not a requirement. This is a complete `getUserDetails` in about twenty lines, if you would rather not add the script tag: ```js function getUserDetails(timeoutMs = 5000) { if (!window.appbrew) return Promise.resolve(null) return new Promise((resolve) => { const actionId = String(Date.now()) + Math.random() const onMessage = (event) => { if ( event.data?.action === 'GET_USER_DETAILS_SUCCESS' && event.data.actionId === actionId ) { clearTimeout(timer) window.removeEventListener('message', onMessage) resolve(event.data.payload) } } const timer = setTimeout(() => { window.removeEventListener('message', onMessage) resolve({ status: 'error', message: 'Timed out' }) }, timeoutMs) window.addEventListener('message', onMessage) window.appbrew.postMessage({ action: 'GET_USER_DETAILS', payload: {}, actionId }) }) } ``` Remove the listener on both paths. A listener left behind after a timeout fires on the next reply and resolves nothing. # 0.25.0 (/docs/changelog/0-25-0) `0.25.0` is the oldest platform release these public notes cover. Earlier history is not documented here. It is no longer the right [compatibility floor](/docs/ship/versioning-and-compat) for a **new** package: build against 0.27.0 or later, which is where the extension host lives and where `ICatalogProvider` settled. If your app or package targets a version older than 0.25.0, [contact Appbrew](/docs/start/getting-help) to plan the move — newer releases assume the 0.25 baseline. Changes since this release are documented from [0.26.0](/docs/changelog/0-26-0) onward. # 0.26.0 (/docs/changelog/0-26-0) This release bumps two native SDKs (GoKwik, Attentive). Apps using either integration need a [store release](/docs/ship/app-releases) to pick it up — a config publish is not enough. ## New [#new] * **Unbxd search** — new search integration (`@gauntlet/unbxd-search`) with supporting components and state hooks. * **Judge.me review submission** — an "add review" block with image upload (`@gauntlet/judgeme`). * **Wallet passes** — Apple/Google Wallet pass buttons for loyalty and gift cards (`@gauntlet/ninety-nine-minds`). * **Anniversary rewards** — a rewards modal block in `@gauntlet/nector`. * **Reels v2** — new reels blocks in `@gauntlet/what-a-more`. * **Link hotspot block** — clickable hotspot regions on imagery, registered as a common block. * **Navigation** — custom bottom-bar options in `@gauntlet/brewery`: per-tab configuration and label hiding; two-level navigation gains a collapsible mode. * **Carousels** — video carousel reads metafields; background-blur carousel adds an opt-in `ignoreTopInset` option. * **Orders (v5)** — cancel/return info texts are configurable; optional grouping of removed items behind a global flag. * **Web SDK** — `getUserDetails` added to the in-webview Appbrew Web SDK. * **LoyaltyLion** — frontend updates in `@gauntlet/loyalty-lion`. * **MoEngage** — integration additions in `@gauntlet/moengage`. * **Icon library** — shared icon-library types and bundles in `@gauntlet/types`. ## Fixed [#fixed] * **Orders (v5)**: correct per-shipment quantities and amounts, pending-state track button, partial-shipment remainders, order-detail line prices and tax, delivered-status resolution for draft orders with freebies, blank thumbnails caused by an import cycle, and the cancel-reason selector is now controlled. * **Cart and checkout** (`@gauntlet/shopify`): coupon application and quantity-update fixes; customer-accounts token refresh so store credits survive token expiry. * **Components**: address form accepts alphanumeric postal codes; undefined product ratings no longer crash `ProductRatingsCount`; phone-input country picker fixed on Android; OTP verification fixes for iPad, line-break reset prompts, and sign-in toasts; two-level navigation and cart-goals token fixes. * **State**: upsell discount resolution; `useLink` reads the current route inside its callback, fixing stale navigation. * **UI builder**: rich text handles undefined values in HTML conversion. * **Variant switching** (`@gauntlet/swatch-king`): fixed an app freeze on the product page when switching variant groups. * **Integrations**: Netcore rich-notification fix; Nector API field names corrected; app-update iOS fix. ## Native SDK updates [#native-sdk-updates] * **GoKwik** SDK → 0.1.72. * **Attentive** migrated to `attentive-react-native-sdk` 2.1.0, including push support. ## Breaking [#breaking] No intentional breaking API changes. This is a `0.x` platform, so [validate your integration](/docs/ship/versioning-and-compat) before raising your compatibility floor. # 0.27.0 (/docs/changelog/0-27-0) In-app update ships a **new native module**, and the iOS web view changed. Picking up either needs a [store release](/docs/ship/app-releases) — a config publish is not enough. Everything else in this release is JavaScript and needs only an app build at 0.27.0. ## Breaking [#breaking] Three changes can stop your code compiling on 0.27.0. Read these before you upgrade. * **PLP product-card registration was removed.** `registerPLPProductCardComponent`, `getPLPProductCardComponent`, and the `PLPProductCardProps` type are gone from `@gauntlet/brewery`. Cards are now registered by variant key: `app.components.register('product-card', '', Card)`. A product-grid block selects one with `options.productCardVariant`. Any app that overrode the PLP card must migrate. * **`ICatalogProvider` gained three required methods**: `handleToId`, `idToHandle`, and `resolveRedirect`. A partner package implementing a custom catalog provider will no longer type-check until it adds them. * **`CommonBlockKey` is now `string`** rather than a union of known block ids, so remote bundles can register ids the platform has never heard of. Not a compile break, but code relying on exhaustive narrowing loses it. ## New [#new] **App extension host** — `@gauntlet/brewery` now exports an `app` object that owns registration and behavior: `app.components.register`, `app.modules.register`, `app.trackers.add`, `app.actions.define/extend/run`, and `app.events.on/emit`. Every registration returns an undo. `app.actions.extend` lets an integration gate, reshape, replace, or observe built-in actions like `cart:add` and `checkout:begin` without the app owner editing their code; see [Extending app behavior](/docs/build/extending-app-behavior). The existing `blockRegistry` pattern still works. **`Result` return values** — `@gauntlet/types` adds `Result` with `ok`, `err`, `isOk`, `isErr`, and `toDisplayMessage`. Every `app.actions.run` returns one instead of throwing, so a blocked action comes back with a reason you can show. **`onConfigReady(cb)`** — a one-shot callback in `@gauntlet/state` for "app config has landed", replacing `config.init(...).then(...)`. **PLP grid density** — product listings can offer several column layouts, with a shopper-facing density toggle in the sort-and-filter row. Layouts are authored per block (`options.gridLayouts`, each `{ id, columns, productCardVariant? }`) with per-layout styling, and the shopper's choice carries across listings. Build your own toggle with the new `usePlpGridToggle()` hook from `@gauntlet/state`. Page-size counts authored for a 2-up grid scale automatically so rows-per-page stay constant at other densities. **Forced and flexible in-app update** — a config-driven update gate under `settings.global.appUpdate`: a blocking overlay when the installed version is below `minRequiredVersion`, or (on Android) a background download with install prompts. The iOS version check is scoped to the store's country, which fixes apps published outside the US. Adds the `in-app-update` common block. Requires the new native module, and degrades to the older prompt if the app has not been rebuilt. **Shopify URL redirects on deep links** — opt-in via `enableShopifyUrlRedirects`, with a `shopifyUrlRedirectsTimeoutMs` cap (default 1.5s). When a link's handle no longer exists, the store's redirect is resolved before navigation parses the URL, so a dead product link can land on its replacement collection. Applies to links that open the app, which is the ad-campaign case; links tapped inside a running app keep their path. **Time-windowed carousel slides** — individual slides can carry a `visibility.duration` window and the carousel re-renders itself at each boundary. The underlying `useScheduledItems` / `isWithinSchedule` helpers work for anything with a schedule. **Cart visibility rules by product tag** — visibility conditions gain `filters`, `aggregate` (`count` or `sum`), and `path`, so a rule can express "the cart holds at least four units tagged `gift`". Note that `sum` fails closed if any item's value is non-numeric, and per-unit `price` ignores quantity; sum the line total instead. **Two new integrations** — Smart Wishlist (syncs a signed-in customer's wishlist between web and app) and Unbxd Recommendations (PDP, cart, and generic recommendation blocks). Both are config-only. **Smaller additions** — loyalty reward-summary, VIP-program, and wallet-transaction blocks gained v2 versions with tiering and expiry; cart list v2 exposes divider, card border, and bottom-sheet styles; toasts take `numberOfLines` and a leading icon on add-to-cart; product videos now carry a poster image; search suggestions can surface metafields; wallet passes respect merchant activation flags. ## Fixed [#fixed] * Sign-in on the Shopify checkout web view, and a consistent sign-in success message across components. * An invalid freebie could persist in the cart. * Navigating back to a product listing re-fetched the collection because unmounting cleared its cache. * Deep links carrying a collection handle routed to the wrong parameter. * The orders list blanked while a single order loaded. * The price-range filter flickered when tapped outside. * Web-view intent links that fail to open now fall back to a configured URL. * **iOS**: `window.appbrew` was torn down when `hideElementSelectors` was set, which broke pages that rely on the bridge. * Review-list pagination did not scroll to the top; analytics sent a wrong transaction id; metafields were injected into product payloads where they did not belong. * Cold starts re-downloaded JS chunks because the script cache was not persisted. * The flat product-listing renderer is now used on tabbed screens too. * Per-block profiling was removed from rendering, cutting measurable overhead. ## Upgrading [#upgrading] Bump every `@gauntlet/*` entry to `0.27.0` together with the Appbrew-published `@app-brew/*` packages, which move with the platform, then rebuild. Full workflow: [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.28.0 (/docs/changelog/0-28-0) Quick actions ships a **new native module**, and the native web view changed on both platforms. Picking up either needs a [store release](/docs/ship/app-releases) — a config publish is not enough. Everything else here is JavaScript and needs only an app build at 0.28.0. ## Breaking [#breaking] None. No public export was removed and no interface gained a required method. The one revert in this release — `useBlockStyle` and `useBlockSettings` taking a non-nullable `BlockConfig` again — does not change any call site's type, because `useBlock` throws rather than returning null. ## New [#new] **Home-screen quick actions** — long-press the app icon for up to four shortcuts. Configured per brand at `store.quickActions` with a title, subtitle, icon, and any `Link` as the target; leave it unset and shoppers get Wishlist, Cart and Account, filtered to the screens the app actually has. There is nothing to build: the hook runs inside brewery's shell, so apps get registration and tap routing for free once the `@app-brew/quick-actions` native module is installed. Icons are per-platform — Android takes an image URL, iOS takes an SF Symbol name — and `mailto:` targets open the in-app compose screen rather than the mail client. See [Quick actions](/docs/build/quick-actions). **Remote blocks on the web** — the remote-block system gains a web target, an app scaffold and authoring APIs, so a block bundle can be built once and rendered on web as well as native. Deeplink previews now load host-side bundles through lens, which is what makes a shared preview render the real block rather than a placeholder. **Unified in-app update overlay** — forced and flexible update paths now share one overlay across the six packages that touched them, replacing the split behaviour introduced in 0.27.0. **Add-to-cart from modal links** — modal-link ATC routes through a single sheet host with a double-open guard, and the sheet takes a `bottomInset`. Fixes the case where two sheets could stack on a fast double tap. **Nector loyalty revamp** — a reworked loyalty surface, with per-block configurable empty-screen text and styling. **Smaller additions** — wishlist can show recently added products first; the cart list removes an item when minus is pressed at quantity 1; sort options take a deterministic order via `sortOptionsOrder`; filter buttons gain a separator divider and long-label ellipsizing; Judge.me gains a sort dropdown and a rating-input empty colour; the appbar's scroll-swap accepts style and source overrides; the product hotspot supports multi-slide carousels with a header and dots; orders-v5 can close its cancel window on the earlier of status or duration; GoKwik sends `shopify_order_id` on the purchase payload; Shiprocket EDD gets date reformatting, a delivery icon and checking text; Shopflo adds SSO steps 2–5 for OTP login. ## Fixed [#fixed] * Order cancel now shows a processing state instead of appearing to do nothing. * Cart list v2: consistent price modes, template variables and free-gift classification — and quantity-0 lines are no longer labelled as free gifts. * Coupon codes validate case-insensitively, with an option to force uppercase input. * Recursive schema markers no longer carry a `$ref` key, which was breaking Milo. * The payment web view opens native sign-in only for store login URLs. * Tab buttons are no longer wrapped when the theme has no wrapper style. * Phone input passes country-picker flag props explicitly, for React 19's `defaultProps` removal. * Carousel gains an `autoScrollVideos` option, takes its poster from `item.src`, and fixes promo `isInView`. * Toast height and theming, image-banner touch handling, address-list null safety, profile-greeting name and icon options, and OTP copy on the account screen. * Nector records actions only for social triggers in ways-to-earn. * Searchanise builds variant titles from options. * Yotpo rewards saved birthdays a day early in timezones behind UTC. * **Native web view**: a scroll issue, plus a pass to bring it in line with the legacy web view on both platforms. * Link-hotspot block registration was restored after being dropped with the one8-only path. * MoEngage tracker fixes across state, GoKwik and MoEngage. ## Upgrading [#upgrading] Bump every `@gauntlet/*` entry to `0.28.0` together with the Appbrew-published `@app-brew/*` packages, which move with the platform, then rebuild. Apps that want quick actions also need `@app-brew/quick-actions` added and a `pod install`. Full workflow: [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.29.0 (/docs/changelog/0-29-0) Every change here is JavaScript. No native module was added or altered, so apps pick this up with a build at `0.29.0` — no [store release](/docs/ship/app-releases) is required for the platform itself. ## Breaking [#breaking] None. No public export was removed, and the one interface whose shape moved — the cart provider's error result — only gained fields. ## New [#new] **Instant code store flag** — `StoreFeatureFlags.ENABLE_INSTANT_CODE` gates instant code per store, so a brand can be switched onto host-loaded blocks without a build. Remote blocks are now called instant code throughout the tooling and its docs; this release only renames the prose and the build-tools help text, no API changed. ## Fixed [#fixed] * **Carts no longer dead-end on a stale customer token.** Signing in on the website invalidates the Storefront token the app is holding, and `cartCreate` then fails with "Customer is invalid" — a Storefront token has no refresh flow, so every add-to-cart kept failing until the shopper reinstalled or logged out. The cart now detects that specific `customerAccessToken` user error, re-validates the session (which clears it), and retries the create as a guest. Both `ShopifyCartProvider` and `ShopifyCustomerCartProvider` also surface `cartCreate` user errors as a real error result — code `SHOPIFY_API_ERROR`, with the raw `userErrors` attached — instead of returning an empty success. * **External links open the browser on Android.** `https` links marked external are routed through the `googlechrome://navigate` scheme, with a fall back to the plain URL when Chrome is absent, so an installed app can no longer intercept them and swallow the tap. `tel:`, `mailto:` and `sms:` are deliberately left alone. * **The wishlist toast fires on tap.** Add and remove now show their confirmation immediately rather than waiting on the network round trip, and a failed write replaces it with the error toast. Tapping either still routes to the wishlist screen. * **Subscription modify-form price preview.** The preview now scales the line's real unit price by the ratio between the current and the selected variant, instead of reading a selling-plan price adjustment that often did not match the plan being chosen, and renders through `PriceText` so currency formatting matches the rest of the app. An out-of-stock variant shows a banner and hides the preview rather than quoting a price for something that cannot be bought. ## Upgrading [#upgrading] Move every `@gauntlet/*` entry to `0.29.0` together with the Appbrew-published `@app-brew/*` packages, which version with the platform, then rebuild. No `pod install` or Gradle change is needed for this release. Full workflow: [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.30.0 (/docs/changelog/0-30-0) Every platform change here is JavaScript. No native module was added or altered, so apps pick this up with a build at `0.30.0` — no [store release](/docs/ship/app-releases) is required for the platform itself. The two new integrations are the exception, and only if you adopt one: `@gauntlet/location-capture` peers on `@react-native-community/geolocation` and `react-native-permissions`, so adding it to an app is a native change for that app. ## Breaking [#breaking] Both items below affect any tracker that extends `AnalyticsTrackerV2` from outside the platform. Trackers shipped inside the platform were updated in the same change. **`AnalyticsTrackerV2` is now abstract and requires a `trackerName`.** Any class extending it must declare one: ```ts export class MyTrackerV2 extends AnalyticsTrackerV2 { protected override trackerName = 'MyTrackerV2' // … } ``` It names the tracker in the warning raised when the backlog queue overflows. **The three public backlog queues were removed.** `eventQueue`, `screenViewEventQueue` and `setUserEventQueue` are gone, replaced by a single private queue the base class owns. A subclass that read or drained them no longer compiles, and a build that still reaches for them throws when the backlog drains — a cold start with events queued before the tracker initialised, which a smoke test usually does not reach. There is no replacement field to migrate to. Everything is replayed through `processBacklogEventsFromQueue()`, and because the queue is private a subclass can no longer reorder it. If you overrode that method to sequence the drain, do the work first and then delegate: ```ts override processBacklogEventsFromQueue(): void { this.resolveIdentity() // whatever had to happen before the replay super.processBacklogEventsFromQueue() } ``` Two things that look breaking in the diff are not: * `createEnhancedFetch` now returns `EnhancedFetch` rather than `typeof fetch`. `EnhancedInit` extends `RequestInit` with optional fields only, so the result is still assignable to `typeof fetch` and existing call sites compile unchanged. * `meteredFetch` was deleted from `@gauntlet/shopify`. It was never exported from the package barrel and had no consumers outside its own package. ## New [#new] **`@gauntlet/brewmeter` — the SDK that owns the Sentry surface.** Observability moves out of the apps and into one package. It reports every HTTP call the app makes, with query-string secrets stripped before anything is logged, and labels each request with its queue wait, attempt and transaction name so a slow screen can be traced to the call that caused it. Launch instrumentation was reworked at the same time, and two read-side numbers that had been wrong were corrected. There is an HTTP endpoint view per app and across the fleet. **Two new integrations.** `@gauntlet/location-capture` (geolocation capture with its own permission flow) and `@gauntlet/ola-maps`. Both are published for the first time in this release, alongside brewmeter — see the native-changes note above before adopting location-capture. **Analytics v2 forwards an event log to Appbrew analytics.** Trackers gain a `paramsWhitelist` and a `paramsMapper` so a tracker decides which event parameters it forwards and under what names. Both have defaults on `AnalyticsTrackerV2`, so neither of those two needs a change in an existing tracker. The same change reworked how that class queues events, which does — see [Breaking](#breaking). **Webview URL on the route.** The current webview URL is exposed on the route, so a visibility rule can key off it. ## Changed [#changed] **One Shopify fetch transport.** Two wrappers were doing one job at two layers — in shopify-auth they were literally nested. Measurement now lives in the transport: all six Shopify clients construct a `createEnhancedFetch` directly, and the GraphQL operation naming stays in the Shopify package as `operationNamer`, since 11 of enhanced-fetch's other consumers are not GraphQL and have no business parsing an operation name. `EnhancedInit` picks up `brewName` and `brewService` so a call site can name a request that a URL cannot distinguish — searchtap POSTs six different operations to one URL. ## Fixed [#fixed] * **Sign-out only fires on a confirmed token rejection.** A failed refresh, a network error or an ambiguous response no longer logs the shopper out; only a response that actually rejects the token does. * **PLP no longer freezes on iOS via Branch**, and the unresolved-collection cache key that went with it is fixed. * **Shopify search sends buyer country context on every query**, so prices and availability match the shopper's market, and search terms are sanitized so invalid input returns no results instead of an error. * **Cart fixes.** A product with a zero compare-at price is treated as having no compare-at price rather than showing a fake discount. In `cart-list-v2`, pressing minus at quantity 1 removes the line. Flits receives the cart subtotal rather than the list total. * **PDP product video plays and pauses on tap.** * **PayPal falls back to its modal on iOS** in `payment-web-view-v4`. * **Colour swatch labels match with surrounding whitespace trimmed**, so a variant whose label carries a stray space still resolves. * **Gokwik rolls back the kwikpass session when the sign-in handoff fails**, instead of leaving a half-established session behind. * **Nector reviews uses the app's configured sign-in screen.** * **The no-internet screen renders on a grid-enabled PLP.** * **Release sourcemaps land where the crash worker looks for them.** ## Upgrading [#upgrading] Move every `@gauntlet/*` entry to `0.30.0` together with the Appbrew-published `@app-brew/*` packages, which version with the platform, then rebuild. No `pod install` or Gradle change is needed for this release unless you are adding `@gauntlet/location-capture`. Full workflow: [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.31.0 (/docs/changelog/0-31-0) Every platform change here is JavaScript. No native module was added or altered, so apps pick this up with a build at `0.31.0` — no [store release](/docs/ship/app-releases) is required for the platform itself. The new integration is the exception, and only if you adopt it: `@gauntlet/easyrewardz` peers on `@react-native-clipboard/clipboard`, which is not in the app template. Most apps carrying a loyalty integration already have it; adding it to one that does not is a native change for that app. ## Breaking [#breaking] **Collection lookups can return `null`.** Four `ICatalogProvider` methods widened their return type: | Method | Was | Now | | ----------------------------------- | ----------------------------------- | ----------------------------------------- | | `getCollectionByHandle` | `Promise` | `Promise` | | `getCollectionById` | `Promise` | `Promise` | | `getCollectionWithProductsByHandle` | `Promise<{ collection, products }>` | `Promise` | | `getCollectionWithProductsById` | `Promise<{ collection, products }>` | `Promise` | Call sites have to handle `null`, and a custom catalog provider has to widen its own return types to match. The shape the last two resolve to is now exported as `CollectionWithProducts` from `@gauntlet/types`, rather than written inline. **`getCollectionWithProducts*` take filter arguments before the cursor.** The signature changed from `(id, cursor?)` to `(id, query?, price?, sort?, cursor?, productsFirst?)`. An existing two-argument call now passes the cursor where the query belongs. TypeScript flags it, so nothing fails silently, but every call site needs looking at. ## New [#new] **`@gauntlet/easyrewardz` — EasyRewardz loyalty, published for the first time.** Customer snapshot, points balance, the points ledger and gift vouchers. It is read-only: points are shown, never redeemed. Requests are proxied through Appbrew's backend, which holds the EasyRewardz credentials, so the app carries no keys and talks to no EasyRewardz endpoint directly. A failure comes back as an error rather than as a zero balance or an empty list, so the blocks take their error path instead of rendering a plausible lie. Register it with `registerEasyrewardzBlocks` and configure it under the `easyrewardz` key. **Nector referral claim.** `useNectorReferralCode` and `extractNectorReferralCode` read a referral code off the deep link that opened the app, and `ReferralClaimForm` and `NectorReferralPrompt` collect and submit it. The form claims over mobile or email, or picks the channel itself. **A rating distribution graph on Nector reviews.** The review summary can show the familiar five-bar breakdown of how many reviews sit at each star rating. Opt in per block with `showNectorGraph`; the write-review button moves into the summary when it is on. **Flag options on the phone input.** `PhoneConfigOptions` adds `countryCodelayout`, `flagSize`, `flagWithEmoji` and `flagWithButton`. The flag now renders when the country code is laid out first, which it previously did not. ## Changed [#changed] **Move to wishlist from the cart.** `cart-list-v2` takes a `moveToWishlistSelector` block of `MoveToWishlistOptions`: whether the control toggles, whether it raises a toast, whether the line stays in the cart on add and on remove, and which icon marks each state. The added, removed and error toasts carry their own copy and an optional link. **The rewards program is tracked per customer.** The slice now records which customer a program belongs to. Two lookups that finish out of order can no longer leave one shopper looking at another's balance, and the status stops flashing through `loading` when the program in hand is already the right one. **`RewardsProvider.getRewardsProgram` takes an optional lead id and tier.** Both are optional, so an existing provider satisfies the interface unchanged. ## Fixed [#fixed] * **A collection that no longer exists no longer crashes the screen.** The lookup returns `null` and warns, instead of casting an absent response and failing further down. This is the change behind the breaking note above. * **Paging a collection that was evicted mid-flight writes nothing.** If the collection entry is reset, remounted or evicted while a page is in the air, the result belongs to a context nobody is rendering, and is now discarded rather than merged into whatever replaced it. * **The OTP sheet dismisses itself after a successful sign-in** instead of staying up over the signed-in screen. * **Nector credits review rewards**, and rewards data is refetched per customer rather than served warm from whoever was signed in before. ## Upgrading [#upgrading] Move every `@gauntlet/*` entry to `0.31.0` together with the Appbrew-published `@app-brew/*` packages, which version with the platform, then rebuild. No `pod install` or Gradle change is needed for this release unless you are adding `@gauntlet/easyrewardz` to an app that does not already have `@react-native-clipboard/clipboard`. Check your collection call sites against the breaking notes above before you ship. Full workflow: [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.32.0 (/docs/changelog/0-32-0) Everything platform-wide in this release is JavaScript. Two integrations moved native code, and only apps that carry them need a [store release](/docs/ship/app-releases) for the platform change: * `@gauntlet/clarity` bumps `@microsoft/react-native-clarity` from 4.3.3 to 4.7.0 for iOS 26. * `@gauntlet/app-update` now reads the in-app update state through `@app-brew/app-update`, the native module, instead of a raw `NativeModules` lookup. Apps using in-app updates need `@app-brew/app-update` installed; `sync-deps` adds it in the monorepo, standalone apps add it by hand. ## Breaking [#breaking] None. No exported signature changed shape in this release. ## New [#new] **`@gauntlet/bogos` — BOGOS bundles, published for the first time.** Volume offers, fixed bundles and mix-and-match offers from the BOGOS app, rendered on the product page and applied to the cart the way the web widget does: per-item and fixed-price tiers, exclusion groups, market amounts converted to the cart currency, and out-of-stock rows marked rather than hidden. Product fetches retry on failure and a code sync never writes a stale cart. Register with `registerBogosBlocks` and configure under the `bogos` key. **`@gauntlet/videowise` — Videowise live shopping, published for the first time.** A live-shopping channel block plus the analytics events Videowise expects, so a live stream on the store site can be watched and shopped from the app. Register with `registerVideowiseBlocks` and configure under the `videowise` key. **Loyalty Lion rewards earned in the app.** `@gauntlet/loyalty-lion` can now award points for enabling push, following social accounts and referrals, not only for purchases. **Floating blocks: image banner, video banner and a goto button.** Three new floating blocks join the registry, and floating blocks can now be restricted to a platform, so a banner can show on Android only or iOS only. **Cart list v2: discount chips.** Discount codes on the cart render as chips with configurable options, and every part of the row is overridable through the block's `style` map. **Star ratings: configurable reviews redirect.** Tapping the rating can open a configured reviews destination, and the review-count text takes its own styling. **Goto button v2: dynamic product parameters.** A goto link's `params` are filled from the product the button sits on, so one configured button works across products. **Flits: grey out redeem when another discount is applied.** An option keeps the points redeem checkbox disabled while a different discount is on the cart. **Subscriptions: custom web view for managing payment methods.** The manage payment action can open a configured web view instead of the default page. **AppsFlyer custom domains.** `customDomains` on the AppsFlyer config lets OneLink domains other than the default resolve, with clearer debug logging during setup. **Cart attribution.** Every cart created by the app now carries two note attributes, `appbrew-platform` and `appbrew-firebase-instance-id`, so a server-side order can be attributed back to the app session. Brewmeter events carry the customer on every event as well. **SearchTap variants expose inventory.** Transformed variants now include the inventory fields, so blocks can show availability from search results. **Unit price on variants.** `IProductVariant` gains `unitPrice` and `unitPriceMeasurement`, filled from Shopify, so a product card can show a price per unit next to the price. ## Fixed [#fixed] * **Addresses.** `changeAddress` falls back to the given address when the id is not in the list, a default address is preselected only when the customer has one, and deleting the selected address clears the stale selection. * **Load more keeps the page size.** Paging through a collection no longer grows the page. * **Analytics.** A rejecting tracker no longer takes the others down, the app user sync fetch is caught, and purchase events are sent even when the main cart is empty at the time of purchase. * **Firebase push.** A token debug log that could raise an unhandled rejection is gone. * **Attentive.** No crash on a purchase without an order id, and line items are sent with the purchase. * **Payment web view.** Razorpay UPI intents open correctly on Android. * **Carousel.** Android paging stays off rendered children. * **Splash.** The splash screen hides at the right moment. * **Netcore.** Tracker identity is set correctly on login. * **GoKwik.** UTM parameters are awaited before `merchantParams` reach the checkout. * **Unbxd search.** Provider requests go through enhanced fetch. * **Search blocks.** Blocks hide instead of unmounting while a search is active, keeping their state. * **CleverTap with Fastrr.** An email change no longer duplicates the CleverTap profile, and login events land on the right one. ## Tooling [#tooling] **`@app-brew/build-tools` resolves a linked library's peers from the app.** Source that lives outside the app's `node_modules`, which is the case when a library is linked in from another checkout, now resolves React, react-native and every other peer from the app first, and the Module Federation shares for `react` and `react-native` are pinned to the app's copies. Before this, a linked library brought its own React along and the app failed on the first hook call. This is what the `gh brew link` workflow relies on; the monorepo build is unchanged. Upgrading? The workflow is at [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.33.0 (/docs/changelog/0-33-0) Both changes are JavaScript. They reach users with the next [app release](/docs/ship/app-releases); no `pod install` is needed. ## Breaking [#breaking] None. No exported signature changed shape in this release. ## New [#new] **Instant code loads in any app that calls `app.init`.** The remote-bundle loader in `@gauntlet/brewery` now falls back to the Appbrew bundle host when `REMOTE_BUNDLE_URL` is missing from the app's `.env`, so an app no longer needs the key to load instant code. Set it to an empty string to turn instant code off for one app. The loader is installed by `app.init`, so an app still on `config.init(appId).then(...)` loads nothing; move it to `onConfigReady(callback)` from `@gauntlet/state`, followed by `app.init({ appId })` with `app` from `@gauntlet/brewery`. Two behaviours differ from `config.init().then()`. The `onConfigReady` callback does not run when config fails to load, where the old `.then` callback ran with no data. Work chained with `.finally` after `.then` belongs in the ready callback, since `app.init` returns nothing to chain on. **`prewarm` from `@gauntlet/brewery`.** Call it from `index.js` when the screen is created, so a launch from a background push skips it. It is idempotent, since a screen restart calls it again. ## Fixed [#fixed] **Nector loyalty tiers render before sign-in.** The VIP program model read its rules from the authenticated rewards call, so a signed-out shopper saw no program copy or tiers. `NectorProvider` now loads the same rules without a customer token and exposes a `ready` promise, which the hooks await when they mount before `init` finishes. **Nector coin expiry uses the program's unit.** Expiry counts are read with the unit the program sets (days, weeks or months) instead of assuming months, and the earn rate falls back to the program-level coins-per-unit value when the order reward rule does not carry one. # 0.34.0 (/docs/changelog/0-34-0) * `@gauntlet/brewery` now declares `react-native-keyboard-controller`, a native module, as a peer dependency at 1.22.5. Add it to the app's `package.json` (`pnpm exec appbrew-sync-deps` does this), run `pod install`, and ship a [store release](/docs/ship/app-releases). A JS-only update onto an older binary will not find the module. Pin 1.22.5 exactly: 1.21.x throws when a screen unmounts. * `@app-brew/app-update` changes on iOS: the in-app update store sheet now closes when Done is tapped. ## Breaking [#breaking] **`@gauntlet/shopify` and `@gauntlet/shopify-types` drop the Checkout API.** Shopify no longer serves the Checkout API at any version, so its surface is gone: `ShopifyCheckoutProvider` and `migrateCart` from `@gauntlet/shopify`, and the `Checkout*` and `CreateCheckout` documents and their mutation types from `@gauntlet/shopify-types`. Apps already run on the Cart API through `ShopifyCartProvider`, which is unchanged. Remove any remaining import of the deleted names before upgrading. **`screenHeight` moved out of the device dimensions.** The store keeps it at `device.screenHeight`, no longer at `device.dimensions.screenHeight`, so `useDeviceDimensions()` no longer returns it. Code that read it from the dimensions object should select `device.screenHeight` from the store. **Shopify API version is now 2026-07.** Every Storefront and Customer Account request is pinned to 2026-07 from one module. Before this, requests asked for 2024-04 or 2025-01 and Shopify silently answered with the oldest supported version. Custom queries written against older schemas should be checked against 2026-07. ## New [#new] **Keyboard handling measured on every screen.** Whether a focused field is clear of the keyboard is now measured at runtime, on every screen, instead of decided by hard-coded screen-name lists, which are gone. * Every screen's list scrolls the focused field clear of the keyboard, measured to the whole input box rather than the caret line. * A footer, such as a search bar pinned above the bottom bar, lifts with the keyboard based on where its input actually is. * On Android, a bottom sheet lifts a focused field clear of the keyboard, so the variant sheet no longer hides quantity and Add to cart. * The footer gap is configurable: the screen's `layout.footer.options.keyboardGap`, then `settings.global.footerKeyboardGap`, then 24. * `settings.global.disableKeyboardHandling` turns all of it off for an app. **`@gauntlet/fare-freight` — live carrier shipping rates in the cart.** For stores that quote shipping through a Fare Freight carrier service, a shipping calculator block shows the rate checkout will charge, which the Storefront Cart API does not return. **`@gauntlet/livemeup` — live shopping, published for the first time.** A mini player block and a full-screen player for LiveMeUp live streams. **GoKwik sends the KwikPass SDK version** in checkout and web view payloads. ## Fixed [#fixed] * **Keyboard.** A keyboard that grows while open, for an emoji panel or the autofill bar, no longer hides the field. Closing the keyboard no longer jumps the list back to a stale offset. iOS address forms no longer hide the pin code, and OTP and phone fields no longer sit flush against the keyboard. * **Onboarding crash.** `ScreenBrewery` no longer throws when rendered outside a navigator, which crashed the default onboarding. * **Launch crash on deep links with an encoded `%`.** Preview parameters are now parsed only on preview links, so a campaign link with a malformed encoding no longer throws `URIError` at launch. * **Free-gift lines no longer duplicate.** Concurrent gift evaluations could each add the same gift, and Shopify merged them into one line with several units. A gift add in flight now blocks a second one. * **Cart events** skip items whose product has not loaded yet. * **Sign in.** Sign-in v3 handles a non-object sign-in result, and Shopflo asks for an email when OTP verification returns none. * **Null guards** for a missing customer in `getOrders` and Flits, an undefined SearchTap collection result, a swallowed review fetch error and a failed Nector redeem before the coupon modal opens. * **Collection metafields** are not queried when no keys are requested. * **Attentive** stops re-prompting subscribed users on every launch. * **WebEngage** push notifications no longer trigger a refresh on Android. * **Afterpay** block renders and reads its settings from config. * **Unbxd search** builds variants from `variantDetail`. ## Performance [#performance] A keyboard toggle no longer re-renders every `useDeviceDimensions()` consumer, since `screenHeight` left the dimensions object, and `deviceType` is selected on its own rather than through the whole device object. ## Tooling [#tooling] **`@app-brew/build-tools` ships `appbrew-sync-deps`.** The dependency sync the monorepo runs before every build now works in an app's own repo. Run `pnpm exec appbrew-sync-deps` after installing: it walks the app's imports through the installed `@gauntlet/*` and `@app-brew/*` packages, adds what is missing to `package.json` at the versions those packages declare, prunes what nothing reaches, and reinstalls. Pass `--dry-run` to preview or `--no-prune` to only add. It refuses to prune when an imported first-party package is not installed, since the graph is incomplete. Run from inside a local integration under `packages/`, it syncs the app rather than the integration, and it resolves packages whose `exports` map has conditions but no `"."` key. Upgrading? The workflow is at [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.35.0 (/docs/changelog/0-35-0) * `@gauntlet/brewery` now declares two native peers: the new `@app-brew/tab-bar` package and `react-native-haptic-feedback`, plus the JS-only `@react-navigation/bottom-tabs` at 7.4.7. Add all three to the app's `package.json` (`pnpm exec appbrew-sync-deps` does this), run `pod install`, and ship a [store release](/docs/ship/app-releases). * `@app-brew/tab-bar` is iOS only and refuses to compile below Xcode 26 (the iOS 26 SDK), so iOS builds now need Xcode 26. Android does not link it. * `@app-brew/webview` gains a `contentInsetBottom` prop on iOS and Android, so the page clears a bar floating over it. * `@app-brew/quick-actions` changes on Android: adding a shortcut reports whether its remote icon failed to load. ## Breaking [#breaking] **The bottom bar runs on React Navigation's bottom-tabs navigator.** Tab screens are now hosted by `@react-navigation/bottom-tabs` instead of the child navigator. Tabs mount when first opened and freeze while in the background. The bar itself looks and behaves as before unless the new options below are set. If a tab misbehaves, set `navigation.bottomBar.engine` to `'legacy-child-nav'` to go back to the old host while you report it; that switch will be removed in a later release. **`ChildNav` is no longer exported from `@gauntlet/brewery`.** It was the tab host's navigator. A shell that forks brewery's should create its own with `createChildNavigator()` from `@gauntlet/child-navigator`. **Phone inputs default to the `first` country-code layout.** With no `countryCodelayout` set, the flag and calling code now sit together in the country picker button, and the separate calling-code text is hidden. Before, the default was `second`. Set `countryCodelayout: 'second'` in the input's config options to keep the old look. The separate-borders layout is unaffected. **`view_item` is sent from navigation state, not from `pushRoute`.** `pushRoute` and `replaceRoute` no longer send it; brewery's `Shell` sends it when the navigator settles on a product screen (see Changed). An app that renders its own `NavigationContainer` instead of `Shell` no longer gets `view_item` and must send it from its own `onStateChange`. **Subscription blocks without an `appId` show every selling plan.** The subscription selector, its dropdown, and the selling-plan price, discount and compare-at-price components used to render nothing when `options.appId` was missing. They now accept the plans of every selling plan group on the product. Set `appId` to keep them scoped to one subscription app. **`backgroundOptionsSchema` in `@gauntlet/types` is a refined schema.** It gains a `liquid` kind and now rejects a liquid background without `liquid.fallback`. As a refined zod schema it no longer has `.extend()` or `.shape`. ## New [#new] **Bottom bar options.** `navigation.bottomBar` gains a `behavior` object: `animation` (`none`, `fade`, `shift`, `scale`, `spring`; default `fade`), `hideOnKeyboard`, `hideOnScroll`, `hapticFeedback`, `preloadAdjacentScreens`, `lazy`, `freezeOnBlur` and `rePressReload`. The top-level `preloadAdjacentScreens` and `hideOnScroll` still work and are deprecated. Tabs gain a `badge` (cart count, wishlist count, a static value, a store path, or none, shown as a count or a dot) that replaces `badgeLocation`, a `themeKey` for per-tab styles in `theme.bottomBar.tabOverrides`, and a screen can hide the bar with `bottomBar.hide`. **Liquid Glass bar on iOS 26.** Set `theme.bottomBar.liquid.enabled` and the bar becomes UIKit's own tab bar on devices running iOS 26 with a binary that links `@app-brew/tab-bar`. Every tab needs a `nativeIcon` (an SF Symbol or an image URL) or the search `role`, and the bar holds at most five tabs; otherwise, and on Android and older iOS, the docked bar renders as before. A screen's footer can float over the list on glass with `footer.liquid` (`glass`, `pill`, `accessory` or `float`), and a `Box` background can be `liquid` with a solid `fallback` colour for every other device. **`@gauntlet/bss-b2b` — B2B wholesale prices, published for the first time.** Signed-in customers see their wholesale prices and volume tiers in the shared price components, and check out at those prices through a draft order. Register `BssB2bProvider` as the app's `pricing` module; the `bss-b2b-volume-tiers` and `bss-b2b-checkout` blocks complete it. **Remote components fail on their own.** Every component an instant-code bundle registers renders inside its own error boundary. A crash falls back to the component it replaced, or to nothing, instead of replacing the whole app with the error screen, and it is reported as `InstantCodeError` with the component's kind and key. Load failures and rejected manifests are reported too; network drops are not. **Purchase options block.** `purchase-options` lets a customer choose between one-time purchase and subscription on the product page, and opens the subscription frequency sheet. **Apply-coupon modal.** The `apply-coupon-modal` block lists the cart's coupons as ticket cards under a sheet header. Applying one shows a toast and goes back. `view-coupons` can open it, or any other link, through `options.applyCouponLink`. **Flits referral links open in the app.** Mount `FlitsReferralPrompt` next to `Shell` and a Flits referral link opens a prompt that accepts the invite, sending signed-out customers to sign in first. The `flits-share-referral-link` block shares the referral link instead of the code. **Server-side GA4 purchase for Firebase.** With the Firebase integration's `serverPurchase` setting on and Measurement API secrets set, the GA4 `purchase` event is sent from the order webhook rather than the app, so orders whose buyer leaves for a payment app are counted. The app then skips its own `purchase` and stamps Firebase identifiers on the cart. **Smaller additions.** * `image-list`: `options.heading.numberOfLines` truncates item titles. * `payment-details`: `source.totalInfoText` adds a note under the total, such as "Inclusive of all taxes". * `add-to-cart`: `style.loader` colours or hides the loading shimmer. * WebEngage (tracker v2): `uniqueId` picks `customerId` (the default), `email` or `phone` as the user identity. * Stamped: `settings.global.sendVariantSkuToStamped` sends the default variant's SKU with review requests, so Stamped product groups apply. Off by default. * `settings.global.preserveGoogleUtmSource` keeps `utm_source=google` when the link also carries a `gclid`, which otherwise rewrites it to `google_ads`. Off by default. ## Changed [#changed] **`view_item` is sent for every way of reaching a product.** Before, it was sent only when in-app navigation pushed or replaced a product screen. Products opened from a deep link, a push notification, a Meta or other campaign link, or a link inside a web page sent nothing. Now each new product screen sends it once, and opening a different product in a running app sends it again. Going back to a product, or switching tabs and returning, does not. Expect higher `view_item` counts in every destination that receives it, such as GA4, Meta, AppsFlyer, Branch and Klaviyo, in proportion to how much traffic arrives by link. **Link UTM parameters set the event source.** A Firebase push notification link, and an in-app link whose URL carries `utm_*` parameters, now record those parameters as the event source. **WebEngage (tracker v2) follows event renames.** Login, logout and purchase handling now works when those events are renamed through `eventsMapper`, and screen views go through the mapper too, so a renamed `page_view` is sent under its new name. **Quick actions register once.** Home-screen shortcuts are registered when their config changes rather than on every launch, so a kill during launch no longer leaves the menu empty. ## Fixed [#fixed] * **Deep links and an unparseable screen path.** A screen whose id or `deepLinkPath` React Navigation cannot parse, such as one with a colon inside a segment, made every deep link in the app fail: the app opened on its first screen and the link was ignored. That screen's path is now left out of the linking config, so every other link works, and a link to that screen opens the store page in a web view. * **Meta ads open at the destination.** A Meta ad that opened the app through App Links carried its target inside `al_applink_data`, and the app tried to read a product path from that escaped blob, landing on a page that did not exist. The app now opens the ad's target URL, also for deferred links on first launch after install. * **Deep links to fallback tab screens** resolve inside the tabs, and query values such as `%2B` in a deep link are no longer decoded twice. * **GoKwik KwikPass sign-in** returns to the redirect screen by popping the sign-in and OTP screens, and closes the sheet hosting it, so back no longer lands on the OTP step. * **Cold-start quick actions** wait for the splash and app init before opening their screen, so launch no longer swallows the tap. * **Keyboard.** The screen list no longer lifts when a field inside a web page has focus. * **Address form.** After adding an address, the form goes back to the screen that opened it instead of pushing a second address list. * **Move to cart** passes all of its config options to the add-to-cart button, not just the title and type. * **Flits** sends referral-code acceptance as form data, which the API expects. ## Performance [#performance] Product cards render less. The card, its leaf components and the PDP product info are memoised with props scoped to each field, and `useModal` selects with shallow equality, so its consumers no longer re-render on every store write. ## Tooling [#tooling] **`@app-brew/build-tools` shares app dependencies with remotes.** The host now shares every dependency in the app's `package.json` with instant-code remotes, not just the core set, so a remote reuses the host's copy instead of bundling its own, and stateful libraries such as toasts run as one instance. A remote still bundles a fallback for each, so a remote built now runs on binaries built before, and remotes built before keep working on new binaries. Remote images now load by URL from the remote's own `remote-assets/` folder, so images that only a remote ships render in release builds. **`env-watch-loader.cjs` ships in the package.** Apps that install build-tools from the registry no longer fail with `Cannot find module './env'`. Upgrading? The workflow is at [Upgrading @gauntlet packages](/docs/ship/upgrading). # 0.36.0 (/docs/changelog/0-36-0) Only `@app-brew/build-tools` changed. It builds the app's JavaScript bundle, so the speed-up reaches users with the next [app release](/docs/ship/app-releases). No `pod install` is needed. ## Performance [#performance] **Apps start as fast as they did on 0.34.** In 0.35.0, `@app-brew/build-tools` put every app dependency, and every path under it, in Module Federation's `shared` set. Each of the app's own imports then went through the share scope, and all of them were registered at launch, so JavaScript start-up took two to four times longer. The app now offers its dependencies in a separate scope that is skipped at launch, and registers only the ones an instant-code manifest lists, when that manifest loads. | App | 0.34.0 | 0.35.0 | 0.36.0 | | ----------------------------- | ------ | -------- | ------ | | Without instant code, Android | 348 ms | 1,353 ms | 332 ms | | With instant code, iOS | 218 ms | 381 ms | 218 ms | Times are JavaScript module initialisation in Release builds. Apps without instant code pay nothing for sharing. Instant code still uses the app's copy of each dependency, including when the instant code bundles a newer version, so stateful libraries keep running as one instance. # 0.37.0 (/docs/changelog/0-37-0) `@gauntlet/gokwik` moves `react-native-kwikpass` from 0.1.72 to 0.1.80, which ships native iOS and Android code. Apps using GoKwik need `pod install` and a [store release](/docs/ship/app-releases). Every other change in this release is JavaScript only. ## Breaking [#breaking] **Zod schemas are no longer exported as values from `@gauntlet/types`.** The package root now re-exports its schema files as types only, so an app no longer builds every schema at launch just to infer types. Schema values such as `backgroundOptionsSchema` are at `@gauntlet/types/schemas`. Code that validates at runtime (Studio, a backend, a custom block form) must import from there; from the root, the value is `undefined`. Types and the quick-action and bottom-bar helpers are still exported from the root. **23 blocks are removed.** No published app config placed any of them: `a1-accordion-image`, `a1-collection-banner`, `a1-generic-metafield-accordion`, `a1-image-list`, `a1-product-grid`, `a1-product-list`, `collection-list`, `collection-list-background`, `color-image`, `empty-search-suggestions`, `follow-us`, `opinew-reviews`, `payment-succes`, `pdp-description`, `pdp-description-native`, `plp-content`, `product-card-v2`, `profile-edit`, `search-bar`, `search-recommendations`, `shopify-customer-payment-webview`, `size_guide` and `trending-products`. A config that still names one renders nothing in its place, and brewery reports the screen and block once per launch as a Sentry warning. Their components are deleted from `@gauntlet/components`, except `ProductCardBlockV2`, `ProfileEdit` and `ColorImage`, which other code still uses. Four subpath exports go with them: `organisms/a1-collection-image-banner/index.web`, `organisms/a1-generic-metafield-accordion/index.web`, `organisms/opinew-reviews/utils` and `organisms/pdp-description-native/index.web`. `@gauntlet/components` no longer depends on `react-native-table-component`. **`AppsflyerTrackerV2` moves to `analytics-v2`.** The file was `analyticsV2`. Importing from `@gauntlet/appsflyer` is unaffected; a deep import of the old path breaks. ## New [#new] **AI chat screen for Purands.** `@gauntlet/purands` registers a `purands-chat` screen through `registerPurandsScreens(screenRegistry)`. It opens the chat in a webview and passes the page the shopper came from. The integration config gains `gatewayOrigin`, `clientId` and `tenant`. **Rectangle hotspots.** `link-hotspot` markers can be `rectangle` as well as `circle`, sized by `aspectRatio`, and `outlined` to keep the artwork under them visible. `revealHotspotsOnPress` briefly shows hidden markers when the shopper taps elsewhere on the image, and `animateHotspots: false` turns off the pulse. Marker styles now live under `item.marker`; configs that still use `item.circle` keep working and render in the new style. **Web SDK `signout()`.** A web page can call `appbrewSDK.signout()` to sign the app out, the same as the native sign-out button. Before, a page's own sign-out ended only the web session, and the app signed the customer straight back in. **AppsFlyer deep links on `AppsflyerTrackerV2`.** The V2 tracker now handles OneLink deep links and first-launch deferred deep links the same way as the V1 tracker. It also reports app opens from other links for re-engagement attribution and registers `customDomains` for branded OneLink domains. Debug logs are on in development builds only. **GoKwik webview debugging.** Set `integrations.gokwik.webviewDebuggingEnabled` to inspect the KwikPass checkout webview. ## Fixed [#fixed] **Products and collections that fail to load show a way back.** A handle Shopify cannot find used to leave the page on skeletons for ever. The page now says it couldn't open the product or collection and offers Go back. It retries once and reports to Sentry if the retry fails. Restyle it with `theme.catalogUnavailable`. **Meta collection ads with a pinned product open the collection.** A link like `/collections/x?pinned=https://shop/products/y` used to route to the product page with a broken handle. **A product without variants no longer leaves its collection loading.** Its price lookup threw after a successful fetch, and the entry stayed loading with no retry. **The Shopify customer token is refreshed only after the config loads.** The check used to run while the config was still loading, before the auth module had the settings it needs. **Form inputs keep focus on the first invalid keystroke.** An error style with a `shadowColor` re-mounted the input on Fabric, closing the keyboard. **Webhook tracker events carry UTM attribution.** Each event now sends the session's `utm_*` values in an `attribution` field next to `payload`. **`run-android`, `run-ios`, `clean-android` and `clean-ios` work in apps in their own repo.** They started with `zx`, which picked up whatever `zx` was on the `PATH` and read the script path as the app name. They now run with `node`. ## Performance [#performance] **Faster JavaScript start-up.** Taking the zod schemas out of the app bundle (see Breaking) removes about 500 ms of start-up JavaScript measured on an Android emulator. # 0.38.0 (/docs/changelog/0-38-0) `@app-brew/quick-actions` now decodes cached shortcut icons with `inSampleSize` on Android. Cached icons are already downsampled when they are downloaded, so they decode the same as before; the change only clears Google Play Console's "bitmap downsampling" warning, and reaches an app with its next Android store build. Every other change in this release is JavaScript only, and iOS has no native changes. No breaking changes: no export, block or file is removed. ## New [#new] **Variant colour swatches from the store's own data.** Colour options on a product page can draw as the product's own photo in that colour (`default-variant-image`), the store's swatch images in Files through a `urlTemplate` with `textTransform` and `separator` (`default-color-image`), or a colour circle read from the `appbrew.swatches` metafield (`default-shopify-color`). Milo picks the right one per store and turns it on in a draft. Any colour it cannot draw falls back to the store's normal option chip, never an empty box. ## Changed [#changed] **Purands no longer receives the shopper's name and email.** The boot payload drops its `user` block. The chat asks for these itself, so it no longer opens with the shopper's name. Order lookup, `VIEW_ORDER`, cart operations, checkout and attribution are unaffected. **OTP sign-in sends the app id from the loaded config.** `otp-signin`, `otp-verification` and `otp-signup` read `config.data.store.appId` and fall back to `EnvConfig.APP_ID`. In every published app the two are the same; in Lens, a previewed app now signs in against its own OTP settings instead of getting stuck after the email step. ## Fixed [#fixed] **Sort and filter bars pinned under the app bar show again.** Since 0.34.0, a screen footer styled `position: absolute` with a `top` (a `sort-and-filter` bar under the app bar) rendered off-screen, leaving a gap and no sort or filter. It now draws from the top of the screen as it did before. Bottom footers are unchanged. **Push taps open the deep link.** On Android, tapping a push after the app was killed sometimes opened home instead of the link. A config refresh that brings nothing new also keeps open screens mounted, so a collection no longer reloads into "No results found". **Links that arrive while config refreshes are no longer lost.** After 30+ minutes in the background the app reloads its config; a deep link opened during that reload now reaches its screen on iOS and Android. **Quantity limits apply per product, across cart lines.** A product split over several lines (B1G1, gifts) used to get the full limit on each line. Adding to cart, changing a line's quantity and adding gifts now count the product's total. New helpers: `getProductQuantityInCart`, `getProductQuantityCap` and `useProductQuantityInCart`. **Fastrr redirect payments stay inside checkout.** Card and netbanking returns land on the store home URL with Fastrr query parameters; the app treated that as leaving checkout and jumped home, so Fastrr never showed its result and the purchase event was missed. **Sign in from checkout works with Shopify's new customer accounts.** The checkout web view now also catches `/customer_authentication/redirect` and `/customer_authentication/login`, and on the store's primary domain. **Product page metafields and products reload when a deep link swaps the product.** Opening a product link while a product page is open reuses the screen; its metafield blocks and product lists used to stay on the old product, or empty. **Phone and name inputs on Android.** A theme `lineHeight: null` no longer collapses the phone input after one keystroke, and `textTransform` is stripped from inputs, which stopped letters doubling and lowercasing on Samsung keyboards. **The filter sheet opens only with facets.** With no facets it no longer mounts an empty body and stays closable. **Web views open on themes without `appBar`.** They read the app bar height optionally and fall back to 64. **The sign-in event no longer throws without customer details.** **Studio canvas shows the size chart page.** `product-size-chart-v2` loads Milo's hosted size page in the canvas; storefront pages that refuse framing show a note instead. # 0.39.0 (/docs/changelog/0-39-0) `@app-brew/app-update` and `@app-brew/tab-bar` change Swift code on iOS. Update checks now always get the current App Store version, and the tab bar passes touches outside itself through and no longer smears the selected icon during the tap animation. These fixes reach an app with its next iOS store build. Android has no native changes, and every other change in this release is JavaScript only. ## Breaking [#breaking] These affect only custom code that reads or calls the platform's state slices directly. App configs and the built-in blocks need no change. **A closing sheet keeps its modal state until it is dismissed.** `closeModal()` no longer clears the modal state itself; `modalState.openedModal` stays set until the sheet reports it has closed, with the new `closing` flag set in between. Code that reads `openedModal` right after `closeModal()` should check `closing`. `openBottomSheetModal` now returns a boolean, `false` when the same modal for the same product is already open. **Cart calls return only blocking warnings.** The `warning` on a `cartCreate`, `cartLinesAdd` or `cartLinesUpdate` result no longer carries discount warnings (codes starting `DISCOUNT`). Discount messages stay on the cart itself. **`collectTabScreenIds` from `@gauntlet/types` skips hidden tabs.** Tabs marked `hide: true` are left out by default. Pass `{ skipHidden: false }` for the old list. **`config.enterPreviewMode` takes the theme name as a second argument**, and `config.refresh` now resolves to a boolean that says whether the refresh landed. ## New [#new] **Vertical tab bars.** Set a tabbed screen's `options.tabBar.orientation` to `vertical` to show the tabs as a sidebar beside the pages instead of above them. Vertical tabs scroll, switching does not slide, and swiping between pages is off. The default stays `horizontal`. **A cap on the total number of items in the cart.** Set `maxCartQuantity` in the global settings. `maxCartQuantityExclude` (`{ tags, handles }`) leaves matching products out of the count. Add to cart is blocked at the cap, quantity selectors stop at what is left, and checkout is refused above it with the code `MAX_CART_QUANTITY`. `maxCartQuantityMessage` and `maxCartQuantityCheckoutMessage` set the messages, with a `{{limit}}` token. `useCartQuantityLeft` returns what is left. With no `maxCartQuantity`, or 0, there is no cap. **A navigation can choose its screen transition.** Pass `screenAnimation` in the route params: `default`, `fade`, `fade_from_bottom`, `flip`, `none`, `simple_push`, `slide_from_bottom`, `slide_from_right`, `slide_from_left`, `ios_from_right` or `ios_from_left`. Unknown values are ignored, and the screen's usual transition returns once it has appeared, so going back looks as before. **Your own items between products in a collection grid.** Register a component for the `plp-grid` slot in `slotRegistry` from `@gauntlet/brewery`. It receives `{ collectionId, onItems }` and calls `onItems` with `[{ key, afterProduct, element }]`; each element renders full width on the row after that product. Search results have no slot. With nothing registered the grid is unchanged. **Bold subscriptions.** The subscriptions integration takes `bold` as a provider, with `accessToken` and an optional `shopIdentifier`. New blocks manage a subscription in the app: `subscription-list-v2`, `subscription-details-v2`, and modals to confirm, add a note, and change the frequency, a future order, the payment method, the shipping method or the products. A list refetch keeps the list on screen, and detail screens no longer refetch on mount. **Xeno loyalty and Qwikcilver gift cards.** Two new packages. `@gauntlet/xeno` (`registerXenoBlocks`) adds `xeno-points-summary` (available and pending points, tier and a link button) and `xeno-points-history`. `@gauntlet/qwickcilver` (`registerQwickcilverBlocks`) adds `qwickcilver-wallet-balance`, `qwickcilver-add-gift-card`, `qwickcilver-wallet-history` and `qwickcilver-gift-card-purchase`. A gift card balance is spent in Shopify checkout. Blocks from both hide for guests. **Location capture searches less and knows quick-commerce cities.** `autocompleteMinChars` (default 3) and `autocompleteDebounceMs` (default 600) stop each keystroke from costing a request. With Ola Maps, a six-digit pincode leads with that pincode's area. `useIsQcCity()` and `useIsQcExperience()` tell a block whether the shopper's location is a quick-commerce city, and after signing in from the picker it reopens on the same screen. **Haptic on the app-bar cart icon.** Set `options.enableHapticTouch` to `true` on the cart element; `options.hapticTouchValue` picks the pattern (default `soft`). Off unless set. **Navigation arrow icons from config.** `options.icon` on `single-level-navigation` and `profile-menu` sets the icon at the end of each row, as an icon id or a remote icon URL. Unset keeps the chevron, and `""` hides it. **Two-level navigation titles can be limited to a number of lines.** `options.titleNumberOfLines` and `options.subNavigationNumberOfLines` end longer titles with an ellipsis. Unset, titles wrap as before. **Multi-tier cart goals can fill the current tier by progress.** Set `options.progressBarOptions.proportionalProgress` to `true` on progress styles 2, 7 and 10. The default keeps the halfway fill. **Screens can pad for a floating bottom bar.** Set `behavior.padContent: true` on the bottom bar. When the bar floats (`position: 'absolute'` with a `bottom` above 0), lists get padding for the bar's height plus `behavior.contentGap` (default 16), and a screen footer sits above the bar. **Required title and review fields, and an inline rating error.** Set `options.requiredFields` on `add-review` to `['title']`, `['body']` or both. A submit with no rating now shows "Please select a rating" under the stars instead of a toast, styled by `style.rating.error`. **Launch screen on newer builds only.** When a minimum build is set for a platform in Studio, the launch screen shows only on builds above it. With no value set, it shows on every build. **Searchtap results can rank by keyword weight.** In the Searchtap settings, `productWeightage.enabled` with `scoringValues` (for example `{ "product_type": 20, "title": 5 }`) re-sorts relevance results by keyword hits per field. Optional: `pageSizeMultiplier` (default 5), `minResultsToApply` (default 3) and `relevanceSortKeys`. Off by default. **Yotpo ways to earn can hide campaigns.** Set `hiddenCampaignIds` on `yotpo-rewards-ways-to-redeem` to leave out campaigns by id, such as ones marked hidden in Yotpo. The heading hides when nothing is left. ## Changed [#changed] **Add to bag gives haptic feedback, on by default.** The add-to-cart button taps (`impactMedium`) when a variant is added and buzzes (`notificationError`) when the add fails. It also fires on Android with system touch feedback off. Set `options.enableHapticTouch` to `false` on the block's add-to-cart options to turn it off, or `options.hapticTouchValue` to choose another pattern. **The product quantity limit counts per variant.** When a variant is known, the per-product limit from 0.38.0 now counts that variant's cart lines, not every line of the product, so a product capped at 2 allows 2 of each size. Add to cart, quantity selectors and `cart-list-v2` all count this way. `getProductQuantityInCart` takes an optional `variantId`. **Firebase sets the GA4 user ID for signed-in customers.** Both trackers set it to the base64-encoded email of the signed-in customer, or the Appbrew instance ID when there is no usable email, the same value the server-side purchase sends, so GA4 can join the two. Guests are left unset, and it is cleared right after the `logout` event. Before, the app set no user ID. **Add-to-carts inside a What a More reel are marked.** The video id on the cart line gets `:direct` appended when the product is added inside the reel it is linked to. On by default; set `whatAMore.markDirectAtc` to `false` in the global settings to keep the plain id. **WebEngage events carry the screen they happened on.** Both trackers call `screen()` before `PAGE_VIEW`, so events right after a navigation no longer carry the previous screen's name. Reports filtered on Screen Name will shift. **Bitespeed receives no events until the shopper is identified.** Its SDK throws on events before identify, so the tracker now skips them for guests. **Purands chat knows the Collections and Account tabs.** They send `/collections` and `/account` as page context. Screens with no web counterpart now send an empty context instead of keeping the previous page. **Signing out keeps a GPS or searched location.** Location capture now clears the captured location and quick-commerce flags on sign-out only when the location came from the address book or none was picked. **English-only input applies on more forms.** `validationSettings.enforceEnglishOnly` now works on sign-up, OTP sign-up, the address form and profile edit, which ignored it before. Apps that already set it will see non-ASCII characters stripped on those forms. **Keyboard and bottom bar padding no longer add up.** A screen with a bottom bar inset pads for the keyboard or the bar, whichever applies, not both. ## Fixed [#fixed] **A sheet opened while another closes now opens.** It is queued and shown once the close finishes. Android hardware back closes the open sheet instead of navigating underneath it. **Hidden bottom-bar tabs open.** A tab marked `hide: true` and reached by a link no longer redirects away from itself, and the bar still shows on it. **A previewed theme stays on screen when the live config loads late.** Only the newest config load updates the screen. The preview footer shows "Loading preview…" and, on failure, "Couldn't load preview". A failed refresh keeps the config already on screen. **Abandoned-checkout links open that checkout on the payment screen.** A link that opens `payment` passes the screen the checkout to recover. Links cannot set `checkoutUrlOverride` or `recoveredCheckoutUrl` themselves. **A signed-in shopper's wishlist and past searches stay with their account.** Both are stored per account on the device, so the next account on the same phone starts clean. The first account to sign in after updating keeps the device's existing wishlist; past searches made before the update stay with the guest. **The add-to-cart toast no longer shows a stale discount warning or a negative stock count.** **Flat collection grid cards stretch to their row's height again.** **Tapping Sign in repeatedly sends one OTP.** The button shows a loading state while the request runs. **Payment pages no longer throw when a UPI app cannot be opened.** The payment web views and the Fastrr, GoKwik and Shopflo checkouts catch the failure and keep the shopper on the payment page. **Cart attributes reach Fastrr checkout intact.** A value with `&` or `#`, such as a UTM campaign, no longer cuts checkout short. **Sold-out products leave recently viewed when `filterOutOfStockProducts` is on.** **The order details header shows when the order date is unusable.** It reads `processedAt` and leaves the date out when it does not parse. **Hiding the sort-and-filter helper text with `display: 'none'` works.** **A failed Kwikpass SDK init is caught**, and the sign-in form still becomes ready. **The post-purchase screen no longer crashes on a fulfilled item the order does not list.** **Nector blocks no longer crash.** Refer-a-friend info waits for the shopper, and wallet history renders when its theme lacks a style. **Studio's canvas shows Milo's size chart page in production too.** ## Tooling [#tooling] **`@app-brew/app-preview` is new.** It builds an app's blocks for the web, for the Studio preview, and changes nothing that ships in the app. `@app-brew/build-tools` gains the web stubs it needs. # Overview (/docs/changelog) Release notes for the lockstep `@gauntlet/*` platform: what is new, what is fixed, what breaks, and what [needs an app release](/docs/ship/app-releases) to reach users. Vertical tab bars, a total cart quantity cap, chosen screen transitions, your own items in a collection grid, Bold subscriptions, Xeno loyalty and Qwikcilver gift cards. Breaking changes for custom code that reads the state slices; native change for the iOS app update and tab bar only. Sort and filter bars under the app bar show again, push taps and mid-refresh deep links open where they point, per-product quantity limits, and Milo colour swatches. No breaking changes; native change for Android quick actions only. Faster start-up with zod schemas out of the app bundle, 23 unused blocks removed, a way back from products and collections that fail to load, and AppsFlyer deep links on the V2 tracker. Contains breaking changes; native changes for GoKwik only. App start-up back to 0.34 speed, after 0.35.0 registered every app dependency for instant code at launch. No breaking or native changes. A new bottom bar engine with the iOS 26 Liquid Glass bar, view\_item sent for every way of reaching a product, deep links and Meta ads that open where they point, and B2B wholesale prices. Contains breaking changes and native changes. Keyboard handling measured on every screen, Shopify APIs pinned to 2026-07, a launch crash on encoded deep links fixed, free-gift lines that no longer duplicate, and dependency sync for apps in their own repo. Contains breaking changes and native changes. Instant code for every app that calls app.init, a prewarm hook in brewery, and Nector loyalty tiers that render before sign-in. No breaking or native changes. BOGOS bundles and Videowise live shopping, Loyalty Lion rewards earned in the app, floating image and video banners, cart discount chips, and a build-tools resolver change for linked libraries. Native changes for Clarity and in-app update only. EasyRewardz loyalty, Nector referral claim and a rating distribution graph, move-to-wishlist from the cart, and collection lookups that return null instead of crashing. Contains breaking changes. Brewmeter, the observability SDK that owns the Sentry surface, one Shopify fetch transport that measures itself, analytics v2 event forwarding, and a sign-out that only fires on a confirmed token rejection. No native changes to the platform. Contains breaking changes for custom analytics trackers. Cart recovery from a stale customer token, an instant-code store flag, Android external links that always reach the browser, and a corrected subscription price preview. No native changes. Home-screen quick actions, remote blocks on web, order-cancel processing state, and a native web view brought in line across platforms. Contains native changes. App extension host, PLP grid density, forced and flexible in-app update, Shopify redirect deep links, and two new integrations. Contains breaking changes. Unbxd search, Judge.me review submission, wallet passes, orders-v5 fixes, and two native SDK bumps. The baseline release these notes start from. Upgrading? The workflow is at [Upgrading @gauntlet packages](/docs/ship/upgrading). # Architecture (/docs/concepts/architecture) An Appbrew app has two halves. The half you ship to the app stores is a React Native shell: navigation setup, the block registry, integration initialization, and the native modules the app needs. The half that decides what users actually see is a JSON config that lives on Appbrew's backend and is fetched when the app launches. ## The launch sequence [#the-launch-sequence] On launch, the shell fetches the app's config from Appbrew's backend and caches it locally so the app still opens offline. The config describes everything structural: * **Screens** — which screens exist and which blocks each one contains, in order * **Blocks** — for each block, its type, its data, its styling, and its behavior flags * **Theme** — shared visual styling that blocks inherit * **Settings** — global defaults that apply across block instances * **Integrations** — per-integration configuration such as API keys and feature flags The shell then sets up navigation from the config, initializes any configured integrations, and renders the first screen. ## The rendering pipeline [#the-rendering-pipeline] Each screen renders its blocks in the order the config lists them. A block entry names a `componentId`; the shell looks that id up in the block registry (a map of `componentId` to React component) and renders the matching component. The component reads its own data and styling through hooks, which in turn pull from the app store, Shopify's APIs, and Appbrew services. ```mermaid flowchart TD A[App config JSON] --> B[Screens] B --> C[Blocks, in order] C --> D[Hooks from @gauntlet/state] D --> E[Shopify APIs] D --> F[Appbrew services] ``` When a user adds to cart, searches, or opens checkout, the same hooks write back to the store, analytics events fire to every registered tracker, and the UI updates reactively. ## What you write vs what config decides [#what-you-write-vs-what-config-decides] The split has one practical consequence to hold onto before you write any code: **UI structure is config. Code defines block types.** You never hardcode "the home screen shows a hero banner above a product rail." Instead, you write (or reuse) a banner block type and a product rail block type, and the config places instances of them on the home screen in that order. Moving a block, restyling it, or removing it entirely is a config change; it ships without touching code or the app stores. Conversely, anything the config cannot express yet is a code change: a new block type, a new integration, a new native capability. That code registers itself with the shell (see [Screens and blocks](/docs/concepts/screens-and-blocks)) and then waits for the config to place it. Config changes go live when a theme is published: instantly, to every installed app. Code changes ship through an app-store release. Knowing which track a change rides on tells you how fast it can reach users. ## Where to go next [#where-to-go-next] * [Screens and blocks](/docs/concepts/screens-and-blocks) — the block contract in detail * [Config and theme](/docs/concepts/config-and-theme) — how styles and settings resolve * [State and data](/docs/concepts/state-and-data) — the hooks blocks read data through # Config and theme (/docs/concepts/config-and-theme) The app config is one JSON document with a handful of top-level entities. Everything a screen renders resolves from these, in a defined order. ## The config entities [#the-config-entities] | Entity | What it holds | | -------------- | ------------------------------------------------------------------------- | | `screens` | Every screen, keyed by `screenId`, each with its ordered block list | | blocks | Per-instance `source`, `style`, and `options`, inside each screen entry | | theme | Shared visual styling: per-block-type style entries and common style keys | | `settings` | Global defaults for `source` and `options`, keyed by block type | | `integrations` | Per-integration configuration: API keys, flags, endpoints | Blocks are not stored separately; they live inside their screen's layout. The theme and settings exist so you don't repeat the same styling and defaults on every instance. ## Style resolution [#style-resolution] When a block asks for its style (via `useBlockStyle`), three layers deep-merge, later layers winning: 1. **Theme style** — a shared theme entry the block opts into (for example, a common `product-collection` key several block types reuse). 2. **Theme block style** — the theme's entry for this block type: the key `componentId--variant` if the block has a variant and the theme defines it, otherwise `componentId`. 3. **Block style** — the instance's own `style` object from its config entry. So the theme sets the look once per block type, a variant refines it, and an individual instance overrides only what it needs. An instance with an empty `style` simply inherits the theme result. ## Settings resolution [#settings-resolution] `source` and `options` resolve the same way (via `useBlockSettings`), with global settings playing the role the theme plays for styles: 1. **Global settings** — the `settings` entry under `componentId--variant`, falling back to `componentId`. These are defaults for every instance of the type. 2. **Block settings** — the instance's own `source` and `options`, which override the globals. A block can also extend another type's settings entry (for example, a recommendations block inheriting `product-collection` defaults); those sit below the globals in the merge. As a rule of thumb, the closer a value sits to the instance, the higher its precedence. ```json { "settings": { "product-card": { "options": { "showVendor": false } } } } ``` With this global entry, every `product-card` hides the vendor, except an instance whose own `options` set `"showVendor": true`. ## Drafts and the live theme [#drafts-and-the-live-theme] An app has one **live** theme (the config installed apps actually fetch) and any number of **draft** themes. Edits always target a draft: you can restructure screens, move blocks, and change styles without affecting users. When the draft is ready, an operator publishes it, and it becomes the live config for every installed app on the next fetch. Config mistakes on the live theme reach real users immediately. Make changes on a draft, verify them, and let publishing be the deliberate step that ships them. Config changes need no app-store release because publishing a theme is a backend event that apps pick up on launch. See [Architecture](/docs/concepts/architecture) for the two release tracks, and [State and data](/docs/concepts/state-and-data) for the hooks that read these resolved values. # Overview (/docs/concepts) An Appbrew app is a config-driven React Native app. The native shell you ship to the stores is stable; the UI it renders (screens, navigation, blocks, theme, integration settings) is defined by a JSON config served from Appbrew's backend and fetched on launch. Your code plugs into this system: you write block components, register them under an id, and read data through hooks. The config decides where and how they appear. Structure lives in config; behavior lives in code. The rest of these docs assumes that split. The pages in this section build that mental model. The runtime end to end: how a remote config becomes rendered screens. Screen ids, block anatomy, render order, and the props contract every block receives. The config entities, how styles and settings resolve, and drafts vs the live theme. The app store and the hook families your code reads products, cart, and settings through. What an integration package is: blocks, a register function, a tracker, and a manifest. The @gauntlet and @app-brew scopes, the private registry, and lockstep versioning. Read them in order if you are new: each page assumes the ones before it. If you already know the model and want to build something, jump to [Build](/docs/build). # The integrations model (/docs/concepts/integrations-model) An integration is how third-party functionality (reviews, analytics, loyalty, checkout add-ons) plugs into an Appbrew app. Concretely, an integration is an **npm package** (partner-built ones publish under `@app-brew/*`; integrations Appbrew maintains for third-party services ship under `@gauntlet/*`) that can export: * **Blocks** — React components for the UI the integration adds * **A register function** — named `register{Name}Blocks`, it adds those blocks to the app's block registry so config can place them * **An analytics tracker** — a class that receives every app event and forwards it to the third-party service * **Behavior extensions** — action lifecycle hooks and module providers that change what the app does ([Extending app behavior](/docs/build/extending-app-behavior)) A package can ship any combination: a pure analytics integration exports only a tracker; a reviews integration exports blocks and their register function. Blocks reach the registry through the [`app` extension host](/docs/build/extending-app-behavior) from `@gauntlet/brewery` (platform 0.27.0 and later): ```ts import { app } from '@gauntlet/brewery' import { AcmeReviews } from '@app-brew/acme-reviews' app.components.register('block', 'acme-reviews', AcmeReviews) ``` Packages keep exporting a `register{Name}Blocks` function too: that is what the app scaffold generates and what hosts on 0.26 and earlier consume. ## The manifest [#the-manifest] Every integration package declares a manifest in its `package.json` under the `appbrew` key. The manifest makes the integration configurable without anyone reading your code. It drives the merchant-facing settings form and tells the platform how the package behaves. ```json { "name": "@app-brew/acme-reviews", "appbrew": { "settings": [ { "key": "apiKey", "title": "API key", "type": "text", "required": true, "secret": true }, { "key": "storeId", "title": "Store ID", "type": "text", "required": true } ], "configKey": "acme-reviews", "requiresNativeBuild": false, "dynamicForm": false } } ``` Mark credentials with `secret: true` so the platform handles them as secrets. ## How settings reach your code [#how-settings-reach-your-code] When a merchant fills in the form, the values are written into the app's config under `integrations.`. Your code reads them back with the settings hooks: ```tsx import { useIntegrationSettings } from '@gauntlet/state' interface AcmeReviewsSettings { apiKey: string storeId: string } const settings = useIntegrationSettings('acme-reviews') if (!settings?.apiKey) return null ``` The same values are available to trackers through the app config passed at initialization. ## `requiresNativeBuild` [#requiresnativebuild] Most integrations are pure JavaScript: enabling one is a config change, live on the next app launch. But if your package pulls in a native module (a native SDK, for instance), the app binary itself must change, so enabling it requires a **store release** rather than just a config change. Set `requiresNativeBuild: true` so the platform knows the difference. Keep integrations JS-only where you can; merchants can then adopt them instantly. ## Go deeper [#go-deeper] * [Build an integration](/docs/build/integrations) — the end-to-end workflow * [Manifest schema reference](/docs/reference/manifest-schema) — every field, exactly # The package ecosystem (/docs/concepts/package-ecosystem) Appbrew code reaches your app as npm packages under two scopes. Knowing what each scope contains, and how versions move, saves you from the most common upgrade mistakes. ## Two scopes [#two-scopes] **`@gauntlet/*` is the platform.** These packages are the runtime an Appbrew app is built from: * `@gauntlet/state` — the store and hooks ([State and data](/docs/concepts/state-and-data)) * `@gauntlet/types` — shared TypeScript types, including `BaseBlockProps` * `@gauntlet/ui-builder` — the preferred building elements for new blocks * `@gauntlet/components` — the shared component library * `@gauntlet/block-registry` — the `componentId → component` registry * `@gauntlet/brewery` — the app shell and the `app` extension host ([Extending app behavior](/docs/build/extending-app-behavior)) * per-integration packages for platform-maintained integrations **`@app-brew/*` is tooling and partner packages.** Developer tooling lives here, and so do partner-built integration packages. When you publish an integration ([The integrations model](/docs/concepts/integrations-model)), it ships under this scope. ## The private registry [#the-private-registry] Both scopes install from Appbrew's private registry at `npm.appbrew.tech`. Your repo's `.npmrc` points the scopes at it: ```ini @gauntlet:registry=https://npm.appbrew.tech/ @app-brew:registry=https://npm.appbrew.tech/ ``` The same `.npmrc` carries a read-only auth token for the registry host, committed in your repo, so a plain `pnpm install` works for everyone on the team and in CI. If installs fail with 401/403 errors on a `@gauntlet` or `@app-brew` package, the token line is the first thing to check. ## Lockstep versioning [#lockstep-versioning] All `@gauntlet/*` packages version **in lockstep**: there is one platform version, and every package publishes at it. `@gauntlet/state@0.27.0` is built against `@gauntlet/types@0.27.0`, and no other combination is tested or supported. Every package also carries its own `CHANGELOG.md`, with a section for each release, including releases where that package did not change, so you never have to guess whether a missing entry means "nothing changed" or "nobody wrote it down". The consumer-facing summary of each release lives in the [changelog](/docs/changelog). Upgrade every `@gauntlet` entry in `package.json` to the same version, as a set. A mixed tree — say, `state` ahead of `types` — produces type errors at best and subtle runtime breakage at worst. `@app-brew/*` splits in two. The Appbrew-published native modules and build tooling are **part of the same lockstep** and carry the platform version. Upgrade them with the `@gauntlet` set. Developer tools like the milo CLI, and partner-published integration packages, version independently and declare which platform versions they support. ## Packages ship TypeScript source [#packages-ship-typescript-source] `@gauntlet` packages ship **TypeScript source**, not precompiled bundles. Your app's own bundler (Metro, or Re.Pack if your app uses it) compiles them along with your code. This has practical consequences: * There is no separate build output to stay in sync with; what you install is what compiles. * Your app's TypeScript and bundler configuration must be able to process the packages, which the app template already sets up. * Stack traces and go-to-definition land in real source, which makes platform behavior easy to inspect when debugging. ## Upgrading is one atomic change [#upgrading-is-one-atomic-change] Bump every `@gauntlet` dependency in `package.json` to the new version together, reinstall, and let your bundler recompile everything. Because the packages are source, there are no stale prebuilt artifacts to chase. Native dependencies may still change between platform versions, though, so an upgrade can require a store release. The step-by-step workflow, including verifying native changes, is at [Upgrading](/docs/ship/upgrading). # Screens and blocks (/docs/concepts/screens-and-blocks) Screens and blocks are the two structural units of an Appbrew app. A screen is a named container; blocks are the components it renders, in order, from config. ## Screens [#screens] Every screen has a `screenId`: `home`, `cart`, `payment`, or an id generated for a custom screen. The config decides which screens exist, what each contains, and how it is reached (tab, route, or modal). Screens can also carry a header configuration, authentication requirements (signed-in only), modal presentation, and style overrides such as background and insets. ## Block anatomy [#block-anatomy] Each block in a screen's list is a config object: ```json { "componentId": "image-banner", "instanceId": "hero-banner-1", "source": { "item": { "src": "https://cdn.shopify.com/...", "link": { "kind": "screen", "value": "collection-123" } } }, "style": { "image": { "aspectRatio": 1.5, "resizeMode": "cover" } }, "options": { "roundness": 8 } } ``` * **`componentId`** — the block *type*. It names which React component to render, looked up in the block registry. * **`instanceId`** — unique per placement. The same block type can appear many times on a screen; each placement gets its own `instanceId` and its own config. * **`source`** — the block's data and content: images, text, product handles, links. * **`style`** — visual styling: colors, spacing, typography, aspect ratios. * **`options`** — behavior flags: feature toggles, offsets, selectors. ## How blocks render [#how-blocks-render] When a screen loads, the app walks its block list in order. For each block it: 1. Evaluates visibility rules — a block can declare a `visibility` condition (for example, based on product tags or product type) and is skipped when it doesn't match. 2. Looks up `componentId` in the block registry and renders the matching component. 3. The component reads its own `source`, `style`, and `options` through hooks (see [State and data](/docs/concepts/state-and-data)). If a `componentId` has no entry in the block registry, that block renders nothing and a console error is logged. If a block you placed in config isn't showing up, check that its type is registered in the app before debugging anything else. ## The BaseBlockProps contract [#the-baseblockprops-contract] Every block component receives the same props from the renderer. This is the real interface, from `@gauntlet/types`: ```ts import { ReactElement } from 'react' export interface BaseBlockProps { componentId: string instanceId: string screenId: string setDynamicFooter?: (element: ReactElement) => void index: number length: number } ``` * **`componentId` / `instanceId` / `screenId`** — together identify exactly which config entry this render belongs to. You pass them to hooks like `useBlock` to fetch this instance's `source`, `style`, and `options`. * **`index` / `length`** — the block's position in the screen's list and how many blocks the screen has. Useful for first/last styling such as trimming a top margin. * **`setDynamicFooter`** — optional callback a block can use to pin an element to the screen's footer. The props carry identity only: no `source`, no `style`, no `options`. Blocks fetch their own config through hooks. This keeps every block self-contained and lets the renderer stay generic. ```tsx import { BaseBlockProps } from '@gauntlet/types' import { useBlock, useBlockSettings } from '@gauntlet/state' export function MyBlock(props: BaseBlockProps) { const block = useBlock(props.screenId, props.componentId, props.instanceId) const { source, options } = useBlockSettings(block) if (!source?.title) return null // render from source, options } ``` To build one, see [Custom blocks](/docs/build/custom-blocks). # State and data (/docs/concepts/state-and-data) All app state (config, products, cart, user, navigation) lives in a single Zustand-based store. You never touch the store directly. `@gauntlet/state` exposes it through hooks, and blocks read and write everything through them. This keeps blocks decoupled from where data actually comes from: the same hook call is backed by config, Shopify APIs, or Appbrew services as appropriate, with caching handled for you. ## The hook families [#the-hook-families] The names below are the ones you will use most, grouped by what they cover. **Blocks** — a block's own config, resolved through the layers described in [Config and theme](/docs/concepts/config-and-theme): * `useBlock(screenId, componentId, instanceId)` — the block's raw config entry * `useBlockSettings(block)` — merged `source` and `options` (globals + instance) * `useBlockStyle(block)` — merged style (theme + variant + instance) **Products:** * `useProduct`, `useProductByHandle`, `useProductsByHandles` **Cart and checkout:** * `useCart`, `useAddToCart`, `useCheckout` **User:** * `useUser` — the signed-in customer and authentication state **Settings:** * `useSettings` — the app's global settings object * `useGlobalSettings` — global defaults for block types * `useIntegrationSettings` — your integration's config values (see [The integrations model](/docs/concepts/integrations-model)) **Navigation:** * `useRoute` — the current route * `useLink` — navigate to a screen, product, collection, or URL from config-style links **Shopify queries and metafields:** * `useShopifyQuery` — run a raw Storefront GraphQL query * `useMetafieldQuery`, `useMultipleMetafields` — read metafields from products and other resources **Analytics:** * `useAnalytics` — fire events to every registered tracker ## Type the result, null-check before use [#type-the-result-null-check-before-use] Hooks that fetch remote data return `null` (or `undefined`) until the data arrives, and query hooks are generic: you declare the shape you expect. Both rules together look like this: ```tsx import { useShopifyQuery } from '@gauntlet/state' interface FeaturedProductResult { product: { title: string handle: string } | null } const query = ` query { product(handle: "featured-hoodie") { title handle } } ` export function FeaturedProduct() { const data = useShopifyQuery(query) if (!data?.product) { return null } return {data.product.title} } ``` The pattern generalizes to every data hook: define an interface for the result, assert or parameterize the hook with it, and guard before rendering. Rendering `null` while data loads is correct. A block that assumes data is present crashes the screen for users on slow networks. The same discipline applies to lists: check the array exists and has items before mapping over it. Config-driven data means any field can be absent on any given app. ## Writing state [#writing-state] Mutations go through the same hooks: `useAddToCart` returns a function that adds line items, `useCheckout` starts checkout, and so on. Fire-and-forget from event handlers; the store updates and every subscribed block re-renders reactively. ## Beyond hooks: actions and events [#beyond-hooks-actions-and-events] Hooks are how your UI reads and writes. **Actions** are the layer underneath: `cart:add`, `checkout:begin`, `coupon:apply` and friends are named operations that anyone can intercept through the [`app` extension host](/docs/build/extending-app-behavior) from `@gauntlet/brewery` (platform 0.27.0 and later). `useAddToCart` runs `cart:add` for you. That matters in two directions. If you are extending someone's app (a partner integration), it is how you change behavior without touching their code. If you are calling an action yourself, note that it returns a `Result` instead of throwing, so a blocked operation hands you a reason to show the user. **On 0.26 and earlier:** the action layer isn't available. Hooks call the built-in operations directly, and a package can't intercept them; behavior changes need a change in app code. There is also `onConfigReady(cb)` for running setup once app config has landed. See [Extending app behavior](/docs/build/extending-app-behavior). ## Full reference [#full-reference] The complete hook catalog with signatures lives at [the @gauntlet/state reference](/docs/reference/packages/state). # CLI reference (/docs/reference/cli) The commands available to external developers, by group. Every command prints one JSON value to stdout (errors go to stderr with a non-zero exit). Pipe to `jq`, never scrape help text. Run everything through `pnpm exec milo …` in your repo. Setup and login are covered in [Set up milo](/docs/start/milo-setup); the config workflow in [Config with milo](/docs/build/config-with-milo). ## auth [#auth] | Command | Purpose | | --------------- | ----------------------------------------------------------------------- | | `login ` | Browser sign-in; 24h session per shop. `--pick` forces the store picker | | `logout [shop]` | End a session | | `switch ` | Point this directory at another signed-in store | | `auth status` | Session, email, and active app — offline | ## theme [#theme] | Command | Purpose | | -------------------------------- | ---------------------------------------------------------------- | | `theme list` | Live, draft, and scheduled themes | | `theme create ""` | New draft cloned from live (`--base ` to clone another) | | `theme use ` | Set the active theme for config commands (`use reset` to clear) | | `theme preview` | Preview link + QR code for the active theme | | `theme rename` / `theme archive` | Housekeeping | ## config [#config] | Command | Purpose | | --------------------------------------------------------------- | -------------------------------------------------------- | | `config pull [themeId]` | Sync the theme's config to `.milo/sync//draft/` | | `config status` | Dirty/missing/read-only state, offline | | `config show` / `entities` / `search ` | Inspect entities without opening files | | `config diff [--release]` | What changed vs the snapshot (or last release) | | `config commit ` | Save one entity (`--new` to create) | | `config create-screen ""` | Scaffold a new screen entity | | `config push` | Merge the draft into its theme | | `config refresh --force` | Re-pull one entity (conflict recovery) | | `config create-backup` / `list-backups` / `restore-backup ` | Config backups | | `config list-releases` / `restore-release ` | Released config history | ## integration [#integration] | Command | Purpose | | --------------------------------------- | --------------------------------------------------------------------------------- | | `integration catalog [term]` | Search the [integration catalog](/docs/reference/integrations) | | `integration list` | Integrations enabled on this app | | `integration info ` | Manifest and README for one integration | | `integration get ` | Its current settings (values masked; `--reveal` unmasks — treat output as secret) | | `integration add` / `update` / `remove` | Manage integration settings | | `integration backups` / `restore` | Settings history | ## blueprint [#blueprint] | Command | Purpose | | ------------------------------ | ------------------------------------------------------------------ | | `blueprint list` / `show ` | Curated theme templates usable as `theme create --blueprint` bases | ## shopify [#shopify] | Command | Purpose | | -------------------------------------- | ---------------------------------------------------- | | `shopify query` | Admin GraphQL, **read-only** (mutations are blocked) | | `shopify storefront-query` | Storefront GraphQL | | `shopify discounts` / `discount ` | Store discounts | ## push [#push] | Command | Purpose | | ----------------------------------- | -------------------------------- | | `push list` / `get` | Scheduled and sent notifications | | `push create` / `update` / `cancel` | Manage campaigns | | `push test` | Send a test push to a device | ## More groups [#more-groups] | Group | Purpose | | ----------- | ------------------------------------------------------------------------------------------------------------ | | `app` | `which`, `preflight`, `brand-context` (brand voice/colors for agent-written copy), `metadata`, `cache-clear` | | `bundle` | Remote JS bundles: `build`, `promote `, `current` | | `analytics` | `metrics` and `query` over app analytics | | `discount` | App-created discounts: `list`, `get` | | `onelink` | Smart links: `list`, `get`, `subdomains` | | `files` | Store file uploads: `list`, `upload`, `upload-icon` | | `skills` | Agent-skill management: `status`, `sync`, `list`, `get` ([Set up milo](/docs/start/milo-setup)) | A command that answers ` is not available` is outside the external surface — nothing is broken. If you believe you need it, [contact Appbrew](/docs/start/getting-help). # Overview (/docs/reference) The reference covers what ships: exports, settings, schemas. How to build with it lives in [Build](/docs/build). The @gauntlet packages you build against, with versions and export surfaces. Every integration the platform ships, with its merchant-facing settings. Field-by-field reference for the integration manifest. Every method a web page can call on the app it is running inside. ## How this section is maintained [#how-this-section-is-maintained] Package versions, the integration catalog, and export tables are **generated from the platform source** at publish time — they cannot drift from what actually ships. Current platform version: the one shown in [Packages](/docs/reference/packages). Curated prose around the generated data is written by hand. Machine-readable versions of every page exist for AI agents. See [For AI agents](/docs/ai). # Manifest schema (/docs/reference/manifest-schema) Every integration package declares a manifest under the `appbrew` key of its `package.json`. The manifest is what surfaces your integration to merchants: the settings form they fill in, where those values land in app config, and whether enabling the integration needs an app release. [The integrations model](/docs/concepts/integrations-model) explains how it fits together. ## Manifest fields [#manifest-fields] ## Setting fields [#setting-fields] Each entry in `settings`: ## A complete example [#a-complete-example] ```json title="package.json" { "name": "@app-brew/acme-reviews", "appbrew": { "configKey": "acme-reviews", "requiresNativeBuild": false, "settings": [ { "key": "apiKey", "title": "API key", "type": "text", "secret": true }, { "key": "storeId", "title": "Store ID", "type": "text" }, { "key": "widgetPosition", "title": "Widget position", "type": "select", "required": false, "options": [ { "id": "above-description", "label": "Above description" }, { "id": "below-description", "label": "Below description" } ] } ] } } ``` Your code reads the values merchants enter through `useIntegrationSettings('')`. See [Build an integration](/docs/build/integrations). ## Validating [#validating] Validate your manifest with the platform schema before publishing: ```ts import { IntegrationManifestSchema } from '@gauntlet/schemas' IntegrationManifestSchema.parse(require('./package.json').appbrew) ``` # Web SDK (/docs/reference/web-sdk) The Web SDK is the JavaScript API a web page uses to call the Appbrew app it is running inside. For a walkthrough, start with [the Web SDK guide](/docs/build/web-sdk). This page is the surface. ```html ``` The script defines `window.appbrewSDK` and nothing else on `window`. It is untyped JavaScript with no build step and no npm package. ## Methods [#methods] | Method | Returns | Waits for the app | | ---------------------------------------------------------- | ------------------------ | ----------------- | | [`isApp()`](#isapp) | `boolean` | no, synchronous | | [`getUserDetails()`](#getuserdetails) | `Promise` | yes, 5 s | | [`addToCart(handle, variantId, quantity)`](#addtocart) | `Promise` | yes, 5 s | | [`addMultipleItemsToCart(items)`](#addmultipleitemstocart) | `Promise` | yes, 5 s | | [`gotoLink(link)`](#gotolink) | `Promise` | no | | [`goBackInApp()`](#gobackinapp) | `Promise` | no | | [`sendEvent(event, data)`](#sendevent) | `Promise` | no | | [`signout()`](#signout) | `Promise` | yes, 5 s | `isApp()` is synchronous. The three methods that do not wait are declared `async`, so they return a promise, but it resolves immediately with `undefined` and carries no information about whether the app acted. There is nothing useful to `await`. Every method except `isApp()` returns `undefined` when the bridge is absent, after logging to the console. Check `isApp()` first. ## isApp [#isapp] ```ts isApp(): boolean ``` `true` when the app's bridge is present on the page. Equivalent to `typeof window.appbrew !== 'undefined'`. ## getUserDetails [#getuserdetails] ```ts getUserDetails(): Promise ``` Asks the app for the signed-in customer. Resolves within five seconds in every case, and never rejects. The result is one of two shapes. On success the app sends every field below. On timeout the SDK synthesises `{ status: 'error', message: 'Could not fetch user details' }` and **nothing else** — `isLoggedIn`, `customerAccessToken`, `customer` and `tags` are absent, not null. Branch on `status` before reading anything else. ```ts type UserDetails = | { status: 'success' isLoggedIn: boolean customerAccessToken: string | null customer: Customer | null tags: string[] } | { status: 'error'; message: string } ``` The success arm: `Customer`: `Address` carries `id`, `address1`, `address2`, `city`, `province`, `country`, `countryCodeV2`, `zip`, `firstName`, `lastName`, and `phone`. Every one of them is `string | null`. The app serves a cached profile and only fetches when the cache is empty, so an edit made elsewhere may not be reflected until the next fetch. ## addToCart [#addtocart] ```ts addToCart( handle: string, variantId: string, quantity: number ): Promise ``` Adds one item to the app's cart. `variantId` is a Shopify variant global id. The handle is sent along but the app ignores it: items are added by variant. ```ts type CartResult = { status: 'success' | 'error'; message: string } ``` `status` is `'error'` only when the app did not confirm within five seconds. Success is weaker than it looks: the app replies once it has finished handling the request, and an error on its side still resolves as `'success'`. A rejected or out-of-stock variant produces silence, and therefore a timeout. Re-read the cart rather than trusting either answer. ## addMultipleItemsToCart [#addmultipleitemstocart] ```ts addMultipleItemsToCart(items: CartItem[]): Promise ``` Adds several items in one cart update. Same result shape and same timeout as `addToCart`. ```ts type CartItem = { handle?: string // ignored variantId: string quantity: number sellingPlanId?: string customAttributes?: Record | Array<{ key: string; value: string }> } ``` ## gotoLink [#gotolink] ```ts gotoLink(link: Link): Promise ``` Hands navigation to the app. Returns before the app has done anything. ```ts interface Link { kind: string value: string params?: Record external?: boolean } ``` ### Link kinds [#link-kinds] | `kind` | `value` | Result | | ------------ | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `product` | product handle | Native product screen | | `collection` | collection handle, or a global id | Native collection screen | | `cart` | `'cart'` | The cart screen | | `screen` | screen name | That screen, with `params` | | `page` | page name | That page, with `params` | | `url` | a URL | Opens the matching native screen when the URL resolves to one, otherwise the app's webview. Goes to the device browser when `external` is true, or when the value is not an `http(s)` URL | | `share` | the message | The device share sheet | | `back` | any non-empty string | Goes back one screen | Anything else is treated as a screen name. A `value` is always required. `gotoLink` returns without doing anything when `kind` or `value` is empty, including for `back` and `cart`, where the value is otherwise unused. Three `screen` values behave specially: * `default-signin` resolves to whichever sign-in screen this app is configured to use, which is the right way to open sign-in from a page. A hard-coded `'signin'` is wrong for apps that use a different one. * `search` is ignored unless `params.searchQuery` is long enough to search for. * `notifications-inbox` opens the push provider's inbox rather than navigating to a screen. `kind: 'product'` and `kind: 'screen'` with `value: 'products'` reach the same screen. The first is shorter; the second lets you pass extra `params`. ```js window.appbrewSDK.gotoLink({ kind: 'product', value: 'blue-tee' }) window.appbrewSDK.gotoLink({ kind: 'screen', value: 'products', params: { productHandle: 'blue-tee' }, }) ``` ## goBackInApp [#gobackinapp] ```ts goBackInApp(): Promise ``` Pops the current screen, returning the shopper to wherever they were before your page. ## sendEvent [#sendevent] ```ts sendEvent(event: string, data?: Record): Promise ``` Forwards an event to every analytics tracker the app has configured. Use one of the platform's own event names to join the app's existing funnel, or your own name for something only your page emits. ```js window.appbrewSDK.sendEvent('viewed_loyalty_page', { tier: 'gold' }) ``` ## signout [#signout] ```ts signout(): Promise ``` Signs the customer out of the app, exactly as the app's own sign-out button does: the access token is revoked, and the profile, cart, and webview cookies are cleared. Never rejects. While your page is still loaded, it resolves once the app has finished, or after five seconds. Your page may not survive the call. A web-view block shown only to signed-in customers is removed the moment the app signs out, and apps using GoKwik sign-in also reset navigation to the home screen. Either way your page is unloaded before the reply arrives, so the promise never settles and nothing after the `await` runs. ```ts type SignoutResult = { status: 'success' | 'error'; message: string } ``` `'success'` means the app is signed out. It is also what you get when nobody was signed in. `'error'` only means the app did not reply in time, which usually means it is older than 0.37.0. Signing out on your site ends only the web session. The app keeps its own session, and your page will see the customer signed in again the next time it calls `getUserDetails()`. Call `signout()` alongside your own sign-out, and make it the last thing you do: ```js await fetch('/account/logout', { credentials: 'same-origin' }) if (window.appbrewSDK?.isApp()) { await window.appbrewSDK.signout() // Runs only when the page survived the sign-out. window.appbrewSDK.gotoLink({ kind: 'screen', value: 'home' }) } ``` Finish your own clean-up before calling `signout()`, since it may be the last line of your code that runs. Do not call `gotoLink` first either: the navigation can unload your page before the sign-out message is sent. ## Failure and timeouts [#failure-and-timeouts] Nothing here rejects, and the app never sends an error. The four methods that wait resolve with `{ status: 'error' }` five seconds after a call that got no reply. A timeout means one of: * The app is older than the action you called. Unknown actions are dropped silently. * The page is not rendered by a web-view block, so nothing is listening. * The underlying operation failed, and the app reports failure by staying quiet. Distinguishing them from the page is not possible. See [version gates](/docs/build/webview-contract#version-gates). ## Live sample [#live-sample] A page exercising every method is published at [solutions.appbrew.tech/web-sdk/appbrew-sdk-sample](https://solutions.appbrew.tech/web-sdk/appbrew-sdk-sample). Open it inside an app to see real payloads for that app's configuration. # App releases (/docs/ship/app-releases) You build in your app repo; **Appbrew runs the releases**. You do not need fastlane, signing certificates, or store-submission tooling on your machine. The release pipeline builds from your repo's default branch, signs, and submits to both stores. ## One-time setup [#one-time-setup] * **App Store**: Appbrew needs access to your App Store Connect app. Usually an admin invites Appbrew's release account, or provides an API key for your Apple account. Your Appbrew contact will tell you which applies. * **Play Store**: access to the app in your Play Console. * **Signing custody**: Appbrew holds the Android keystore and manages iOS certificates and provisioning profiles for the app. You do not commit or handle signing material. ## Requesting a release [#requesting-a-release] 1. Land your changes on the repo's default branch and verify them locally ([Testing your work](/docs/build/testing)). 2. Ask your Appbrew contact for a release, stating the platform(s) and anything the release notes should call out. 3. Appbrew builds, bumps the app version, submits, and confirms back, including store-review timelines when Apple or Google review applies. Native changes — a new dependency with native code, an integration marked `requiresNativeBuild`, changes under `ios/` or `android/` — always need a store release. App **config** changes (screens, blocks, theme) ship when the theme is published from the dashboard and need no release at all. ## Versioning [#versioning] The release pipeline manages app versions. Don't bump version numbers in the repo yourself. If a release must align with a marketing date or a platform upgrade ([Upgrading](/docs/ship/upgrading)), say so when you request it. # Overview (/docs/ship) Shipping on Appbrew means one of two things, depending on your track: You are a merchant dev. Your app changes reach the App Store and Play Store through releases Appbrew runs for you. You are a partner dev. Your integration ships as a versioned package to Appbrew's registry, then Appbrew enables it for merchants. Both tracks share two pages worth knowing early. [Registry access](/docs/ship/registry-access) covers how installs and publishes authenticate; [Troubleshooting](/docs/ship/troubleshooting) is for when something refuses to build. # Publishing your package (/docs/ship/publishing-packages) Your integration ships as a versioned npm package to Appbrew's private registry. Publishing is automated in your repo: you choose a version bump, the workflow does the rest. You never publish from your laptop and you never handle a publish token. ## Before you publish [#before-you-publish] Run through the [pre-handoff checklist](/docs/build/testing): both platforms verified, config states covered, manifest settings documented, README current. ## The release flow [#the-release-flow] ### Land your changes [#land-your-changes] Merge your work to the repo's main branch through your normal review flow. ### Run the Release workflow [#run-the-release-workflow] In your repo: **Actions → Release → Run workflow**, choosing a bump: `patch` for fixes, `minor` for new capabilities, `major` for breaking changes to your own API or settings schema. Your repo ships one of two supported release flows. Some push the version bump directly, others open a release pull request to merge. Your repo's `RELEASING.md` states which one it uses; the choice changes nothing about the outcome. ### The publish happens automatically [#the-publish-happens-automatically] The workflow verifies the version, publishes the package to `npm.appbrew.tech` with Appbrew-held credentials, tags the release, and creates a GitHub release. If the version already exists, the publish is refused. Versions are immutable. ### Tell Appbrew [#tell-appbrew] Notify your Appbrew contact that the new version is up, with a line on what changed. Appbrew bumps the pin in the consuming merchant app(s) and ships it — through a store release when your package [requires a native build](/docs/reference/manifest-schema), otherwise with the next scheduled release. ## How platform releases reach you [#how-platform-releases-reach-you] The flow runs the other way too: Appbrew periodically releases new lockstep `@gauntlet/*` versions. Your sample app pins one platform version; when Appbrew asks you to validate against a newer one, bump the whole `@gauntlet` set in the sample app ([never mixed](/docs/concepts/package-ecosystem)), reinstall, and re-run your integration's flows. Declare the platform versions your package supports in `peerDependencies` ([Versioning and compatibility](/docs/ship/versioning-and-compat)). # Registry access (/docs/ship/registry-access) `@gauntlet/*` and `@app-brew/*` packages install from Appbrew's private registry at **`npm.appbrew.tech`**. Everything else installs from the public npm registry as usual. Your repo arrives with this fully configured. Knowing what it sets up lets you debug it and reuse it in your own CI. ## What your .npmrc does [#what-your-npmrc-does] Your repo's committed `.npmrc` does three things: 1. **Routes the two scopes** to the private registry (`@gauntlet:registry` and `@app-brew:registry` pointing at `https://npm.appbrew.tech/`). 2. **Authenticates** with a **read-only token**. Repos Appbrew provisions for you carry it committed alongside the routing: it can install packages and nothing else, which is why committing it is safe. Every clone and every CI run installs without per-machine setup. If your repo has the routing but no token line, ask Appbrew for one and add it. 3. **Pins `node-linker=hoisted`** — a build requirement, not an auth concern. [Do not change it](/docs/ship/your-app-repo). ## Using it in your own CI [#using-it-in-your-own-ci] Nothing extra is needed: the committed token authenticates CI installs the same way it does your laptop. Keep using `pnpm install` (the repo's lockfile and linker settings assume pnpm). If your organization requires secrets to live in CI configuration instead of the repo, set the token via an environment override rather than editing `.npmrc`. Ask your Appbrew contact for the current recommended override for your setup. ## When installs fail with 401 or 403 [#when-installs-fail-with-401-or-403] The token has been rotated, or your repo never carried one. [Contact Appbrew](/docs/start/getting-help) for a fresh token; it arrives as a repo update or a line to paste. Until then, installs of `@gauntlet`/`@app-brew` packages fail while public packages keep working. That's the giveaway. ## Read vs publish [#read-vs-publish] The committed token is read-only. Publishing (for partner packages) happens only inside your repo's Release workflow with Appbrew-held credentials ([Publishing your package](/docs/ship/publishing-packages)). There is nothing to configure and no publish token to request. # Troubleshooting (/docs/ship/troubleshooting) The failures below account for most first-week problems. Each entry leads with the error you will actually see. ## Installs [#installs] ### `401 Unauthorized` / `403 Forbidden` from npm.appbrew\.tech [#401-unauthorized--403-forbidden-from-npmappbrewtech] The committed registry token was rotated. See [Registry access](/docs/ship/registry-access). Public packages keep installing fine while `@gauntlet/*` fails. ### `ERR_PNPM_NO_MATCHING_VERSION` on a `@gauntlet` package [#err_pnpm_no_matching_version-on-a-gauntlet-package] Your `package.json` set is mixed — one entry points at a version that doesn't exist or doesn't match the rest. Make every `@gauntlet/*` pin identical ([Upgrading](/docs/ship/upgrading)). ### Wrong Node or pnpm version errors [#wrong-node-or-pnpm-version-errors] Another version manager (nvm, asdf, corepack) is shadowing mise. Run `mise install` inside the repo and check `which node` resolves through mise ([Prerequisites](/docs/start/prerequisites)). If mise prompts about an untrusted config, run `mise trust`. ## Android [#android] ### App crashes on launch with `couldn't find DSO to load` / missing `.so` library [#app-crashes-on-launch-with-couldnt-find-dso-to-load--missing-so-library] `node_modules` was installed without the hoisted layout — usually `node-linker=hoisted` was removed from `.npmrc`, or the install ran with npm/yarn instead of pnpm. Restore the setting, delete `node_modules`, reinstall with pnpm, rebuild. ### Gradle build fails after an upgrade [#gradle-build-fails-after-an-upgrade] Stop stale daemons and rebuild clean: ```bash cd android && ./gradlew --stop && cd .. pnpm run-android ``` ## iOS [#ios] ### Pod install fails or the build breaks after an upgrade [#pod-install-fails-or-the-build-breaks-after-an-upgrade] ```bash pnpm clean-ios pnpm run-ios ``` This resets Pods and reinstalls them against the current dependency set. Xcode version drift is the other usual suspect — check [Prerequisites](/docs/start/prerequisites). ### `xcodebuild` cannot find a simulator [#xcodebuild-cannot-find-a-simulator] Open Xcode once after install/update to accept licenses and download a simulator runtime, then boot a simulator from Xcode before `pnpm run-ios`. ## The JS bundle [#the-js-bundle] ### Changes don't show up / stale code runs [#changes-dont-show-up--stale-code-runs] Reset the bundler cache: ```bash pnpm start --reset-cache ``` ### Red screen: block renders nothing or crashes [#red-screen-block-renders-nothing-or-crashes] A missing registry entry logs ` is missing in block registry` and renders nothing — check `register-blocks.ts`. A crash inside your block usually means unguarded config access. [Fail soft](/docs/build/testing) and null-check `useBlockSettings` results. ## Still stuck? [#still-stuck] [Contact Appbrew](/docs/start/getting-help) with the exact command, the full error output, and your platform — that combination usually gets a same-day answer. # Upgrading @gauntlet packages (/docs/ship/upgrading) Platform upgrades are deliberate events, not routine dependency bumps. All `@gauntlet/*` packages [version in lockstep](/docs/concepts/package-ecosystem), so you move the whole set to one new version, verify, and release. ## Check the changelog [#check-the-changelog] Read the [changelog](/docs/changelog) for every version between yours and the target. Look specifically for breaking changes and native-dependency changes. The latter decide whether this upgrade needs a store release. ## Bump the whole set [#bump-the-whole-set] Update **every** `@gauntlet/*` entry in `package.json` to the target version, plus the Appbrew-published `@app-brew/*` native modules and build tooling, which carry the same platform version. Then: ```bash pnpm install ``` Never leave a mixed set. One package ahead of the rest is unsupported. ## Rebuild native projects [#rebuild-native-projects] ```bash pnpm clean-ios && pnpm run-ios pnpm run-android ``` iOS pod installs and Android Gradle builds pick up native changes here. If either fails, check [Troubleshooting](/docs/ship/troubleshooting) before assuming the upgrade is broken. ## Verify the app [#verify-the-app] Boot on both platforms and walk the core flows: home, product page, add to cart, checkout entry, plus every custom block and integration your app relies on. Custom blocks compile against the new `@gauntlet/types` — fix any type errors they surface. Two removals bite at compile time: the PLP product-card registration helpers are gone (register cards by variant instead), and a custom `ICatalogProvider` now needs three more methods. Details in the [0.27.0 notes](/docs/changelog/0-27-0#breaking). ## Release [#release] If the upgrade changed native code (it usually does), [request a store release](/docs/ship/app-releases). Config-only follow-ups ship from the dashboard as usual. Appbrew will tell you when a platform version matters for your app: a fix you need, an integration you want, or a deprecation. You don't have to take every release. When you do upgrade, move the whole set. # Versioning and compatibility (/docs/ship/versioning-and-compat) Two version streams matter to a partner package: the platform's lockstep `@gauntlet/*` version, and your package's own semver. ## Current platform versions [#current-platform-versions] {/* generated:begin compat-matrix */} | Platform (`@gauntlet/*`) | React Native | React | Node | pnpm | | ------------------------ | ------------ | ------ | ------- | ------- | | 0.39.0 (current) | 0.81.0 | 19.1.0 | 24.22.1 | 11.21.0 | {/* generated:end */} Merchant apps in the field may run older platform versions than the current one. Your Appbrew contact can tell you which versions your target merchants are on. ## Declaring compatibility [#declaring-compatibility] Declare the `@gauntlet` packages you import as **peerDependencies with a floor**, not exact pins and not wildcards: ```json title="packages/your-integration/package.json" { "peerDependencies": { "@gauntlet/state": ">=0.26.0", "@gauntlet/types": ">=0.26.0", "@gauntlet/analytics": ">=0.26.0" } } ``` The floor is the oldest platform version you have actually tested against. Raise it when you start depending on newer platform APIs. That is a `minor` bump of your package at minimum. **0.27.0 is your real floor** if you use the `app` extension host (`app.actions.extend`, `app.components.register`), the `Result` helpers, or implement a custom `ICatalogProvider` — the interface gained required methods in that release. See the [0.27.0 notes](/docs/changelog/0-27-0#breaking). ## What platform bumps mean for you [#what-platform-bumps-mean-for-you] The platform is versioned `0.x`: expect that **any platform release can contain breaking changes**, and read the [changelog](/docs/changelog) for each one. When Appbrew asks you to validate against a new platform version: 1. Bump the whole `@gauntlet` set in your sample app to the new version. 2. Re-run your integration's flows ([Testing your work](/docs/build/testing)). 3. If nothing changed for you, raise nothing; your floor still holds. If you adapted code, raise the floor and release. ## Your own semver [#your-own-semver] * **patch** — fixes, no behavior or settings change. * **minor** — new capabilities, new optional settings, raised platform floor. * **major** — anything a merchant or Appbrew must act on: removed/renamed settings, changed block ids, changed event payloads. Versions are immutable once published. There is no unpublish. Fix forward with a patch. # Inside your app repo (/docs/ship/your-app-repo) Your app repo is a standalone React Native project wired to the Appbrew platform. Knowing what each piece does, and what is safe to change, keeps upgrades and releases painless. ## The layout [#the-layout] ## Yours to change [#yours-to-change] * **`src/app/`** — your code: `App.tsx` composition, `register-blocks.ts`, and your custom blocks ([Custom blocks](/docs/build/custom-blocks)). * **`packages/`** — local packages you build, consumed as `workspace:*`. * **`.env`** — which store/app config the dev build points at ([Run your app](/docs/start/run-your-app)). ## Platform-managed files [#platform-managed-files] * **`package.json` dependency pins** — every `@gauntlet/*` entry is pinned to one exact platform version. Bump them only as a full set ([Upgrading](/docs/ship/upgrading)). * **`.npmrc`** — the registry wiring and the committed read token ([Registry access](/docs/ship/registry-access)), plus `node-linker=hoisted`. React Native's native build steps expect a hoisted `node_modules` layout. Removing `node-linker=hoisted` (or installing with a different package manager) produces Android builds that fail at runtime with missing native libraries — an error that looks nothing like its cause. * **`patches/`** — dependency patches applied on install. Removing one breaks the build in non-obvious ways. * **`ios/` and `android/`** — the native projects. You'll rarely edit these; integrations that need native changes usually arrive through a platform upgrade or an Appbrew-run change. * **`mise.toml`** — pinned toolchain versions; edit only when Appbrew tells you the platform moved. * **Bundler config** (`metro.config.js` / `rspack.config.mjs`) and `tsconfig` — preconfigured so `@gauntlet` source packages compile; treat as platform files. ## One version at a time [#one-version-at-a-time] The repo always represents one consistent platform version: pinned `@gauntlet` set, matching toolchain, matching native projects. The [release pipeline](/docs/ship/app-releases) builds exactly what your default branch describes, which only works if the repo stays internally consistent. # Getting help (/docs/start/getting-help) Developer support runs through your **Appbrew point of contact**: the person or shared Slack channel you were given when your repo was provisioned. That channel is the right place for anything in these docs; there is no separate developer ticket system. For **merchant dashboard questions** that aren't about code (editing themes, managing screens, store settings), use the merchant help center at [help.appbrew.com](https://help.appbrew.com) instead. ## Getting access [#getting-access] Everything starts with your repo, and repos are provisioned by Appbrew. Nothing here is self-serve. Three steps: 1. **If you have a Shopify store** (your own, or your product's demo store), install the [Appbrew mobile app builder](https://apps.shopify.com/mobile-app-builder-appbrew) on it. 2. **Send Appbrew**: the store's `.myshopify.com` domain, and the GitHub usernames that need repo access. 3. **You receive**: an invite to your repo, ready to run, with the `.env` preconfigured for your store and registry access already committed. Partners without a store are set up against a shared demo store instead, so you can start with no Shopify account at all. From there the [merchant quickstart](/docs/start/merchant-quickstart) or [partner quickstart](/docs/start/partner-quickstart) takes over. ## What to include in a report [#what-to-include-in-a-report] A report Appbrew can act on immediately has five things: 1. **Repo and branch** you're on. 2. **The exact command** you ran, copy-pasted. 3. **The full error text** — the whole output as text, not a screenshot of the last line. The real error is often far above the final message. 4. **Platform**: iOS or Android, simulator or device, and your macOS/Xcode or Android Studio version if the failure is a native build. 5. **What changed** since it last worked — a dependency bump, a pulled branch, a new machine. Before reporting a build failure, check [Troubleshooting](/docs/ship/troubleshooting). The common ones have known fixes. ## Problems that need Appbrew's side [#problems-that-need-appbrews-side] Some things you cannot fix locally. Ask straight away for: * **Registry 401s** — `pnpm install` failing against `npm.appbrew.tech` with a 401 means your repo's read-only token has been rotated (or was never added). Appbrew issues a fresh one; see [Registry access](/docs/ship/registry-access). * **Access requests** — a repo you don't have yet, Appbrew dashboard access, or (for partners) access to the sample app repo. None of these are self-serve. * **Release questions** — store submissions, build pipelines, and release timing are coordinated with Appbrew; see [App releases](/docs/ship/app-releases). * **Enabling a partner integration** — after [publishing your package](/docs/ship/publishing-packages), Appbrew flips it on for merchant apps. ## What you can expect back [#what-you-can-expect-back] State clearly what you need (a token, access, an answer, a fix) and whether you're blocked. Blocked-on-Appbrew items (tokens, access) are usually quick. Debugging help moves at the speed of the detail in your report. Reach Appbrew through the contact or Slack channel you were given. If you've lost the thread, whoever set up your repo access can reconnect you. # Overview (/docs/start) Appbrew apps are config-driven React Native apps. The screens, blocks, theme, and navigation come from app config served by the Appbrew backend; the code in your repo renders that config and extends it with custom blocks, features, and integrations. There are two ways to develop on Appbrew. Pick the track that matches you. ## The two tracks [#the-two-tracks] You work on a store's own app. Appbrew provisions a dedicated app repo for your store; you clone it and build custom blocks, screens, and features that ship in your app's releases. You build an integration other merchants can enable. Appbrew shares a sample app repo with you; you develop an integration package inside it, publish the package, and Appbrew enables it for merchant apps. **Merchant app developers** own one app. Your repo arrives ready to run: registry access is committed, dependencies are pinned, and the `.env` already points at your store's config. Everything you build lives in the repo and ships with the app. **Partner integration developers** build a package, not an app. The sample app is your host: it runs against a demo store out of the box, so you need no Shopify account to start. Your integration lives in `packages//` as a workspace package, and the finished result is published to a registry so any merchant app can depend on it. ## First hour, both tracks [#first-hour-both-tracks] Both tracks follow the same first hour: 1. Install the toolchain — see [Prerequisites](/docs/start/prerequisites). One tool (`mise`) installs everything pinned by the repo. 2. Clone the repo Appbrew gave you and run `mise install` then `pnpm install`. 3. Boot the app with `pnpm run-ios` or `pnpm run-android` — see [Run your app](/docs/start/run-your-app). From there the tracks diverge: merchants go on to [building custom blocks](/docs/build/custom-blocks), partners go on to [building integrations](/docs/build/integrations). Both tracks start from a repo Appbrew provisions for you. If you don't have one, [contact Appbrew](/docs/start/getting-help) before going further — there is no self-serve path to create one. ## If you get stuck [#if-you-get-stuck] [Getting help](/docs/start/getting-help) covers how to reach Appbrew, what to include in a report, and which problems (registry 401s, access requests, release questions) need Appbrew's side to fix. # Merchant quickstart (/docs/start/merchant-quickstart) Appbrew provisions a dedicated app repo for your store and hands you access. The repo arrives ready to run: dependencies are pinned and the `.env` already points at your store's app config. Access to Appbrew's shared libraries (`@gauntlet/*`, `@app-brew/*` on `npm.appbrew.tech`) is configured in the repo's `.npmrc` with a read-only token, so `pnpm install` works with no per-machine registry setup. If it returns a 401, see [Registry access](/docs/ship/registry-access). There is no self-serve or from-scratch path — see [Getting access](/docs/start/getting-help#getting-access): install the Appbrew app on your store, share the domain and GitHub usernames, and your repo gets provisioned. ## 1. Clone your repo [#1-clone-your-repo] Clone the repo Appbrew shared with you: ```bash git clone git@github.com:/.git cd ``` ## 2. Install the toolchain and dependencies [#2-install-the-toolchain-and-dependencies] Install [mise](/docs/start/prerequisites) first if you haven't, then: ```bash mise install # pinned Node, pnpm, Ruby, JDK (run `mise trust` if prompted) pnpm install ``` If `pnpm install` returns a **401** from `npm.appbrew.tech`, the committed registry token has been rotated — see [Registry access](/docs/ship/registry-access) and ask Appbrew for a fresh one. ## 3. Run the app [#3-run-the-app] ```bash pnpm run-ios ``` Installs pods, builds, and launches on a simulator. Start an emulator from Android Studio (or connect a device), then: ```bash pnpm run-android ``` You should see your store's app boot with its real home screen, navigation, and products, all rendered from the app config served by the Appbrew backend. [Run your app](/docs/start/run-your-app) explains what the dev server does, how hot reload works, and the common first-run failures. ## Where next [#where-next] Write a React Native block, register it, and place it on a screen from the Appbrew dashboard. Wire Appbrew's CLI into your coding agent to work with app config and place blocks. How the repo is laid out, what you own versus what Appbrew updates, and how releases work. # Set up milo (/docs/start/milo-setup) **milo** is Appbrew's CLI for driving an app workspace: themes, config, integrations, push notifications, analytics. It's built to be used by you *and* by your coding agent. `milo setup` installs an Appbrew-aware skill into **Claude Code, Codex, Cursor, or pi**, so your agent knows the full command surface, the config model, and the safety rules (like never editing the live theme) before you ask it to do anything. Every milo command prints a single JSON value to stdout, which is what makes it reliable for agents and scripts alike. ## Install and wire your agent [#install-and-wire-your-agent] milo ships as a devDependency in your repo. `pnpm install` already put it in place. Wire it into the agents you use: ```bash MILO_PROFILE=external pnpm exec milo setup --targets claude-code,codex --yes pnpm exec milo skills status ``` * `--targets` accepts `claude-code`, `codex`, `cursor`, and `pi` (Cursor supports project scope only). * The generated skill files (e.g. `.claude/skills/`) are git-ignored on purpose. They are rendered per user and kept current automatically: milo re-syncs them whenever its version or content drifts. * Keep `MILO_PROFILE=external` exported (your shell profile or the repo `.env`). It pins the external command surface for every invocation. ## Sign in [#sign-in] ```bash pnpm exec milo login your-store.myshopify.com ``` This opens a browser sign-in and stores a session for 24 hours. Which app you operate on comes from `APP_ID`, already set in your repo's `.env`, so after login, commands just work. `pnpm exec milo auth status` shows who you are and which app is active, offline. ## What you'll use it for [#what-youll-use-it-for] Edit app config as code on draft themes: pull, edit, commit, push. The full external command surface: themes, config, integrations, push, analytics, Shopify queries. Once wired, you can ask your agent things like *"create a draft theme, add my promo-banner block under the hero on the home screen, and push it"*. # Partner quickstart (/docs/start/partner-quickstart) As a partner you build an **integration package**: blocks, trackers, and settings that merchant apps can enable. You develop it inside a host app repo that Appbrew shares with you, then publish the package so merchant apps can install it. ### Clone your host app repo [#clone-your-host-app-repo] Clone the repo Appbrew shared with you: either a copy of the Appbrew **sample app**, or a **dedicated app provisioned for your product** (with your own store, this app can even ship to the stores as your product's showcase). Either way it arrives ready. The `.env` points at a store (the shared demo store, or yours), so the app runs against real config immediately. No repo yet? See [Getting access](/docs/start/getting-help#getting-access). ### Install and run [#install-and-run] With the [toolchain installed](/docs/start/prerequisites): ```bash mise install pnpm install pnpm run-ios # or pnpm run-android ``` See [Run your app](/docs/start/run-your-app) for what the dev server does and common first-run issues. ### Scaffold your integration package [#scaffold-your-integration-package] ```bash pnpm create-integration ``` This creates `packages//` with a `package.json` and a `src/index.ts` to export from. The folder is a pnpm workspace member, and the host app consumes it as a `workspace:*` dependency, so edits to your package source hot-reload in the running app. Run `pnpm install` once after scaffolding. ### Build your blocks and trackers [#build-your-blocks-and-trackers] Develop in `packages//src/`. Start with the [Build section](/docs/build): [custom blocks](/docs/build/custom-blocks) for UI that renders on screens, [analytics trackers](/docs/build/analytics-trackers) for event forwarding, and the [integration model](/docs/build/integrations) for how it all fits together. ### Test in the app [#test-in-the-app] Import your package by name in the host app (wire blocks into `src/app/register-blocks.ts`, setup code into `src/app/App.tsx`) and exercise it on the simulator against the demo store's config. See [Testing](/docs/build/testing). ### Publish your package [#publish-your-package] When it works end to end, publish it under your npm scope so merchant apps can install it. See [Publishing packages](/docs/ship/publishing-packages). ### Appbrew enables it for merchants [#appbrew-enables-it-for-merchants] Tell your Appbrew contact the package is ready. Appbrew enables the integration for merchant apps, and the settings you declared in your [manifest](/docs/reference/manifest-schema) appear in the merchant dashboard for merchants to configure. Once you're running, [set up milo](/docs/start/milo-setup): the Appbrew CLI your coding agent uses for app config, blocks on screens, and integrations. # Prerequisites (/docs/start/prerequisites) You need a Mac. iOS builds require macOS and Xcode; Android builds also work best on the same machine, so all instructions here assume macOS. The toolchain (Node, pnpm, Ruby, Java) is managed by [mise](https://mise.jdx.dev). Your repo ships a `mise.toml` that pins the exact versions the app is built with, so you never install Node or pnpm by hand or match version numbers from a doc. ## 1. Install mise [#1-install-mise] ```bash brew install mise ``` Activate it in your shell if you haven't before. Follow the [activation step](https://mise.jdx.dev/getting-started.html) for zsh or bash. ## 2. Install the pinned toolchain [#2-install-the-pinned-toolchain] From the root of your cloned repo: ```bash mise trust # first time only, if prompted mise install ``` This reads `mise.toml` and installs the pinned Node, pnpm, Ruby, and JDK. It also exports the environment the build expects, including `ANDROID_HOME` pointing at the standard SDK location (`~/Library/Android/sdk`). Some repos also define a one-shot task that combines toolchain install with dependency install: ```bash mise run bootstrap ``` ## 3. iOS: Xcode and CocoaPods [#3-ios-xcode-and-cocoapods] Install **Xcode** from the Mac App Store and make sure at least one **iOS simulator runtime** is downloaded (Xcode → Settings → Components). `run-ios` fails if no iPhone simulator exists. Then accept the license: ```bash sudo xcodebuild -license accept ``` CocoaPods is installed through Bundler using the `Gemfile` in your repo. **Never install it globally**: the repo's Podfile carries patches that only apply through the pinned version. The `pnpm run-ios` script runs pod install for you; to run it manually: ```bash pnpm pod-install ``` ## 4. Android: Android Studio and SDK [#4-android-android-studio-and-sdk] Install **Android Studio** from [developer.android.com](https://developer.android.com/studio) and let it set up the Android SDK at the default location (`~/Library/Android/sdk`). In **SDK Manager**, make sure these are installed: * the **SDK Platform** matching the repo's `compileSdk` (currently API 36) * **Platform-Tools** (`adb`) and **Build-Tools** * **Android Emulator**, plus **NDK** and **CMake** (the build downloads the pinned NDK if missing) Accept the SDK licenses (`sdkmanager --licenses`) and create at least one emulator in **Device Manager**. You do not need to install a JDK separately; mise pins and installs it. ## 5. Verify [#5-verify] Inside the repo, every version should resolve to the pinned one: ```bash mise ls # all tools installed and active node --version pnpm --version ruby --version java --version ``` If a command prints a different version than `mise.toml` pins, mise isn't activated in your shell. Revisit step 1. If nvm, rbenv, or SDKMAN is active in your shell, it can shadow the mise toolchain and produce builds with the wrong Node or Ruby. Let mise own the versions inside Appbrew repos. ## Next [#next] * [Merchant quickstart](/docs/start/merchant-quickstart) — clone and run your store's app * [Partner quickstart](/docs/start/partner-quickstart) — clone and run your host app * [Run on a physical device](/docs/start/run-on-device) — when you're ready to test on hardware # Run on a physical device (/docs/start/run-on-device) Simulators cover most development, but push notifications, camera, haptics, deep links, and real performance need hardware. Both flows below produce **debug builds for testing only** — [store releases stay with Appbrew](/docs/ship/app-releases). ## Android [#android] The easy one. Enable USB debugging on the phone, plug it in, and: ```bash pnpm run-android ``` The runner uses whatever device `adb` already sees, sets up `adb reverse` so the phone reaches the dev server over USB, installs, and launches. Hot reload included. With an emulator also running, be explicit: `--device` forces a physical device (`--device=` picks one from `adb devices`), `--simulator` forces an emulator. ### A standalone debug APK [#a-standalone-debug-apk] To hand a build to a teammate's device: ```bash cd android && ./gradlew assembleDebug # → android/app/build/outputs/apk/debug/app-debug.apk ``` Install it with `adb install -r `. One catch: **debug APKs don't embed the JS bundle** — the app expects a dev server. On the machine with the phone attached: ```bash adb reverse tcp:8081 tcp:8081 pnpm start ``` Debug signing uses the keystore committed in the repo, so there is zero signing setup on Android. ## iOS [#ios] `pnpm run-ios` is simulator-only by design. Physical iPhones go through Xcode: ### Install pods and open the workspace [#install-pods-and-open-the-workspace] ```bash pnpm pod-install open ios/.xcworkspace ``` Always the `.xcworkspace`, never the `.xcodeproj`. ### Set up development signing [#set-up-development-signing] Running on a device needs a **development signing profile**, and nothing more. In *Signing & Capabilities*, for the **Debug** configuration only, enable *Automatically manage signing* and select your development team; do the same for the notification-extension target. Xcode then provisions a development profile for your device automatically. Don't create distribution certificates or provisioning profiles for the app, and leave the Release configuration untouched — distribution signing and store submission are managed by Appbrew. If your team can't sign the app's capabilities (push, associated domains), or you'd rather not touch signing at all, [contact Appbrew](/docs/start/getting-help) and we'll set up device builds for you. ### Select your device and run [#select-your-device-and-run] Pick the connected iPhone as the destination (enable Developer Mode on the phone when iOS asks) and press Run with the Debug configuration. Debug device builds embed a JS bundle and also look for your dev server over Wi-Fi, so keep `pnpm start` running on the same network for hot reload. Xcode builds run outside your shell. If the build fails resolving node, create `ios/.xcode.env.local` (git-ignored) with `export NODE_BINARY=` — `which node` tells you the path. Build failures on either platform: [Troubleshooting](/docs/ship/troubleshooting). # Run your app (/docs/start/run-your-app) ## The run commands [#the-run-commands] ```bash pnpm run-ios ``` Installs pods, builds the native app, starts the dev server, and launches on a simulator. Pick a specific simulator with: ```bash pnpm run-ios --simulator="iPhone 17 Pro" ``` Start an emulator from Android Studio's Device Manager (or connect a device with USB debugging enabled), then: ```bash pnpm run-android ``` Whatever device `adb` already sees is used, and the default emulator boots if nothing is connected. Force a physical device with `--device` (or `--device=`), an emulator with `--simulator=`. Testing on real hardware, including iPhones (which go through Xcode), is covered in [Run on a physical device](/docs/start/run-on-device). ## What the dev server does [#what-the-dev-server-does] The run commands start a dev server: a JS bundler that serves the app's JavaScript bundle to the simulator. The native app is built once; after that, edits to TypeScript/JavaScript hot-reload into the running app without rebuilding. You only rebuild the native side when native dependencies change. If the bundler gets into a stale state (module resolution errors after moving files), restart it with a cache reset: ```bash pnpm start --reset-cache ``` ## The .env file [#the-env-file] The app is config-driven: which store's screens, blocks, and theme it loads is decided by `.env` in the repo root. Your repo ships with this preconfigured. You don't need to touch it to get running. ```bash title=".env" ENV=debug APP_ID="app_XXXXXXXXXXXXX" APP_NAME="Your Store" APP_THEME_ID="theme_XXXXXXXXXXXXX" APP_SERVICE_URL="https://edge.app.appbrew.tech" ``` * `APP_ID` / `APP_THEME_ID` identify the app and theme config to load from the Appbrew backend. * `APP_SERVICE_URL` is the Appbrew edge API. Don't change it. * `ENV=debug` loads the editable (non-live) theme you work on in the Appbrew dashboard; `ENV=release` loads the published theme. **Pointing the app at a different store** means changing `APP_ID` (and `APP_THEME_ID`) to values from that store's Appbrew dashboard, then restarting with `pnpm start --reset-cache` and relaunching. Partner sample apps ship with the demo store's values; merchants get their own store's values preconfigured. ## Common first-run issues [#common-first-run-issues] * **Nothing launches on iOS** — no simulator matched. Open Xcode's Simulator once so a device exists, or pass `--simulator` explicitly. * **`run-android` can't find a device** — the emulator isn't running. Start one from Android Studio first. * **iOS build fails after dependency changes** — pods are stale: ```bash pnpm clean-ios && pnpm run-ios ``` * **Bundler serves stale or missing modules** — watchman and bundler caches: `pnpm start --reset-cache`. For everything beyond a first run (Gradle failures, Xcode DerivedData, registry 401s), see [Troubleshooting](/docs/ship/troubleshooting). # Adjust (/docs/reference/integrations/adjust) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/adjust` Adjust mobile attribution — install and event tracking. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.adjust` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------- | ------------- | ------------------------ | | `appToken` | App Token | text · required · secret | | `eventMapping` | Event Mapping | text · required | # Afterpay (/docs/reference/integrations/afterpay) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/afterpay` Afterpay buy-now-pay-later messaging and checkout. Settings for this integration live under `integrations.afterpay` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------------- | ---------------------- | ----------------- | | `numberOfInstallments` | Number Of Installments | text · required | | `supportedCurrencies` | Supported Currencies | text · required | | `minimumAmount` | Minimum Order Amount | number · optional | | `maximumAmount` | Maximum Order Amount | number · optional | # App Distribution (/docs/reference/integrations/app-distribution) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/app-distribution` Smart app banner and install links on the mobile web store. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Appbrew EDD (/docs/reference/integrations/appbrew-edd) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/appbrew-edd` Appbrew estimated delivery dates on product pages. Settings for this integration live under `integrations.appbrew-edd` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------- | ------------------ | --------------- | | `eddInfo` | Delivery Data File | file · required | | `defaultCutoffTime` | Cut-off Time | time · required | # AppsFlyer (/docs/reference/integrations/appsflyer) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/appsflyer` AppsFlyer attribution — installs, in-app events, deep links. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.appsflyer` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------------------------- | --------------------------------------- | ----------------- | | `devKey` | Dev Key | text · required | | `appId` | App Id - only for iOS | text · required | | `timeToWaitForATTUserAuthorization` | Time To Wait For ATT User Authorization | number · required | | `customDomains` | OneLink Custom Domains | json · optional | # Appstle (/docs/reference/integrations/appstle) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/appstle` Appstle subscriptions — recurring orders. ## Settings [#settings] | Key | Setting | Details | | ------------- | ------- | ------------------------ | | `accessToken` | API Key | text · required · secret | # Astrology (/docs/reference/integrations/astrology) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/astrology` Daily horoscope data provider. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Attentive (/docs/reference/integrations/attentive) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/attentive` Attentive SMS marketing — subscriber sign-up and event sync. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.attentive` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------- | ---------------- | ------------------------ | | `apiKey` | API Key | text · required · secret | | `signUpSourceId` | Signup source ID | text · required | | `domain` | Domain | text · required | | `eventsWhitelist` | Events Whitelist | text · optional | | `paramsWhitelist` | Params Whitelist | text · optional | # Bikai (/docs/reference/integrations/bikai) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/bikai` Bik.ai marketing automation and chat. Settings for this integration live under `integrations.bikai` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------- | ---------------- | --------------- | | `eventsWhitelist` | Events Whitelist | text · optional | | `eventUrls` | Event Urls | text · optional | | `headers` | Headers | text · optional | | `apiUrl` | Api Url | text · optional | | `paramsWhitelist` | Params Whitelist | text · optional | # Bitespeed (/docs/reference/integrations/bitespeed) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/bitespeed` BiteSpeed WhatsApp CRM and omnichannel marketing. Settings for this integration live under `integrations.bitespeed` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | Api Key | text · optional · secret | # Bogos (/docs/reference/integrations/bogos) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/bogos` Run your BOGOS free gifts, product bundles and volume discounts in the app, priced exactly as on your store. Settings for this integration live under `integrations.bogos` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | API Key | text · required · secret | # Boost (/docs/reference/integrations/boost) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/boost` Boost AI search and product filtering. Settings for this integration live under `integrations.boost` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------ | ----------------- | ------------------ | | `productAvailable` | Product Available | boolean · required | | `shop` | Shop | text · required | | `buildFilterTree` | Build Filter Tree | boolean · required | | `zeroOptions` | Zero Options | boolean · required | # Branch (/docs/reference/integrations/branch) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/branch` Branch deep links and mobile attribution. Settings for this integration live under `integrations.branch` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------- | ---------------- | ------------------------ | | `paramsMapper` | Params Mapper | text · optional | | `eventsWhitelist` | Events Whitelist | text · optional | | `apiKey` | Api Key | text · optional · secret | | `identityType` | Identity Type | text · optional | | `eventsMapper` | Events Mapper | text · optional | | `paramsWhitelist` | Params Whitelist | text · optional | # Bss B2b (/docs/reference/integrations/bss-b2b) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/bss-b2b` BSS B2B wholesale prices and draft order checkout for signed-in customers. Settings for this integration live under `integrations.bss-b2b` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | -------------- | ------------------------ | | `apiKey` | Public API Key | text · required · secret | | `shopDomain` | Shop Domain | text · required | # Clarity (/docs/reference/integrations/clarity) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/clarity` Microsoft Clarity session recording and heatmaps. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.clarity` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------ | ------------------ | --------------- | | `androidProjectId` | Android Project ID | text · required | | `iosProjectId` | iOS Project ID | text · required | # CleverTap (/docs/reference/integrations/clevertap) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/clevertap` CleverTap engagement — push, in-app messages, event analytics. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.clevertap` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------- | ---------- | ------------------------ | | `accountId` | Account Id | text · required | | `token` | Token | text · required · secret | | `region` | Region | text · required | # Clickpost (/docs/reference/integrations/clickpost) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/clickpost` ClickPost shipment tracking and order status. Settings for this integration live under `integrations.clickpost` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------------- | ------------------------ | ------------------------ | | `apiKey` | API Key | text · required · secret | | `userName` | Username | text · required | | `pickupPincode` | Pickup Pincode | text · required | | `enablePredictedSlaApi` | Enable Predicted SLA API | boolean · required | # Collection Templates (/docs/reference/integrations/collection-templates) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/collection-templates` Custom collection page templates. Settings for this integration live under `integrations.collection-templates` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------- | -------------------- | --------------- | | `collections` | Collection Templates | json · required | # Color Swatch (/docs/reference/integrations/color-swatch) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/color-swatch` Shared registry for product-option color swatches. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Contentsquare (/docs/reference/integrations/contentsquare) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/contentsquare` Contentsquare Product Analytics autocapture and push-notification tracking. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.contentsquare` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------- | -------------- | --------------- | | `environmentId` | Environment Id | text · required | # Contlo (/docs/reference/integrations/contlo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/contlo` Contlo marketing automation — events and audience sync. Settings for this integration live under `integrations.contlo` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | # Easyrewardz (/docs/reference/integrations/easyrewardz) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/easyrewardz` EasyRewardz (LPaaS) loyalty points — balance, ledger and gift vouchers, read-only. Settings for this integration live under `integrations.easyrewardz` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------- | -------------- | ------------------------ | | `baseUrl` | Base URL | text · required | | `userName` | API User Name | text · required | | `userPassword` | API Password | text · required · secret | | `devId` | Dev ID | text · required · secret | | `appId` | App ID | text · required · secret | | `programCode` | Program Code | text · required | | `storeCode` | Store Code | text · optional | | `userEmail` | API User Email | text · required | # Facebook Ads (/docs/reference/integrations/facebook-ads) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/facebook-ads` Facebook Ads events and audience sync. Settings for this integration live under `integrations.facebook-ads` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------- | ---------------------------- | ------------------------ | | `fbAppId` | Facebook App Id | text · required | | `fbClientToken` | Facebook Client Token | text · required · secret | | `contentIdTemplate` | Content Id Format | text · required | | `datasetId` | Dataset ID | text · optional | | `capiAccessToken` | Conversions API Access Token | text · optional · secret | | `serverPurchase` | Send purchase from server | boolean · optional | # Facebook (/docs/reference/integrations/facebook) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/facebook` Facebook (Meta) App Events for Appbrew apps: forwards analytics events, screen views, and user identity to the Facebook SDK via react-nat... Settings for this integration live under `integrations.facebook-ads` in your app config. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Fare Freight (/docs/reference/integrations/fare-freight) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/fare-freight` Fare Freight live carrier shipping rates for the cart. Settings for this integration live under `integrations.fare-freight` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------ | ----------------------- | ------------------------ | | `accountId` | Account ID | text · required | | `secretKey` | Secret Key | text · required · secret | | `fallbackEmail` | Guest Quote Email | text · required | | `originAddress1` | Dispatch Street Address | text · optional | | `originCity` | Dispatch Suburb | text · required | | `originProvince` | Dispatch State | text · required | | `originPostalCode` | Dispatch Postcode | text · required | # Fastrr (/docs/reference/integrations/fastrr) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/fastrr` Fastrr (Pickrr) one-click checkout. ## Settings [#settings] | Key | Setting | Details | | ----------- | ---------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | | `apiSecret` | Api Secret | text · required · secret | # Fast Simon (/docs/reference/integrations/fastsimon) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/fastsimon` Fast Simon search, filters, and merchandising. Settings for this integration live under `integrations.fastsimon` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------- | ---------- | --------------- | | `storeId` | Store Id | text · optional | | `uuid` | Uuid | text · optional | | `baseURL` | Base U R L | text · optional | # Fenix (/docs/reference/integrations/fenix) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/fenix` Fenix Commerce delivery estimates. Settings for this integration live under `integrations.fenix` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------- | --------- | ------------------------ | | `tenantId` | Tenant Id | text · optional | | `apiKey` | Api Key | text · optional · secret | # Findify (/docs/reference/integrations/findify) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/findify` Findify AI search, collections, and recommendations. Settings for this integration live under `integrations.findify` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----- | ------- | --------------- | | `key` | Key | text · required | # Finex (/docs/reference/integrations/finex) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/finex` Finex integration. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Firebase Push (/docs/reference/integrations/firebase-push) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/firebase-push` FCM push notifications for Appbrew apps: permission prompts, foreground display (via Notifee), tap handling, topic subscription, and deep... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Firebase (/docs/reference/integrations/firebase) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/firebase` Firebase analytics and push notifications. Settings for this integration live under `integrations.firebase` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------------------- | -------------------------------- | ------------------------ | | `secret` | Admin Secret Key file | file · required · secret | | `sha256Hashes` | SHA-256 certificate fingerprints | json · required | | `sha1Hashes` | SHA-1 certificate fingerprints | json · required | | `appStoreTeamId` | App Store Team ID | text · optional | | `androidMeasurementApiSecret` | Android Measurement API Secret | text · optional · secret | | `iosMeasurementApiSecret` | iOS Measurement API Secret | text · optional · secret | | `serverPurchase` | Send purchase from server | boolean · optional | # Firework (/docs/reference/integrations/firework) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/firework` Firework shoppable-video integration for Appbrew apps: video feed and story blocks backed by react-native-firework-sdk, with tap/CTA hand... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Flits (/docs/reference/integrations/flits) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/flits` Flits customer account page — profile, wallet, store credit. Settings for this integration live under `integrations.flits` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------------------- | --------------------------- | ------------------------ | | `userId` | User Id | text · required | | `baseUrl` | Base Url | text · required | | `token` | Token | text · required · secret | | `enableCartCoinRedeemption` | Enable Cart Coin Redemption | boolean · required | # Frequently Bought Together (/docs/reference/integrations/frequentlyboughttogether) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/frequentlyboughttogether` "Frequently Bought Together" (Code Black Belt Shopify app) integration for Appbrew apps: a product-page bundle recommendation block with ... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Gift (/docs/reference/integrations/gift) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/gift` Free-gift-with-purchase rules engine for Appbrew apps: AppGiftProvider implements the GiftsProvider interface and decides which gift item... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # GoKwik (/docs/reference/integrations/gokwik) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/gokwik` GoKwik one-click checkout and COD suite. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.gokwik` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------- | --------------- | ------------------ | | `merchantId` | Merchant ID | text · required | | `enableKwikpass` | Enable KwikPass | boolean · required | # Gorgias (/docs/reference/integrations/gorgias) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/gorgias` Gorgias customer support for Appbrew apps: renders the Gorgias help center / chat page inside a WebView block. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Grow Simplee (/docs/reference/integrations/grow-simplee) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/grow-simplee` Grow Simplee shipment tracking. ## Settings [#settings] | Key | Setting | Details | | --------------- | -------------- | ------------------------ | | `username` | Username | text · required | | `password` | Password | text · required · secret | | `sourcePincode` | Source Pincode | text · required | | `endpoints` | Endpoints | json · required | # Integration catalog (/docs/reference/integrations) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Appbrew ships 118 integrations. Each page lists the settings a merchant (or you) fills in, and whether enabling it needs an app release or is config-only. | Integration | What it does | Enabling needs | | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------- | | [Adjust](/docs/reference/integrations/adjust) | Adjust mobile attribution — install and event tracking. | app release | | [Afterpay](/docs/reference/integrations/afterpay) | Afterpay buy-now-pay-later messaging and checkout. | config only | | [App Distribution](/docs/reference/integrations/app-distribution) | Smart app banner and install links on the mobile web store. | config only | | [Appbrew EDD](/docs/reference/integrations/appbrew-edd) | Appbrew estimated delivery dates on product pages. | config only | | [AppsFlyer](/docs/reference/integrations/appsflyer) | AppsFlyer attribution — installs, in-app events, deep links. | app release | | [Appstle](/docs/reference/integrations/appstle) | Appstle subscriptions — recurring orders. | config only | | [Astrology](/docs/reference/integrations/astrology) | Daily horoscope data provider. | config only | | [Attentive](/docs/reference/integrations/attentive) | Attentive SMS marketing — subscriber sign-up and event sync. | app release | | [Bikai](/docs/reference/integrations/bikai) | Bik.ai marketing automation and chat. | config only | | [Bitespeed](/docs/reference/integrations/bitespeed) | BiteSpeed WhatsApp CRM and omnichannel marketing. | config only | | [Bogos](/docs/reference/integrations/bogos) | Run your BOGOS free gifts, product bundles and volume discounts in the app, priced exactly as on your store. | config only | | [Boost](/docs/reference/integrations/boost) | Boost AI search and product filtering. | config only | | [Branch](/docs/reference/integrations/branch) | Branch deep links and mobile attribution. | config only | | [Bss B2b](/docs/reference/integrations/bss-b2b) | BSS B2B wholesale prices and draft order checkout for signed-in customers. | config only | | [Clarity](/docs/reference/integrations/clarity) | Microsoft Clarity session recording and heatmaps. | app release | | [CleverTap](/docs/reference/integrations/clevertap) | CleverTap engagement — push, in-app messages, event analytics. | app release | | [Clickpost](/docs/reference/integrations/clickpost) | ClickPost shipment tracking and order status. | config only | | [Collection Templates](/docs/reference/integrations/collection-templates) | Custom collection page templates. | config only | | [Color Swatch](/docs/reference/integrations/color-swatch) | Shared registry for product-option color swatches. | config only | | [Contentsquare](/docs/reference/integrations/contentsquare) | Contentsquare Product Analytics autocapture and push-notification tracking. | app release | | [Contlo](/docs/reference/integrations/contlo) | Contlo marketing automation — events and audience sync. | config only | | [Easyrewardz](/docs/reference/integrations/easyrewardz) | EasyRewardz (LPaaS) loyalty points — balance, ledger and gift vouchers, read-only. | config only | | [Facebook](/docs/reference/integrations/facebook) | Facebook (Meta) App Events for Appbrew apps: forwards analytics events, screen views, and user identity to the | config only | | [Facebook Ads](/docs/reference/integrations/facebook-ads) | Facebook Ads events and audience sync. | config only | | [Fare Freight](/docs/reference/integrations/fare-freight) | Fare Freight live carrier shipping rates for the cart. | config only | | [Fastrr](/docs/reference/integrations/fastrr) | Fastrr (Pickrr) one-click checkout. | config only | | [Fast Simon](/docs/reference/integrations/fastsimon) | Fast Simon search, filters, and merchandising. | config only | | [Fenix](/docs/reference/integrations/fenix) | Fenix Commerce delivery estimates. | config only | | [Findify](/docs/reference/integrations/findify) | Findify AI search, collections, and recommendations. | config only | | [Finex](/docs/reference/integrations/finex) | Finex integration. | config only | | [Firebase](/docs/reference/integrations/firebase) | Firebase analytics and push notifications. | config only | | [Firebase Push](/docs/reference/integrations/firebase-push) | FCM push notifications for Appbrew apps: permission prompts, foreground display (via Notifee), tap handling, t | config only | | [Firework](/docs/reference/integrations/firework) | Firework shoppable-video integration for Appbrew apps: video feed and story blocks backed by react-native-fire | config only | | [Flits](/docs/reference/integrations/flits) | Flits customer account page — profile, wallet, store credit. | config only | | [Frequently Bought Together](/docs/reference/integrations/frequentlyboughttogether) | "Frequently Bought Together" (Code Black Belt Shopify app) integration for Appbrew apps: a product-page bundle | config only | | [Gift](/docs/reference/integrations/gift) | Free-gift-with-purchase rules engine for Appbrew apps: AppGiftProvider implements the GiftsProvider interface | config only | | [GoKwik](/docs/reference/integrations/gokwik) | GoKwik one-click checkout and COD suite. | app release | | [Gorgias](/docs/reference/integrations/gorgias) | Gorgias customer support for Appbrew apps: renders the Gorgias help center / chat page inside a WebView block. | config only | | [Grow Simplee](/docs/reference/integrations/grow-simplee) | Grow Simplee shipment tracking. | config only | | [Joy](/docs/reference/integrations/joy) | Joy loyalty program — points, rewards, referrals. | config only | | [Judge.me](/docs/reference/integrations/judgeme) | Judge.me product reviews and ratings. | config only | | [Junip](/docs/reference/integrations/junip) | Junip product reviews (legacy variant; junip-reviews is the current one). | config only | | [Junip Reviews](/docs/reference/integrations/junip-reviews) | Junip product reviews and ratings. | config only | | [Kiwi Sizing](/docs/reference/integrations/kiwi-sizing) | Kiwi Sizing size charts and fit recommendations. | config only | | [Klaviyo](/docs/reference/integrations/klaviyo) | Klaviyo email/SMS marketing — profile sync, events, back-in-stock. | app release | | [Kustomer](/docs/reference/integrations/kustomer) | Kustomer support chat and CRM. | config only | | [Lantern](/docs/reference/integrations/lantern) | Lantern referral program for Appbrew apps, built on Shopify customer metafields: referral code display/copy, a | config only | | [LiveMeUp](/docs/reference/integrations/livemeup) | LiveMeUp live shopping player and mini-player widget. | config only | | [Loox](/docs/reference/integrations/loox) | Loox photo reviews and referrals. | config only | | [LoyaltyLion](/docs/reference/integrations/loyalty-lion) | LoyaltyLion points, rewards, and tiers. | config only | | [LyveCom](/docs/reference/integrations/lyvecom) | Lyvecom shoppable video and live commerce. | config only | | [Maestra](/docs/reference/integrations/maestra) | Maestra marketing automation and personalization. | config only | | [MoEngage](/docs/reference/integrations/moengage) | MoEngage engagement — push, in-app messages, event analytics. | config only | | [Nector](/docs/reference/integrations/nector) | Nector loyalty and rewards. | config only | | [Nector Reviews](/docs/reference/integrations/nector-reviews) | Nector product reviews. | config only | | [Neon](/docs/reference/integrations/neon) | Neon size recommendations. | config only | | [Netcore](/docs/reference/integrations/netcore) | Netcore engagement — push, in-app, event analytics. | config only | | [NinetyNine Minds](/docs/reference/integrations/ninety-nine-minds) | 99minds gift cards and loyalty. | config only | | [Okendo](/docs/reference/integrations/okendo) | Okendo product reviews and UGC. | config only | | [Okendo Rewards](/docs/reference/integrations/okendo-rewards) | Okendo loyalty and rewards. | config only | | [Ola Maps](/docs/reference/integrations/ola-maps) | Ola Maps places autocomplete, geocoding and map tiles for location capture. | config only | | [Opinew](/docs/reference/integrations/opinew) | Opinew product reviews. | config only | | [Order](/docs/reference/integrations/order) | Order tracking and status. | config only | | [OTP Sign-in](/docs/reference/integrations/otp-signin) | OTP sign-in — phone/email one-time-password login. | config only | | [PDP Templates](/docs/reference/integrations/pdp-templates) | Custom product page templates. | config only | | [Popcoin](/docs/reference/integrations/popcoin) | Popcoins loyalty and rewards. | config only | | [PowerReviews](/docs/reference/integrations/powerreviews) | PowerReviews product reviews and ratings. | config only | | [Prive](/docs/reference/integrations/prive) | Prive subscriptions. | config only | | [Purple Dot](/docs/reference/integrations/purple-dot) | Purple Dot pre-order integration — sell upcoming products before release. | config only | | [Qwickcilver](/docs/reference/integrations/qwickcilver) | Qwickcilver gift card wallet for Fabindia: balance, adding a gift card by number and PIN, and recent transacti | config only | | [Rebid](/docs/reference/integrations/rebid) | ReBid ads attribution and event tracking. | config only | | [Rebuy](/docs/reference/integrations/rebuy) | Rebuy personalized recommendations and upsells. | config only | | [Recharge](/docs/reference/integrations/recharge) | Recharge subscriptions. | config only | | [Reviews.io](/docs/reference/integrations/reviews.io) | REVIEWS.io product reviews and ratings. | config only | | [Rewardrally](/docs/reference/integrations/rewardrally) | RewardRally loyalty and rewards. | config only | | [Rich Size Guide](/docs/reference/integrations/rich-size-guide) | Rich size guide charts on product pages. | config only | | [Riviyo](/docs/reference/integrations/riviyo) | Riviyo (WiseReviews) product reviews. | config only | | [Rivo](/docs/reference/integrations/rivo) | Rivo loyalty and rewards. | config only | | [Ryviu Star Ratings](/docs/reference/integrations/ryviu-star-ratings) | Ryviu star ratings. | config only | | [Searchanise](/docs/reference/integrations/searchanise) | Searchanise instant search and filters. | config only | | [Searchspring](/docs/reference/integrations/searchspring) | Searchspring search, filters, and merchandising. | config only | | [SearchTap](/docs/reference/integrations/searchtap) | SearchTap instant search and filters. | config only | | [Shiprocket](/docs/reference/integrations/shiprocket) | Shiprocket shipment tracking. | config only | | [Shiprocket EDD](/docs/reference/integrations/shiprocket-edd) | Shiprocket estimated delivery dates. | config only | | [Shopflo](/docs/reference/integrations/shopflo) | Shopflo one-click checkout and discounts. | app release | | [Shopify](/docs/reference/integrations/shopify) | Shopify store connection — storefront and admin access. | config only | | [Shopify Auth](/docs/reference/integrations/shopify-auth) | Shopify customer account authentication. | config only | | [Shopify Custom](/docs/reference/integrations/shopify-custom) | Shopify custom app connection (custom Admin API credentials). | config only | | [Simpl](/docs/reference/integrations/simpl) | Simpl pay-later checkout. | config only | | [Smart Wishlist](/docs/reference/integrations/smart-wishlist) | Smart Wishlist (webmarked.net): syncs the signed-in customer's wishlist between web and app. | config only | | [Smile](/docs/reference/integrations/smile) | Smile.io loyalty — points, referrals, rewards. | config only | | [Social Login](/docs/reference/integrations/social-login) | Social login — Google/Apple/Facebook sign-in. | config only | | [Stamped](/docs/reference/integrations/stamped) | Stamped product reviews and ratings. | config only | | [Stay AI](/docs/reference/integrations/stay-ai) | Stay AI subscriptions. | config only | | [Subscriptions](/docs/reference/integrations/subscriptions) | Customer subscription management (Recharge-backed). | config only | | [Swatch King](/docs/reference/integrations/swatch-king) | Swatch King variant swatches and options. | config only | | [Swish](/docs/reference/integrations/swish) | Swish wishlist: syncs the signed-in customer's wishlist with Swish and renders it as a collection-style grid i | config only | | [Tidio](/docs/reference/integrations/tidio) | Tidio live chat and support. | config only | | [TrueFit](/docs/reference/integrations/truefit) | A pure React Native implementation of the Truefit Consumer App SDK for size recommendations. | config only | | [Unbxd Recommendations](/docs/reference/integrations/unbxd-recommendations) | Unbxd product recommendations rendered as PDP, cart and generic screen blocks. | config only | | [Unbxd Search](/docs/reference/integrations/unbxd-search) | Unbxd search, filters, and recommendations. | config only | | [Unicommerce](/docs/reference/integrations/unicommerce) | Unicommerce order and inventory sync. | config only | | [Verifast Ai Chatbot](/docs/reference/integrations/verifast-ai-chatbot) | Verifast AI shopping assistant: embeds the Verifast chatbot web app in a WebView, using the signed-in customer | config only | | [Videowise](/docs/reference/integrations/videowise) | Videowise live-shopping channel integration for Appbrew apps. | app release | | [Vip Rewards](/docs/reference/integrations/vip-rewards) | VIP rewards loyalty program. | config only | | [ViSenze](/docs/reference/integrations/visenze) | ViSenze visual search and recommendations. | config only | | [Wair](/docs/reference/integrations/wair) | WAIR size recommendation: a single WhatsMySize block that renders the merchant's WAIR size-guide web page in a | config only | | [WebEngage](/docs/reference/integrations/webengage) | WebEngage engagement — push, in-app, event analytics. | config only | | [Wiser](/docs/reference/integrations/wiser) | Wiser personalized product recommendations. | config only | | [Wishlist Plus](/docs/reference/integrations/wishlist-plus) | Swym Wishlist Plus — wishlists across devices. | config only | | [Wizzy](/docs/reference/integrations/wizzy) | Wizzy instant search and filters. | config only | | [Wizzy Search](/docs/reference/integrations/wizzy-search) | Newer Wizzy search provider: WizzySearchProvider serves search results, autocomplete suggestions (V2), and def | config only | | [Xeno](/docs/reference/integrations/xeno) | Xeno loyalty points for Fabindia's Fabfamily program: balance, tier, points history and the Fabfamily site, re | config only | | [Yotpo Reviews](/docs/reference/integrations/yotpo-reviews) | Yotpo product reviews and ratings. | config only | | [Yotpo Rewards](/docs/reference/integrations/yotpo-rewards) | Yotpo Loyalty points and rewards. | config only | | [Yourtoken](/docs/reference/integrations/yourtoken) | YourToken loyalty and rewards. | config only | | [Zevi](/docs/reference/integrations/zevi) | Zevi AI search and discovery. | config only | | [Zippy](/docs/reference/integrations/zippy) | Vendor-based pincode serviceability + Estimated Delivery Date (EDD) widget for the product page, powered by th | config only | # Joy (/docs/reference/integrations/joy) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/joy` Joy loyalty program — points, rewards, referrals. Settings for this integration live under `integrations.joy` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------------- | -------------------------------- | ------------------------ | | `appKey` | App Key | text · required | | `secretKey` | Secret Key | text · required · secret | | `redemptionProgramId` | Redemption Program ID (Optional) | text · optional | | `baseURL` | Base URL (Optional) | text · optional | # Judge.me (/docs/reference/integrations/judgeme) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/judgeme` Judge.me product reviews and ratings. Settings for this integration live under `integrations.judgeme` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------------- | ---------------------------------------- | ------------------------ | | `stylesheet` | Stylesheet ( Optional ) | text · optional | | `publicToken` | Public Token | text · required · secret | | `storeDomain` | Store Domain ( Optional ) | text · optional | | `platform` | Platform ( Optional ) | text · optional | | `fontFamily` | Font Family ( Google Font ) ( Optional ) | text · optional | | `primaryColor` | Primary Color ( Optional ) | text · optional | | `textOnPrimary` | Text On Primary ( Optional ) | text · optional | | `bgVeryLight` | Reviews Background Color ( Optional ) | text · optional | | `textDark` | Text Dark ( Optional ) | text · optional | | `starColor` | Star Color ( Optional ) | text · optional | | `buttonBorderRadius` | Button Border Radius ( Optional ) | text · optional | | `customHtmlPageUrl` | Custom HTML Page URL ( Optional ) | text · optional | # Junip Reviews (/docs/reference/integrations/junip-reviews) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/junip-reviews` Junip product reviews and ratings. Settings for this integration live under `integrations.junip-reviews` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------- | ---------------------- | --------------- | | `key` | Junip Store Key | text · required | | `baseURL` | Base Url | text · required | | `pageSize` | Page Size ( Optional ) | text · optional | # Junip (/docs/reference/integrations/junip) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/junip` Junip product reviews (legacy variant; junip-reviews is the current one). ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Kiwi Sizing (/docs/reference/integrations/kiwi-sizing) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/kiwi-sizing` Kiwi Sizing size charts and fit recommendations. Settings for this integration live under `integrations.kiwi` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------- | ------------------- | ----------------- | | `apiUrl` | Api Url | text · required | | `expiryTimeSeconds` | Expiry Time Seconds | number · required | | `shop` | Shop | text · required | # Klaviyo (/docs/reference/integrations/klaviyo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/klaviyo` Klaviyo email/SMS marketing — profile sync, events, back-in-stock. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.klaviyo` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------- | ---------- | --------------- | | `companyId` | Company ID | text · required | # Kustomer (/docs/reference/integrations/kustomer) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/kustomer` Kustomer support chat and CRM. Settings for this integration live under `integrations.kustomer` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | Api Key | text · optional · secret | # Lantern (/docs/reference/integrations/lantern) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/lantern` Lantern referral program for Appbrew apps, built on Shopify customer metafields: referral code display/copy, apply-a-code form, referral ... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # LiveMeUp (/docs/reference/integrations/livemeup) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/livemeup` LiveMeUp live shopping player and mini-player widget. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Loox (/docs/reference/integrations/loox) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/loox` Loox photo reviews and referrals. Settings for this integration live under `integrations.loox` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------- | ------------ | --------------- | | `stylesheet` | Stylesheet | text · required | | `htmlUrl` | Html Url | text · required | | `script` | Script | text · required | | `storeDomain` | Store Domain | text · required | # LoyaltyLion (/docs/reference/integrations/loyalty-lion) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/loyalty-lion` LoyaltyLion points, rewards, and tiers. Settings for this integration live under `integrations.loyalty-lion` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------------------- | ------------------------------ | ------------------------ | | `token` | Token | text · required · secret | | `secret` | Secret | text · required · secret | | `appDownloadActivityName` | App Download Activity Name | text · optional | | `pushOptInActivityName` | Push Opt-In Activity Name | text · optional | | `instagramFollowActivityName` | Instagram Follow Activity Name | text · optional | | `facebookLikeActivityName` | Facebook Like Activity Name | text · optional | | `tiktokFollowActivityName` | TikTok Follow Activity Name | text · optional | | `twitterFollowActivityName` | Twitter Follow Activity Name | text · optional | # LyveCom (/docs/reference/integrations/lyvecom) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/lyvecom` Lyvecom shoppable video and live commerce. Settings for this integration live under `integrations.lyvecom` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------- | ---------- | --------------- | | `accountId` | Account Id | text · required | # Maestra (/docs/reference/integrations/maestra) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/maestra` Maestra marketing automation and personalization. Settings for this integration live under `integrations.maestra` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | ----------- | --------------- | | `endpointId` | Endpoint Id | text · optional | | `baseUrl` | Base Url | text · optional | # MoEngage (/docs/reference/integrations/moengage) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/moengage` MoEngage engagement — push, in-app messages, event analytics. Settings for this integration live under `integrations.moengage` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------- | ------- | --------------- | | `appId` | App ID | text · required | # Nector Reviews (/docs/reference/integrations/nector-reviews) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/nector-reviews` Nector product reviews. Settings for this integration live under `integrations.nector-reviews` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------- | ------------ | --------------- | | `readAppKey` | API key | text · required | | `workspaceId` | Workspace Id | text · required | # Nector (/docs/reference/integrations/nector) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/nector` Nector loyalty and rewards. Settings for this integration live under `integrations.nector` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------------------- | --------------------------- | ------------------------ | | `apiKey` | API Key | text · required · secret | | `writeApiKey` | Write API Key | text · optional · secret | | `appInstallTriggerId` | App Install Trigger ID | text · optional | | `enableCartCoinRedeemption` | Enable Cart Coin Redemption | boolean · required | # Neon (/docs/reference/integrations/neon) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/neon` Neon size recommendations. Settings for this integration live under `integrations.neon` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------ | ----------------- | --------------- | | `shop` | Shopify store url | text · required | | `api` | Neon API endpoint | text · required | # Netcore (/docs/reference/integrations/netcore) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/netcore` Netcore engagement — push, in-app, event analytics. Settings for this integration live under `integrations.netcore` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------------------- | -------------------------- | --------------- | | `paramsMapper` | Params Mapper | text · optional | | `eventsWhitelist` | Events Whitelist | text · optional | | `eventsMapper` | Events Mapper | text · optional | | `paramsWhitelist` | Params Whitelist | text · optional | | `primaryKey` | Primary Key | text · optional | | `anonymousTrackingEnabled` | Anonymous Tracking Enabled | text · optional | # NinetyNine Minds (/docs/reference/integrations/ninety-nine-minds) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/ninety-nine-minds` 99minds gift cards and loyalty. Settings for this integration live under `integrations.99minds` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------- | ----------------- | ------------------------ | | `apiKey` | Api Key | text · optional · secret | | `shopDomain` | Shop Domain | text · optional | | `signInActionId` | Sign In Action Id | text · optional | # Okendo Rewards (/docs/reference/integrations/okendo-rewards) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/okendo-rewards` Okendo loyalty and rewards. Settings for this integration live under `integrations.okendo-loyalty` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------------- | -------------------------------- | ------------------------ | | `parnterId` | Okendo Partner Id | text · required | | `subscriberId` | Okendo Subscriber Id | text · required | | `apiVersion` | Okendo API Version | text · required | | `appDownloadActionId` | App Download Earn Rule Action Id | text · optional | | `userId` | Okendo User Id | text · optional | | `apiKey` | Okendo Merchant REST API Key | text · optional · secret | # Okendo (/docs/reference/integrations/okendo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/okendo` Okendo product reviews and UGC. Settings for this integration live under `integrations.okendo` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------- | -------------- | --------------- | | `okendoUserId` | Okendo User Id | text · required | | `baseURL` | Okendo API url | text · required | # Ola Maps (/docs/reference/integrations/ola-maps) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/ola-maps` Ola Maps places autocomplete, geocoding and map tiles for location capture. Settings for this integration live under `integrations.olamaps` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | API Key | text · required · secret | # Opinew (/docs/reference/integrations/opinew) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/opinew` Opinew product reviews. Settings for this integration live under `integrations.opinew` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | ----------- | --------------- | | `widgetType` | Widget Type | text · required | | `domain` | Domain | text · required | # Order (/docs/reference/integrations/order) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/order` Order tracking and status. ## Settings [#settings] | Key | Setting | Details | | ---------------------------- | ----------------------------- | ------------------ | | `orderCancelAutoRefund` | Auto Refund | boolean · required | | `orderCancelDurationHours` | Cancel order within (hours) | number · required | | `orderCancelDurationMinutes` | Cancel order within (minutes) | number · required | | `tag` | Tag to add | text · optional | # OTP Sign-in (/docs/reference/integrations/otp-signin) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/otp-signin` OTP sign-in — phone/email one-time-password login. Settings for this integration live under `integrations.otpSignin` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------------- | -------------------------- | ----------------------------------------------------------- | | `multipassSecret` | Multipass Secret | text · optional · secret | | `allowAddressPhoneNumber` | Allow Address Phone Number | boolean · required | | `provider` | Phone Provider | select · optional · options: TrustSignal, MSG91, ValueFirst | | `apiKey` | Phone API Secret | text · optional · secret | | `message` | Phone Message | text · optional | | `senderId` | Phone Sender Id | text · optional | | `templateId` | Phone Template Id | text · optional | | `dltEntityId` | Phone DLT Entity Id | text · optional | | `emailProvider` | Email Provider | select · required · options: TrustSignal, MSG91, SES | | `emailApiKey` | Email API Secret | text · required · secret | | `emailDomain` | Email Domain | text · required | | `emailFrom` | Email From | text · required | | `emailSubject` | Email Subject | text · required | | `emailTemplateId` | Email Template Id | text · required | # PDP Templates (/docs/reference/integrations/pdp-templates) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/pdp-templates` Custom product page templates. Settings for this integration live under `integrations.pdp-templates` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------- | ------------- | --------------- | | `products` | PDP Templates | json · required | # Popcoin (/docs/reference/integrations/popcoin) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/popcoin` Popcoins loyalty and rewards. Settings for this integration live under `integrations.popcoins` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------------ | ------------------------ | --------------- | | `overrideBasePercentage` | Override Base Percentage | text · optional | | `overrideIssuance` | Override Issuance | text · optional | # PowerReviews (/docs/reference/integrations/powerreviews) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/powerreviews` PowerReviews product reviews and ratings. Settings for this integration live under `integrations.powerreviews` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------- | ----------------- | ------------------------ | | `merchantGroupId` | Merchant Group Id | text · optional | | `baseURL` | Base U R L | text · optional | | `apiKey` | Api Key | text · optional · secret | | `merchantId` | Merchant Id | text · optional | # Prive (/docs/reference/integrations/prive) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/prive` Prive subscriptions. ## Settings [#settings] | Key | Setting | Details | | ------------- | ------- | ------------------------ | | `accessToken` | API Key | text · required · secret | # Purple Dot (/docs/reference/integrations/purple-dot) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/purple-dot` Purple Dot pre-order integration — sell upcoming products before release. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Qwickcilver (/docs/reference/integrations/qwickcilver) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/qwickcilver` Qwickcilver gift card wallet for Fabindia: balance, adding a gift card by number and PIN, and recent transactions. Settings for this integration live under `integrations.qwickcilver` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------- | ---------------- | ------------------------ | | `baseUrl` | Base URL | text · optional | | `basicAuthToken` | Basic Auth Token | text · required · secret | # Rebid (/docs/reference/integrations/rebid) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/rebid` ReBid ads attribution and event tracking. Settings for this integration live under `integrations.rebid` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | --------------- | | `appKey` | App Key | text · optional | # Rebuy (/docs/reference/integrations/rebuy) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/rebuy` Rebuy personalized recommendations and upsells. Settings for this integration live under `integrations.rebuy` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----- | ------- | --------------- | | `key` | Key | text · optional | | `url` | Url | text · optional | # Recharge (/docs/reference/integrations/recharge) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/recharge` Recharge subscriptions. Settings for this integration live under `integrations.recharge` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------------------- | -------------------------------------- | ------------------------ | | `accessToken` | API Key | text · required · secret | | `includeOnetimesInLineItems` | Include one-time add-ons in line items | boolean · optional | # Reviews.io (/docs/reference/integrations/reviews.io) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/reviews.io` REVIEWS.io product reviews and ratings. Settings for this integration live under `integrations.reviews-io` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | Api Key | text · optional · secret | | `store` | Store | text · optional | # Rewardrally (/docs/reference/integrations/rewardrally) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/rewardrally` RewardRally loyalty and rewards. Settings for this integration live under `integrations.rewardrally` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------------------- | --------------------------- | ------------------ | | `storeId` | Store ID | text · required | | `enableCartCoinRedemption` | Enable Cart Coin Redemption | boolean · required | # Rich Size Guide (/docs/reference/integrations/rich-size-guide) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/rich-size-guide` Rich size guide charts on product pages. Settings for this integration live under `integrations.rich-size-guide` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------------------- | ------------------------ | ------------------ | | `sizeGuide` | Rich Size Guide | json · required | | `enableTaggedSizeGuide` | Enable Tagged Size Guide | boolean · required | # Riviyo (/docs/reference/integrations/riviyo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/riviyo` Riviyo (WiseReviews) product reviews. Settings for this integration live under `integrations.riviyo` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------- | -------------------------- | --------------- | | `shop` | Shopify store url | text · required | | `authorization` | Riviyo authorization token | text · required | # Rivo (/docs/reference/integrations/rivo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/rivo` Rivo loyalty and rewards. Settings for this integration live under `integrations.rivo` in your app config. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Ryviu Star Ratings (/docs/reference/integrations/ryviu-star-ratings) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/ryviu-star-ratings` Ryviu star ratings. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Searchanise (/docs/reference/integrations/searchanise) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/searchanise` Searchanise instant search and filters. Settings for this integration live under `integrations.searchanise` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | ----------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | | `shopDomain` | Shop Domain | text · required | # Searchspring (/docs/reference/integrations/searchspring) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/searchspring` Searchspring search, filters, and merchandising. Settings for this integration live under `integrations.searchspring` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | --------------- | | `apiUrl` | Api Url | text · optional | | `siteId` | Site Id | text · optional | # SearchTap (/docs/reference/integrations/searchtap) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/searchtap` SearchTap instant search and filters. Settings for this integration live under `integrations.searchtap` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------------------------------------- | ---------------------------------- | ------------------------ | | `defaultTrendingSearchesOptions` | Default Trending Searches Options | json · required | | `baseUrl` | Base Url | text · required | | `bearerToken` | Bearer Token | text · required · secret | | `defaultSearchSuggestionsOptions` | Default Search Suggestions Options | json · required | | `defaultOptions` | Default Options | json · required | | `defaultCollectionLinksInSuggestionsOptions` | Default Collection Links Options | json · required | # Shiprocket EDD (/docs/reference/integrations/shiprocket-edd) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shiprocket-edd` Shiprocket estimated delivery dates. ## Settings [#settings] | Key | Setting | Details | | --------------- | -------------- | ------------------------ | | `email` | Email | text · required | | `password` | Password | text · required · secret | | `pickupPincode` | Pickup Pincode | number · required | # Shiprocket (/docs/reference/integrations/shiprocket) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shiprocket` Shiprocket shipment tracking. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Shopflo (/docs/reference/integrations/shopflo) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shopflo` Shopflo one-click checkout and discounts. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. Settings for this integration live under `integrations.shopflo` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------------- | ------- | ------------------------ | | `salesChannelApiKey` | Api Key | text · required · secret | # Shopify Auth (/docs/reference/integrations/shopify-auth) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shopify-auth` Shopify customer account authentication. ## Settings [#settings] | Key | Setting | Details | | ---------- | --------- | --------------- | | `shopId` | Shop Id | text · required | | `clientId` | Client Id | text · required | # Shopify Custom (/docs/reference/integrations/shopify-custom) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shopify-custom` Shopify custom app connection (custom Admin API credentials). ## Settings [#settings] | Key | Setting | Details | | ----------------------- | ----------------------- | ------------------------ | | `appId` | Custom App Id | text · required | | `storefrontAccessToken` | Storefront Access Token | text · required · secret | # Shopify (/docs/reference/integrations/shopify) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/shopify` Shopify store connection — storefront and admin access. Settings for this integration live under `integrations.shopify` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------------- | --------------------------- | ------------------------ | | `storefrontAccessToken` | Storefront Access Token | text · required · secret | | `appOnlyCouponCodeSuffix` | App Only Coupon Code Suffix | text · required | | `shopifyDomain` | Shopify Domain | text · required | | `domain` | Domain | text · required | # Simpl (/docs/reference/integrations/simpl) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/simpl` Simpl pay-later checkout. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Smart Wishlist (/docs/reference/integrations/smart-wishlist) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/smart-wishlist` Smart Wishlist (webmarked.net): syncs the signed-in customer's wishlist between web and app. Settings for this integration live under `integrations.smartWishlist` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------- | -------- | --------------- | | `endpoint` | Endpoint | text · required | # Smile (/docs/reference/integrations/smile) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/smile` Smile.io loyalty — points, referrals, rewards. Settings for this integration live under `integrations.smile` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | ----------- | --------------- | | `channelKey` | Channel Key | text · optional | # Social Login (/docs/reference/integrations/social-login) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/social-login` Social login — Google/Apple/Facebook sign-in. Settings for this integration live under `integrations.socialSignin` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------------- | ------------------- | ------------------------ | | `multipassSecret` | Multipass Secret | text · required · secret | | `facebookAppId` | Facebook App ID | text · optional | | `facebookAppSecret` | Facebook App Secret | text · optional · secret | # Stamped (/docs/reference/integrations/stamped) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/stamped` Stamped product reviews and ratings. Settings for this integration live under `integrations.stamped` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------- | --------------- | --------------- | | `stampedPubKey` | Stamped Pub Key | text · required | | `storeUrl` | Store Url | text · required | | `sId` | S Id | text · required | # Stay AI (/docs/reference/integrations/stay-ai) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/stay-ai` Stay AI subscriptions. ## Settings [#settings] | Key | Setting | Details | | ----------------------- | ----------------------- | --------------------------- | | `accessToken` | API Key | text · required · secret | | `generateCustomerToken` | Generate customer token | boolean · optional · secret | # Subscriptions (/docs/reference/integrations/subscriptions) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/subscriptions` Customer subscription management (Recharge-backed). ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Swatch King (/docs/reference/integrations/swatch-king) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/swatch-king` Swatch King variant swatches and options. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Swish (/docs/reference/integrations/swish) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/swish` Swish wishlist: syncs the signed-in customer's wishlist with Swish and renders it as a collection-style grid in the app. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Tidio (/docs/reference/integrations/tidio) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/tidio` Tidio live chat and support. Settings for this integration live under `integrations.tidio` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------- | --------------- | --------------- | | `pageUrl` | Hosted Page URL | text · required | # TrueFit (/docs/reference/integrations/truefit) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/truefit` A pure React Native implementation of the Truefit Consumer App SDK for size recommendations. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Unbxd Recommendations (/docs/reference/integrations/unbxd-recommendations) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/unbxd-recommendations` Unbxd product recommendations rendered as PDP, cart and generic screen blocks. Settings for this integration live under `integrations.unbxd-recommendations` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------- | -------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | | `siteKey` | Site Key | text · required | | `baseUrl` | Base Url | text · required | # Unbxd Search (/docs/reference/integrations/unbxd-search) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/unbxd-search` Unbxd search, filters, and recommendations. Settings for this integration live under `integrations.unbxd` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------- | -------- | ------------------------ | | `apiKey` | Api Key | text · optional · secret | | `baseUrl` | Base Url | text · optional | | `siteKey` | Site Key | text · optional | # Unicommerce (/docs/reference/integrations/unicommerce) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/unicommerce` Unicommerce order and inventory sync. ## Settings [#settings] | Key | Setting | Details | | ---------- | ------------ | ------------------------ | | `url` | Url/Endpoint | text · required | | `username` | Username | text · required | | `password` | Password | text · required · secret | # Verifast Ai Chatbot (/docs/reference/integrations/verifast-ai-chatbot) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/verifast-ai-chatbot` Verifast AI shopping assistant: embeds the Verifast chatbot web app in a WebView, using the signed-in customer's id as the chat session id. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Videowise (/docs/reference/integrations/videowise) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/videowise` Videowise live-shopping channel integration for Appbrew apps. This integration ships native code. Enabling it needs a new app build submitted to the stores, not just a config change. ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Vip Rewards (/docs/reference/integrations/vip-rewards) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/vip-rewards` VIP rewards loyalty program. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | ------------------------ | | `apiKey` | API Key | text · required · secret | # ViSenze (/docs/reference/integrations/visenze) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/visenze` ViSenze visual search and recommendations. Settings for this integration live under `integrations.visenze` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------- | ------------ | --------------- | | `analytics` | Analytics | text · optional | | `appKey` | App Key | text · optional | | `baseURL` | Base U R L | text · optional | | `imageSearch` | Image Search | text · optional | # Wair (/docs/reference/integrations/wair) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/wair` WAIR size recommendation: a single WhatsMySize block that renders the merchant's WAIR size-guide web page in a WebView and bridges its si... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # WebEngage (/docs/reference/integrations/webengage) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/webengage` WebEngage engagement — push, in-app, event analytics. Settings for this integration live under `integrations.webengage` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------------- | ------------- | --------------- | | `eventMapping` | Event Mapping | text · optional | | `paramMapping` | Param Mapping | text · optional | | `uniqueId` | Unique Id | text · optional | # Wiser (/docs/reference/integrations/wiser) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/wiser` Wiser personalized product recommendations. Settings for this integration live under `integrations.wiser` in your app config. ## Settings [#settings] | Key | Setting | Details | | ----------- | ------------------------- | ------------------------ | | `secretKey` | Secret Key | text · required · secret | | `shop` | Shop Domain | text · required | | `partner` | Partner Name ( Optional ) | text · optional | | `baseUrl` | Base URL ( Optional ) | text · optional | # Wishlist Plus (/docs/reference/integrations/wishlist-plus) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/wishlist-plus` Swym Wishlist Plus — wishlists across devices. Settings for this integration live under `integrations.wishlistPlus` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------- | -------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | | `pid` | Pid | text · required | | `endpoint` | Endpoint | text · required | # Wizzy Search (/docs/reference/integrations/wizzy-search) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/wizzy-search` Newer Wizzy search provider: WizzySearchProvider serves search results, autocomplete suggestions (V2), and default "empty search" suggest... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # Wizzy (/docs/reference/integrations/wizzy) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/wizzy` Wizzy instant search and filters. Settings for this integration live under `integrations.wizzy` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------- | --------------------- | ------------------------ | | `storeId` | Store Id | text · required | | `apiKey` | API Key | text · required · secret | | `baseUrl` | Base Url ( Optional ) | text · optional | # Xeno (/docs/reference/integrations/xeno) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/xeno` Xeno loyalty points for Fabindia's Fabfamily program: balance, tier, points history and the Fabfamily site, read-only. Settings for this integration live under `integrations.xeno` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------- | ---------------- | ------------------------ | | `basicAuthToken` | Basic Auth Token | text · required · secret | # Yotpo Reviews (/docs/reference/integrations/yotpo-reviews) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/yotpo-reviews` Yotpo product reviews and ratings. Settings for this integration live under `integrations.yotpo-reviews` in your app config. ## Settings [#settings] | Key | Setting | Details | | -------- | ------- | --------------- | | `appKey` | App Key | text · required | # Yotpo Rewards (/docs/reference/integrations/yotpo-rewards) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/yotpo-rewards` Yotpo Loyalty points and rewards. Settings for this integration live under `integrations.yotpo-loyalty` in your app config. ## Settings [#settings] | Key | Setting | Details | | ------------ | ----------- | --------------- | | `merchantId` | Merchant Id | text · optional | | `actionName` | Action Name | text · optional | # Yourtoken (/docs/reference/integrations/yourtoken) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/yourtoken` YourToken loyalty and rewards. Settings for this integration live under `integrations.yourtoken` in your app config. ## Settings [#settings] | Key | Setting | Details | | ---------------- | ------------------- | ------------------------ | | `apiKey` | Api Key | text · required · secret | | `brandDomain` | Brand Domain | text · required | | `consumerId` | Consumer Id | number · required | | `shopifyStoreId` | Shopify Store Id | number · required | | `baseURL` | Base URL (Optional) | text · optional | # Zevi (/docs/reference/integrations/zevi) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/zevi` Zevi AI search and discovery. Settings for this integration live under `integrations.zevi` in your app config. ## Settings [#settings] | Key | Setting | Details | | --------------------- | --------------------- | --------------- | | `searchSuggetionsUrl` | Search Suggetions Url | text · required | | `baseUrl` | Base Url | text · required | | `store` | Store | text · required | # Zippy (/docs/reference/integrations/zippy) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} Package: `@gauntlet/zippy` Vendor-based pincode serviceability + Estimated Delivery Date (EDD) widget for the product page, powered by the Zippy API (Rising Sigma T... ## Settings [#settings] This integration has no merchant-entered settings — Appbrew configures it for you when it is enabled. # @gauntlet/brewery (/docs/reference/packages/brewery) `@gauntlet/brewery` is the app shell that your app's `App.tsx` composes. What brewery does on launch, in order: 1. Loads the app config (with an offline cache) for your `APP_ID`. 2. Initializes the store, integrations, and analytics trackers declared in config. 3. Builds navigation from the config's screens. 4. Renders each screen's blocks through the [block registry](/docs/concepts/screens-and-blocks). The places your code meets brewery: * **`src/app/App.tsx`** — the shell composition your repo ships with; integration providers wrap here. * **`src/app/register-blocks.ts`** — called during boot so your custom blocks are in the registry before first render ([Custom blocks](/docs/build/custom-blocks)). * **`app`** — the extension host, your entry point into the package on 0.27.0 and later: `app.components.register`, `app.modules.register`, `app.actions.extend` ([Extending app behavior](/docs/build/extending-app-behavior)). Treat the rest of the shell as platform internals: it upgrades with the [lockstep platform version](/docs/concepts/package-ecosystem), and code that reaches into it can break on upgrade. # @gauntlet/components (/docs/reference/packages/components) `@gauntlet/components` is the shared component library, organized by atomic design and addressed by **subpath imports**; the root barrel deliberately exports only a handful of top-level components. ```ts import { ProductCard } from '@gauntlet/components/molecules/product-card/product-card' import { useBlockSettings, useBlockStyle } from '@gauntlet/components/style-utils' ``` For new block UIs, compose [@gauntlet/ui-builder](/docs/reference/packages/ui-builder) elements instead of reaching into this library. Components here are for reuse of existing product surfaces and for maintaining older blocks. `./style-utils` is the subpath you will use most: it re-exports `useBlockSettings`, `useBlockStyle`, and `useVisibility`, the settings/style/visibility trio every block needs. ## Import surface [#import-surface] {/* generated:begin components-exports */} The package exposes 405 subpath imports, grouped by atomic-design layer: | Import root | Modules | | ------------------------------------ | ------- | | `@gauntlet/components/atoms/*` | 17 | | `@gauntlet/components/blocks/*` | 9 | | `@gauntlet/components/hocs/*` | 1 | | `@gauntlet/components/index/*` | 1 | | `@gauntlet/components/molecules/*` | 252 | | `@gauntlet/components/organisms/*` | 122 | | `@gauntlet/components/registry/*` | 1 | | `@gauntlet/components/style-utils/*` | 1 | | `@gauntlet/components/utils/*` | 1 | {/* generated:end */} # Overview (/docs/reference/packages) {/* GENERATED FILE — do not edit by hand. Regenerate with: pnpm --filter dev-docs generate */} All `@gauntlet/*` packages version together — one platform release is one version across the whole set. Packages with a linked page have a curated guide; the rest are listed for completeness. | Package | Version | What it is | | ----------------------------------------------------------------------------- | ------- | --------------------------------------------------------------------------------- | | [`@gauntlet/state`](/docs/reference/packages/state) | 0.39.0 | App state and the hook families: blocks, products, cart, user, settings, queries. | | [`@gauntlet/types`](/docs/reference/packages/types) | 0.39.0 | Type contracts: BaseBlockProps, config, product, theme, and style schemas. | | [`@gauntlet/ui-builder`](/docs/reference/packages/ui-builder) | 0.39.0 | The rendering engine and element library blocks are composed from. | | [`@gauntlet/components`](/docs/reference/packages/components) | 0.39.0 | Shared components addressable by subpath imports. | | `@gauntlet/block-registry` | 0.39.0 | The block registry: register components, resolve them from config. | | [`@gauntlet/brewery`](/docs/reference/packages/brewery) | 0.39.0 | The app shell that boots an Appbrew app. | | `@gauntlet/analytics` | 0.39.0 | Analytics provider and the tracker base classes integrations extend. | | [`@gauntlet/schemas`](/docs/reference/packages/schemas) | 0.39.0 | Validation schemas, including the integration manifest. | | `@gauntlet/utils` | 0.39.0 | General utilities shared across packages. | | [`@gauntlet/integrations-utils`](/docs/reference/packages/integrations-utils) | 0.39.0 | Helpers for integration authors. | | `@gauntlet/icons` | 0.39.0 | The shared icon set. | | `@gauntlet/app-update` | 0.39.0 | In-app update prompts and version gating. | | `@gauntlet/block-forms` | 0.39.0 | Form primitives for blocks that collect input. | | `@gauntlet/bottom-sheet` | 0.39.0 | Bottom-sheet primitives used across the app. | | `@gauntlet/child-navigator` | 0.39.0 | Nested navigation containers for screens. | | `@gauntlet/container-registry` | 0.39.0 | Screen-level container registration, sibling to the block registry. | | `@gauntlet/containers` | 0.39.0 | Built-in screen containers. | | `@gauntlet/cookie-manager` | 0.39.0 | Cookie and web-session utilities for webviews. | | `@gauntlet/discount` | 0.39.0 | Discount display and application helpers. | | `@gauntlet/dynamic-fonts` | 0.39.0 | Runtime font loading for themes. | | `@gauntlet/enhanced-fetch` | 0.39.0 | Fetch wrapper with retries and telemetry hooks. | | `@gauntlet/event-emitter` | 0.39.0 | A typed event bus shared across packages. | | `@gauntlet/floating-blocks` | 0.39.0 | Blocks that float over screen content. | | `@gauntlet/local-storage` | 0.39.0 | Persistent key-value storage. | | `@gauntlet/module-provider` | 0.39.0 | Runtime module wiring for optional features. | | `@gauntlet/orders-v4` | 0.39.0 | Order history and detail surfaces (v4). | | `@gauntlet/orders-v5` | 0.39.0 | Order history and detail surfaces (v5). | | `@gauntlet/pdp-components` | 0.39.0 | Product detail page building blocks. | | `@gauntlet/plp-components` | 0.39.0 | Product listing page building blocks. | | `@gauntlet/post-purchase` | 0.39.0 | Order-confirmation and post-purchase surfaces. | | `@gauntlet/react-utils` | 0.39.0 | Small React helpers shared across packages. | | `@gauntlet/rn-rulepilot` | 0.39.0 | The rules engine behind block visibility conditions. | # @gauntlet/integrations-utils (/docs/reference/packages/integrations-utils) `@gauntlet/integrations-utils` holds utilities the platform's own integrations share, useful when you [build an integration](/docs/build/integrations) of your own. ## Exports [#exports] {/* generated:begin integrations-utils-exports */} **function** (9): `addShopifyPrefixToId` · `buildMetafieldFields` · `getHandleFromUrl` · `isRecord` · `parseVariantDetail` · `removeShopifyPrefixFromId` · `resolveMetafieldNamespaces` · `splitMetafieldName` · `transformItems` {/* generated:end */} # @gauntlet/schemas (/docs/reference/packages/schemas) `@gauntlet/schemas` holds the platform's zod validation schemas. For external developers one matters most: the **integration manifest schema**, which validates the `appbrew` key of your integration's `package.json`. ```ts import { IntegrationManifestSchema } from '@gauntlet/schemas' const result = IntegrationManifestSchema.safeParse(packageJson.appbrew) if (!result.success) console.error(result.error.issues) ``` The exported types are useful even when you never run the validator: ```ts import type { IntegrationManifest, IntegrationSettingField } from '@gauntlet/schemas' ``` Field-by-field documentation of the manifest lives at [Manifest schema](/docs/reference/manifest-schema); how the manifest fits the bigger picture is in [The integrations model](/docs/concepts/integrations-model). # @gauntlet/state (/docs/reference/packages/state) `@gauntlet/state` is how your code reads and changes anything in the app: block config, products, the cart, the signed-in user, navigation, Shopify data. It is a Zustand-backed store, but you reach it only through hooks. ```ts import { useBlock, useBlockSettings, useProductByHandle, useAddToCart } from '@gauntlet/state' ``` Three rules apply to every hook here: 1. **Type the result.** Query and metafield hooks return `unknown`-shaped data; assert your own interface. 2. **Null-check before use.** Data arrives async — every result can be `undefined` on first render. 3. **Read config through `useBlockSettings`**, never from props — it applies the full settings-precedence chain ([Config and theme](/docs/concepts/config-and-theme)). For the conceptual model behind these hooks, read [State and data](/docs/concepts/state-and-data) first. ## Hooks by module [#hooks-by-module] {/* generated:begin state-hooks */} ### block [#block] | Hook | Parameters | When to use | | ------------------ | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `useBlockStyle` | the block from useBlock | Resolved style for the block: theme style → theme variant → instance style, deep-merged. | | `useBlockSettings` | the block from useBlock; optional \{ extends } to inherit a parent block’s settings | Read your block’s merged config (global settings → variant → instance). Never read source/options off props directly. | | `useBlockTestID` | block, screenId, optional suffix | Stable testID for E2E selectors on a block instance. | ### cart [#cart] | Hook | Parameters | When to use | | ----------------------------------------- | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | | `useBuyNow` | product handle; optional checkForRequirements | Skip-the-cart purchase action for a product. | | `useCartItems` | | Just the line items when you don’t need the whole cart. | | `useBackInStockNotifications` | getProduct: (productHandle: string) => any, handle: string, variantId: any, toastSettin… | | | `useCheckout` | optional sign-in modal control and continuation | Starts checkout, routing through login when the store requires it. | | `useUpdateUserAddressBasedOnLocalization` | | | ### common [#common] | Hook | Parameters | When to use | | ------------------ | ----------- | ----------- | | `useIsStateTruthy` | str: string | | | `useIsStatusIdle` | str: string | | ### constants [#constants] | Hook | Parameters | When to use | | -------------- | ---------- | ----------- | | `useConstants` | | | ### customer-prices [#customer-prices] | Hook | Parameters | When to use | | ----------------------- | ---------------------------------------------- | -------------------------------------------------------------------------------------------------- | | `useCustomerPrice` | productId: string \| number, variantId: string | The signed-in customer's own price for a variant, and whether it is still loading. | | `useVolumeTiers` | productId: string \| number, variantId: string | The customer's volume tiers for a variant, when an integration sets them. | | `useCartLinePrice` | productId: string \| number, variantId: string | What the customer pays for a cart line on the wholesale checkout, and whether it is still loading. | | `useCartPricesLoading` | | True while any cart line's customer price is still loading. | | `useCartCustomerPrices` | | Customer prices and tiers for every cart line, keyed by numeric variant id. | ### deeplink [#deeplink] | Hook | Parameters | When to use | | ------------- | ---------- | ----------- | | `useDeepLink` | | | ### estimated-delivery-date [#estimated-delivery-date] | Hook | Parameters | When to use | | -------- | ---------- | ----------- | | `useEdd` | | | ### filter [#filter] | Hook | Parameters | When to use | | --------------------- | ---------- | ----------- | | `useSetSortKey` | | | | `useQueryData` | | | | `useSetQueryData` | | | | `usePriceData` | | | | `useResetFilters` | | | | `useFilterStaticData` | | | ### hooks [#hooks] | Hook | Parameters | When to use | | --------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `useBlock` | screenId, componentId, instanceId — all from your BaseBlockProps | First call in every block: resolves this placement’s config entry from state. | | `useAppBar` | screenId: string | | | `useProductTags` | productHandle: string | | | `useProductType` | productHandle: string | | | `useCollectionId` | \{ id, handle, } | | | `useCheckAndFullfillRequireMents` | options | | | `useAddToCart` | product handle; optional checkForRequirements | Returns the add-to-cart action for a product; handles requirement checks (e.g. variant selected). | | `useUpdateQuantityForLineItem` | | | | `useUpdateQuantityForLineItems` | | | | `useUpdateSellingPlanForLineItem` | | | | `useApplyDiscountCode` | | Apply a discount code to the cart; pair with useRemoveDiscountCode. | | `useRemoveDiscountCode` | | | | `useRemoveItemFromCart` | | | | `useResetCart` | | | | `useClearGiftItems` | | | | `useLineItems` | | Line items enriched for display (images, options). Prefer useLineItemsV2 in new code. | | `useLineItemsV2` | | | | `useCart` | | The cart object: items, totals, discounts. Re-renders on cart changes. | | `useModal` | | Open and close app modals from block code. | | `useAddress` | | | | `useUser` | | The signed-in customer (or undefined). Gate account-only UI on it. | | `usePaymentUrl` | | | | `useDomain` | | | | `useCheckoutInfo` | screenId: string | | | `useVariants` | | | | `useSellingPlan` | | | | `useVariantsWithSubscription` | | | | `useSelectDefaultVariant` | | Preselect a sensible default variant when a product screen mounts. | | `useSearch` | \{ searchKey, limit } | Search results for a query against the store catalog. | | `useDebounce` | value, delay ms | Debounced value — search inputs and other rapid-fire state. | | `useAddressFromStorage` | | | | `useDeviceDimensions` | | Live screen dimensions for responsive sizing. | | `usePageDimensions` | | Dimensions blocks should lay out against — the page width beside a vertical tab bar, else the device size. | | `useDevice` | | Device info (platform, notch…) for platform-aware rendering. | | `useTheme` | | Theme tokens (colors, fonts) for styling custom UI consistently. | | `useSettings` | | Raw settings map for the app. Usually you want useBlockSettings or useGlobalSettings instead. | | `useGlobalStyle` | | App-wide style defaults blocks inherit. | | `useConfig` | | The whole app config document. Prefer narrower hooks; reach for this in shell-level code. | | `useProduct` | productId | Product data by id, from store cache or fetched remotely. | | `useProductByHandle` | product handle | Product data by handle — the common choice inside product blocks. | | `useProductsByHandles` | array of product handles | Batch variant of useProductByHandle for lists and carousels. | | `useCollectionTitle` | | | | `useCollection` | | The active collection and its products on collection screens. | | `useLoadMore` | | | | `useFormDataFromStorage` | | | | `useReRenderKey` | | Generates a key that forces a React component to re-render when dependencies change. | ### localization [#localization] | Hook | Parameters | When to use | | -------------------- | -------------------- | --------------------------------------------------------------------- | | `useLocalization` | | Active country/currency localization state. | | `useCountryCode` | | | | `useCurrencyCode` | | The active currency code for formatting. | | `useCurrencySymbol` | currencyCode: string | | | `usePrice` | a price value | Format a price in the shopper’s active currency, conversion included. | | `useConversionRates` | | | ### metafield [#metafield] | Hook | Parameters | When to use | | --------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | `useCollectionMetafields` | collectionId + array of \{ namespace, key } | Collection-level metafields (by-handle variant available). | | `useCollectionMetafieldsByHandle` | collectionHandle: string \| undefined, listOfNamespaceAndKeys | | | `useMultipleMetafields` | product handle + array of \{ namespace, key } descriptors | Read product metafields. Assert your own result interface and null-check before access. | | `useMetafieldQuery` | product handle, \{ namespace, key } list, query options | Metafield read with query control (e.g. reference resolution) when useMultipleMetafields is not enough. | | `useShopifyMediaImages` | ids: Array\ \| null, productHandle: string, namespaceAndKeyObj | | | `useCollectionMetafieldsQuery` | collectionId: string \| null \| undefined, namespaceAndKeys: Array\ \| Metafield… | | ### modal [#modal] | Hook | Parameters | When to use | | ---------------------------------- | ---------- | --------------------------------- | | `useBottomSheetModal` | | Bottom-sheet variant of useModal. | | `useCloseModalOnHardwarebackPress` | | | ### module [#module] | Hook | Parameters | When to use | | -------------- | ----------- | ------------------------------------------------------------------------------------------------- | | `useModule` | module name | Access optional platform modules (wishlist, reviews…) that may or may not be enabled for the app. | | `useWishlist` | | The wishlist module when enabled: items plus add/remove actions. | | `useAnalytics` | | The analytics module — track custom events from blocks through every configured tracker. | ### order [#order] | Hook | Parameters | When to use | | ----------------- | ---------- | ----------------------------------------------------------------- | | `useOrderDetails` | orderId | One order’s details for order-history and post-purchase surfaces. | ### plp-grid [#plp-grid] | Hook | Parameters | When to use | | ------------------ | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- | | `usePlpGridToggle` | | Grid density on the current product listing: the offered layouts, the active one, and a setter — for building your own density toggle. | ### product [#product] | Hook | Parameters | When to use | | --------------------------- | -------------------------------------------------------------- | ----------------------- | | `useProductRecommendations` | handle: string, mode: 'RELATED' \| 'COMPLEMENTARY' | | | `useProductDescription` | handle: string | | | `useRecentlyViewedProducts` | handle: ProductHandle | Returns \{status, data} | | `useProductByIds` | productIds: Array\ \| null, hideUnavailableProducts | | ### quantity-restriction [#quantity-restriction] | Hook | Parameters | When to use | | -------------------------- | ------------------------------------------------ | ----------- | | `useQuantityLimitInCart` | productTags: Array\ | | | `useProductQuantityInCart` | productHandle: string, variantId: string \| null | | | `useCartQuantityLeft` | line: CartQuantityLine | | | `useMaxVariantInventory` | item: BaseLineItem | | ### reviews [#reviews] | Hook | Parameters | When to use | | ------------------------- | ----------------- | ----------- | | `useProductReviewSummary` | productId: string | | | `useProductReviews` | productId: string | | ### rewards [#rewards] | Hook | Parameters | When to use | | ----------------------- | ---------- | ----------- | | `useRewards` | | | | `useReferralHistory` | | | | `useWalletTransactions` | | | | `useRedeemedRewards` | | | | `useRewardsProgram` | | | ### route [#route] | Hook | Parameters | When to use | | -------------------- | ---------- | ---------------------------------------------------------------------------------------------------- | | `useReplaceScreen` | | Replace the current screen instead of pushing — for redirects. | | `useLink` | | Returns the navigate action used across the app — screens, products, URLs. The standard way to link. | | `useRoute` | | The current route and its params. | | `useRouteName` | | | | `useSetWebUrl` | | | | `useSetOverrideBack` | | | ### screen [#screen] | Hook | Parameters | When to use | | ------------------ | ----------------------------- | ----------- | | `useBlockLocation` | params: BlockVisibilityParams | | | `useActiveScreen` | | | ### search [#search] | Hook | Parameters | When to use | | ------------------------- | ------------------------------- | ----------- | | `useSearchKey` | | | | `useSetSearchKey` | | | | `useGetSearchSuggestion` | | | | `useIsSearchActive` | | | | `useSetIsSearchActive` | | | | `useSuggestions` | \{ allowEmpty, limit, } | | | `useSuggestionsV2` | \{ allowEmpty, limit, } | | | `useGetSearchResults` | | | | `usePastSearches` | | | | `useSetPastSearches` | | | | `useTrendingProducts` | limit: number | | | `useSearchRecommendation` | \{ type, limit, idSource, } | | | `useTrendingSearches` | \{ limit }: \{ limit?: number } | | ### settings [#settings] | Hook | Parameters | When to use | | ------------------------ | --------------------------- | --------------------------------------------------------------------------------------------- | | `useGlobalSettings` | | App-wide settings that are not tied to one block. | | `useIntegrationSettings` | the integration’s configKey | Your integration’s merchant-entered settings from integrations.\. Type the result. | ### shipping-address [#shipping-address] | Hook | Parameters | When to use | | -------------------- | ---------- | ----------- | | `useShippingAddress` | | | ### shop [#shop] | Hook | Parameters | When to use | | --------- | ---------- | ----------- | | `useShop` | | | ### shopify-query [#shopify-query] | Hook | Parameters | When to use | | ----------------- | --------------------------------- | ------------------------------------------------------------------------------------------------ | | `useShopifyQuery` | a Storefront GraphQL query string | Run a typed Storefront query: const data = useShopifyQuery\(query). Always null-check. | ### sizing [#sizing] | Hook | Parameters | When to use | | -------------- | ---------- | ----------- | | `useSizeGuide` | | | ### title [#title] | Hook | Parameters | When to use | | ---------- | ------------------------------------------------------------------------------- | ----------- | | `useTitle` | routeName: string, screenId: string, params: any, options: Record\ | | ### variant-selector [#variant-selector] | Hook | Parameters | When to use | | -------------------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `useVariantSelector` | options object: productData plus display/selection options | The variant-selection engine behind option pickers — selected options, available values, image switching. | ### video [#video] | Hook | Parameters | When to use | | --------------- | ----------------------------------------------------------------- | ----------- | | `useVideoState` | \{ componentId, instanceId, index, options, }: useVideoStateProps | | {/* generated:end */} # @gauntlet/types (/docs/reference/packages/types) `@gauntlet/types` is pure types: the contracts your code implements against. Every block, config shape, and product structure in the platform is typed here. ## BaseBlockProps [#baseblockprops] The contract every block component receives ([Screens and blocks](/docs/concepts/screens-and-blocks)): ```ts import { BaseBlockProps } from '@gauntlet/types' export interface BaseBlockProps { componentId: string instanceId: string screenId: string setDynamicFooter?: (element: ReactElement) => void index: number length: number } ``` Extend it for your own block's props: ```ts export interface PromoBannerProps extends BaseBlockProps {} ``` ## Contract modules you will use [#contract-modules-you-will-use] | Import | What it types | | -------------------------------------- | ------------------------------------------------------------------------------------------------ | | `BaseBlockProps`, `BaseComponentProps` | Block component contracts and the `style`/`source`/`options` shapes | | `AppConfig`, `IntegrationsConfig` | The app config document and the `integrations.` map | | `BaseProduct`, `BaseProductVariant` | Product and variant data as hooks return them | | Theme and style types | Theme tokens plus zod style schemas (`baseStyleSchema`, `baseTextStyleSchema`, …) | | `AnalyticsEvent`, `AnalyticsPayload` | Event names and payloads trackers receive ([Analytics trackers](/docs/build/analytics-trackers)) | Everything is exported from the package root: ```ts import { AppConfig, BaseProduct, AnalyticsEvent } from '@gauntlet/types' ``` # @gauntlet/ui-builder (/docs/reference/packages/ui-builder) `@gauntlet/ui-builder` is the element vocabulary blocks are composed from: atoms (`Box`, `Text`, `Image`, `Button`, …), helper elements (`Faq`, `MediaList`, `Cta`, …), layout elements, and the `Content` renderer that turns layout config into UI. **Start with the [UI elements catalog](/docs/build/atoms-catalog)**, which walks every element with usage guidance. ```ts import { Box, TextElement, Media, Content, getLayoutItem } from '@gauntlet/ui-builder' ``` ## Exports [#exports] {/* generated:begin ui-builder-exports */} **const** (2): `GlassAppearanceContext` · `ScreenScrollSourceContext` **function** (14): `deepMerge` · `getAspectRatio` · `getBorderRadiusValue` · `getCompressedShopifyImageURL` · `getContentWidth` · `getGlassSurface` · `getHeaders` · `getHorizontalSpacingStyle` · `getWidthForShopifyImageURL` · `hapticFeedback` · `registerGlassSurface` · `resolveRichTextTagsStyle` · `transformImageUrl` · `useScreenScrollClaim` **type** (19): `BackgroundImageData` · `BaseComponent` · `BaseComponentIds` · `BaseComponentsMapType` · `BaseElementProps` · `BaseLayoutElementProps` · `ComponentId` · `ComponentsMap` · `GlassAppearance` · `GlassAppearanceEvent` · `GlassSurfaceProps` · `HapticTouchValue` · `HorizontalPosition` · `ImageQuality` · `Layout` · `LayoutItem` · `RootLayoutItem` · `ScreenScrollSource` · `VerticalPosition` {/* generated:end */}