↑↓ move↵ open⌘K toggle

    templates/page.apps.json

    Apps & automation.

    Discounts Shopify can't do natively, checkout blocks for A/B tests, and Workers that take busywork off the team.

    12apps, Functions and Workers
    5Shopify Functions
    5Workers and automations
    3live on real stores
    In developmentEmbedded Shopify app

    Big Discounts

    Free-gift rules any merchant can build: the gift lands in the cart by itself and a Rust Function makes it free.

    • Triggers by cart value, product, tag or collection
    • Same rule engine in JS and Rust, kept in step by contract tests
    • English and Spanish admin
    • React Router
    • Polaris
    • Prisma
    • Rust Function
    • Theme app embed

    Apps, Functions and Workers

    LiveDiscount Function + admin app

    Build Your Own Bundle

    The bundle builder promises a price; the Function makes checkout honor it and ignores anything the browser claims.

    • Up to 30% off one-time, 55% with Subscribe & Save
    • Recounts units itself, cheapest first
    • Ladders edited in the app, no deploy
    • Discount Function
    • TypeScript
    • Polaris
    • Metafields
    ReleasedDiscount Function

    Cart reward ladder

    Spend more, save more, as an A/B test: only carts in the test variant get the extra percentage at checkout.

    • 5%, 10% and 15% tiers above free shipping
    • Thresholds converted across 16 currencies
    • 37 tests against the compiled Function
    • Discount Function
    • Intelligems
    • TypeScript
    • vitest
    InternalCloudflare Worker + Slack app

    Website requests bot

    A Slack message becomes a Notion project with its task, prefilled by AI, and status flows back to the thread.

    • Request a page, report a bug or ask for a change
    • Claude prefills the form from the message
    • Notion status mirrored as Slack reactions
    • Workers
    • KV
    • Slack
    • Notion API
    • Claude
    Cloudflare Worker

    GLP-1 discount API

    Once a customer is confirmed for the GLP-1 program, one call returns their personal, single-use $100 code.

    • One email can only ever produce one code
    • Shopify token cached at the edge
    • Constant-time auth, runbook and test suite
    • Workers
    • KV
    • Admin GraphQL
    A/B testCheckout UI extension

    Checkout social proof

    Before-and-after stories in checkout, shown only to the test variant, so the lift can be measured.

    • Swipeable cards inside checkout
    • Reads the test bucket from the cart
    • Fails open: checkout never breaks
    • Checkout extension
    • Preact
    • Intelligems
    ReleasedDiscount Functions

    Promo Functions

    Promotions Shopify's discounts can't express, like a free supplement with any skincare item.

    • Buy from one collection, get one free from another
    • Employee perk with a usage limit
    • Collections picked in the discount screen
    • Discount Functions
    • Shopify Flow
    • Polaris
    Discount Function

    Landing page bundles & gifts

    Bundle prices and free gifts that only exist on the landing page that offered them, never on the regular PDP.

    • One rule per landing page, no redeploy
    • Gift units capped at the units bought
    • 77 tests
    • Discount Function
    • Line properties
    • Metafields
    Cloudflare Worker

    Live purchase proof

    Real recent orders, shown as a quiet popup on the offer pages. Test orders and renewals are skipped.

    • Shopify Flow posts each new order
    • Last 200 orders kept at the edge
    • First name and initial only
    • Workers
    • KV
    • Shopify Flow
    • Webflow
    Cloudflare Workers

    Funnel edge router

    Ad traffic is routed and split-tested at the edge, then carts are built for Shopify checkout from Webflow.

    • Country-aware redirects with a bypass
    • HTML split tests before the page loads
    • Cart API for Storefront and Recharge
    • Workers
    • Storefront API
    • Recharge
    • zod
    Nightly job

    Social proof sync

    Hundreds of hand-typed "happy customers" numbers across the site now update themselves every night.

    • Counts from Admin GraphQL and ShopifyQL
    • Sanity bands: a wrong number is never written
    • One metaobject feeds every page
    • GitHub Actions
    • ShopifyQL
    • Metaobjects
    A/B testCart Transform Function

    A/B product names

    When a test renames a product on the storefront, checkout shows the same name instead of the old one.

    • Approved names only, from a metafield
    • Does nothing for the control group
    • 13 tests
    • Cart Transform
    • TypeScript
    • Shopify Plus

    workers/mariocuetoj.com

    This site is a Worker too.

    Press the button: the request really goes to the edge and back, and the code beside it is the real source.

    1. Browserfetch("/api/xp")
    2. Cloudflare edgeNearest data center, TLS, cache rules
    3. WorkerAstro on workerd: SSR home + /api routes
    4. D1SQLite at the edge: xp_events, messages
    Static assetsEvery page but home is prerendered and served from the edge cache
    TurnstileThe contact form is verified server-side before D1 sees it
    Workers BuildsPush to main → type check → build → deploy
    Status
    –
    Time
    –
    Edge
    –
    Data
    –
    GET /api/xp · press the button to call it from your browser
    export function assign(request: Request, url: URL, cookies: AstroCookies): Assignment {
      const secure = url.protocol === 'https:';
      const forced = url.searchParams.get('variant');
      if (isVariant(forced)) return { variant: forced, track: false, forced: true };
      if (isBot(request)) return { variant: VARIANT_KEYS[0], track: false, forced: false };
    
      visitorId(cookies, secure);
      const name = cookieVariant(heroTest.id);
      const saved = cookies.get(name)?.value;
      if (isVariant(saved)) return { variant: saved, track: true, forced: false };
    
      const variant = VARIANT_KEYS[Math.floor(Math.random() * VARIANT_KEYS.length)];
      cookies.set(name, variant, { path: '/', maxAge: YEAR, httpOnly: true, sameSite: 'lax', secure });
      return { variant, track: true, forced: false };
    }

    Something your team does by hand every week? That's usually a Worker, a Function or a small app.

    Tell me what it is

    sections/contact.liquid

    Let's buildthe next one.

    Hiring for a senior Shopify role, need a storefront rebuilt, an app built or a workflow automated? Send a line.