npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@relyon/store-kit

v0.1.61

Published

Relyon Core: run npx @relyon/store-kit init in your store project, then read the relyon-setup skill and finish with npx @relyon/store-kit doctor. Get found and bought by AI shopping agents, with checkout on your own domain.

Readme

Relyon Core — payments, products and optional shopping pages

Before building, ask the user: 'Do you want to (1) accept card payments in your own app — no Relyon product catalog or shopping pages; (2) also list products so AI shopping agents can find and buy them; or (3) also have Relyon's kit build the shopping pages for you?' Don't choose for them. Then follow the matching quickstart.

  1. Payments for everyone: https://core.getrelyon.com/docs/payments-quickstart and the relyon-payments skill. No catalog, kit or shopping pages required.
  2. Products and agent selling: https://core.getrelyon.com/docs. Add catalog, feeds, agent checkout and AI visibility only when requested.
  3. Shopping pages: https://core.getrelyon.com/docs/quickstart. The kit instructions below apply only to this optional layer.

Live payments support human buyers and agents in all integrations after staff approval and processor onboarding, with existing safety checks. Pricing coming soon.

Optional shopping pages

Build an AI-ready online store with any coding agent. Start in your app's directory:

npx @relyon/store-kit@latest init

Relyon payments and AI-agent commerce for a store app, in one npm package: @relyon/store-kit version 0.1.61, plus seven skills covering payments, products and optional shopping pages on the store's own server and domain.

Start here

Read the copied relyon/QUICKSTART.md first, or QUICKSTART.md here. Open the skill for the integration the user chose. The seven skills are references, not mandatory whole-file reading. Do not read dist files, framework docs, or the full README to start. The Recommended build order points to the same seven-stage flow. Package managers may suppress the best-effort install notice or disable scripts; this instruction and init work without that notice.

Tell your coding agent (Claude Code, Codex, Cursor, Replit Agent or OpenCode) your store idea and paste this prompt, with your idea in place of <your store idea>:

Build my store: <your store idea>. Use Relyon Core: run npx @relyon/store-kit@latest init first, then read relyon/QUICKSTART.md.

npx @relyon/store-kit init runs in the app's directory and:

  • adds @relyon/[email protected] (exact version) with the app's package manager, picked from its lockfile (npm, pnpm, Yarn or Bun), and creates a minimal private package.json if there is none;
  • copies the bundled skills to .agents/skills (Codex, Replit Agent, OpenCode), .claude/skills (Claude Code) and .cursor/skills (Cursor);
  • copies relyon/QUICKSTART.md and points AGENTS.md and CLAUDE.md to it;
  • with --store "<your store idea>", writes the idea word for word into relyon-store-brief.md, the store brief the skills read.

It never overwrites a file of yours that differs: it reports each conflict and writes nothing. An AGENTS.md or CLAUDE.md without the Relyon block gets the block appended, every other line untouched. A second run changes nothing. --force replaces differing skill files and the quick start, the store brief, and only the marked Relyon block inside AGENTS.md and CLAUDE.md. --skip-install skips the package install. It never asks for a key on the command line and never prints one. Init never creates sandboxes: the owner creates the store's Test key at https://core.getrelyon.com/settings/api-keys (Account Settings → API keys), then runs npx @relyon/store-kit init --key-from-stdin. The key is saved in an owner-only private folder outside the app and every git tree: RELYON_PRIVATE_DIR when set, otherwise one folder per project under $XDG_CONFIG_HOME/relyon or ~/.config/relyon. Init also sets RELYON_API_KEY in .env (0600, gitignored; refused with a reason when .env is tracked). RELYON_LIVE=true keeps init off the saved Test key. Import loadTestConfig from @relyon/store-kit/server-config on the Node server only, and call it with { project: process.cwd() }: a plain Node/Express server doesn't read .env by itself (dotenv also works). Never cat or print .env, and never paste the key into a command. Claiming ownership does not gate building; unclaimed sandboxes expire. With no key, init prints the connect nudge, then the key step with one command: https://core.getrelyon.com/settings/api-keys, then npx @relyon/store-kit init --key-from-stdin (the key is read from stdin or a hidden prompt), or RELYON_API_KEY in the host's secret settings. Keep building with the kit mounted and checkout waiting for sandbox key: every kit path answers waiting_for_sandbox_key until a key is saved. The Relyon Setup MCP connection never hands the key out; the owner is needed only for policies, the support contact, the store's key and Live approval. Restart the server and resume verification without rebuilding. After publish, run npx @relyon/store-kit webhook yourself to register the store's webhook endpoint (it saves the signing secret privately); re-run it after each publish if the URL changed. Then the doctor. In a pnpm workspace, run from the root, it installs the kit into the one server package, or, when it can't tell which package that is, skips the install and prints the pnpm --filter … add command to run; the skills still go to the project root.

From there follow the quick start's numbered steps. Ask only for missing merchant promises; use the centralized Test defaults without blocking the build. Secrets belong only in host secret tooling, never chat.

| Skill | What it covers | | --- | --- | | relyon-payments | Payments: sessions and hosted fields in your own app, no catalog or shopping pages. | | relyon-setup | Shopping pages: Test secret key, mounting on Express, Next.js or Hono, durable state and host notes. | | relyon-catalog | Keep products and prices in the app: store-owned catalog callbacks, feeds, product JSON-LD, llms.txt and the product sitemap. | | relyon-checkout | The store's own checkout page, card fields, payments that charge exactly the store's total, and agent hand-offs. | | relyon-agents | Serve AI shopping agents (UCP, ACP, MCP) on the store's domain, agent rules, activity reporting and the webhook. | | relyon-orders | Create each order exactly once, report fulfillment and verify Relyon webhooks. | | relyon-go-live | Get a Test store ready for Live without switching to Live yourself. |

Test only for coding agents. Agents build and test with Test keys (rly_test_…), which never move money. Live is enabled by Relyon staff after they review the store; the kit then runs Live only with an explicit double opt-in (relyon.live: true and a Live key, see Test and Live below). The skills leave the Live decision to Relyon staff, then walk the agent through activating an approved store at the merchant's explicit instruction.

Before building, ask the user: 'Do you want to (1) accept card payments in your own app — no Relyon product catalog or shopping pages; (2) also list products so AI shopping agents can find and buy them; or (3) also have Relyon's kit build the shopping pages for you?' Don't choose for them. Then follow the matching quickstart.

Choose the integration before applying kit guidance

Payments: https://core.getrelyon.com/docs/payments-quickstart and relyon-payments. Products and agent selling: https://core.getrelyon.com/docs (catalog, agent checkout and AI visibility are optional additions). Shopping pages: https://core.getrelyon.com/docs/quickstart and relyon-setup. Never install the kit or build catalog, /cart or shopping pages for payments only. The kit-specific rules below apply only after the user chooses shopping pages. Live payments support human buyers and agents in every integration after staff approval and processor onboarding, with existing payment safety checks intact. Use one secret key, kept server-side as RELYON_API_KEY; browser code never gets a key.

Relyon Setup MCP: connect, then keep building

The Relyon Setup MCP (https://core.getrelyon.com/mcp; guide: https://core.getrelyon.com/docs/mcp) is how a coding agent works with the merchant's Relyon account and dashboard. It is not a gate: building and Test never wait for it. It is required for a complete setup and for Live. Builders without it keep using the prompt blocks.

  1. Nudge the user to connect: OAuth through Relyon sign-in, or a connection key on hosts without OAuth.
  2. Once connected, check Test and Live status with get_status.
  3. Build, or carry on building.
  4. Afterwards, pull get_ranked_fixes and get_instructions; update the kit if get_instructions says it is behind, apply the fixes and re-run npx @relyon/store-kit doctor.

Until it is connected, say this exact nudge in three places:

  • in the start summary: "Connect to Relyon to see your dashboard and keep this store updated."
  • at the keys/webhook step: "Connect to Relyon to see your dashboard and keep this store updated."
  • before reporting the store done: "Connect to Relyon to see your dashboard and keep this store updated."

The Relyon Setup MCP connection is how your agent talks to your Relyon account and dashboard. The store still needs its own server-side Test key: you create it in your Relyon workspace at https://core.getrelyon.com/settings/api-keys (Account Settings → API keys) and save it in the host's secret settings as RELYON_API_KEY. Copying that key is expected; never paste it into chat. The connection never hands it out.

Sign-in: the client opens Relyon sign-in in a browser (create the Relyon account first if the client's local sign-in window is short). A headless agent needs one interactive login (/mcp or the client's login command). If the browser cannot reach localhost, paste the final redirect URL back into the client where it supports that, or choose "Use a connection key" on the connect page. After a timeout or an expired session, run the same login again.

Ask before inventing: ask the owner anything the store brief leaves open (shop name, products, shipping, tax, policies) before inventing placeholders. Send the answers through the Relyon Setup MCP when connected, and replace any marked placeholders once answers exist. Owner answers: ask the owner the verbatim questions, submit only confirmed answers (answer_owner_questions when connected); Test applies directly, Live waits for owner confirmation in the dashboard. Live is read-only through the Relyon Setup MCP; Live changes stay in the dashboard.

When using the optional kit and uncertain about its version, run npm view @relyon/store-kit version. Compare it with the store project's actually installed version; never downgrade. Install the exact returned version with the project's package manager (npm install --save-exact, pnpm add --save-exact, yarn add --exact, or bun add --exact), then run npx @relyon/store-kit doctor afterward. If the lookup fails, say it is unavailable; do not guess a latest version. Respect package-age holds without changing settings.

Test setup and hand-over

  • Start the store as a separate detached background process, using the host's process manager or setsid nohup npm run start >store.log 2>&1 < /dev/null &. Never run it in the agent's own foreground session. Stop a recorded PID; never use a pkill pattern that can match the shell issuing it.
  • On a public Test URL, call kit.ensureDomain(hostname) and then kit.verifyDomain(domain.hostname) after the verification route is reachable. Domain verification is not only for Live.
  • Say exactly “Test mode: no real money moves” when handing over a Test store. Never say shoppers can buy or pay for real while the store is in Test.
  • Server-only loadTestConfig supplies both apiKey and webhookSecret. Wire them into relyon.apiKey and rules.webhookSecret; never expose either in browser code or agent prompts.
  • With an environment API key, webhook never writes a secret file. A set RELYON_WEBHOOK_SECRET in environment or dotenv overrides key-only runtime recovery. Unset it, or update it in host settings, then restart. Rotation exits 1 if an override differs from the current secret. Do not treat that exit as a failed rotation: the endpoint may already be rotated. Never read or print the override value; never ask for it in an agent prompt.

Relyon store-first rules

These seven kit rules are identical in every Relyon skill. They apply only to the shopping-pages integration, never to payments-only apps.

  1. Install @relyon/[email protected] from npm and mount its handlers on the app's own server (Express @relyon/store-kit/express, Next.js @relyon/store-kit/next, Hono @relyon/store-kit/hono).
  2. Catalog, cart and pricing stay in the app: the app owns listProducts, getProduct, priceCart and createOrder. Relyon never prices a cart. It charges exactly the final amount the store sends.
  3. Checkout runs on the store's own domain. The only Relyon element in the shopper's browser is the card fields component. Card numbers never touch the app's code, server or logs.
  4. The app calls Relyon only from its server, and only for payment, agent verification, fraud and limits, and recording.
  5. Agent activity reporting stays on: never stub, disable or throttle-to-zero the kit's event reporting.
  6. Start in Test. Live is enabled by Relyon staff, never approved by the agent; after staff approval, the agent activates it at the merchant's explicit instruction (set the env vars by name, redeploy, run the Live doctor for shopping pages) and never asks for or pastes a Live secret key. Build before requesting keys: missing credentials defer credential-dependent verification, never the local build. Show checkout as waiting for a Test secret key, record pending checks honestly, and resume them after configuring a real Test secret key without rebuilding. Never fabricate a credential, payment or order.
  7. No Relyon-hosted checkout, redirect to a Relyon page, CNAME, proxy, forwarding Worker or quote.request/pricing endpoint.

Test defaults — not merchant policy

| Item | Test default | | --- | --- | | Brand | Store name, unless the merchant supplies another brand. | | MPN | SKU, unless the merchant supplies another MPN. | | Stock | Available unless told otherwise; no invented inventory count. | | Returns/support, shipping, tax | Ask the owner first; until they answer, these are pending merchant items. Never invent them or submit placeholders as real policy data. |

Explicit merchant facts override these Test defaults. Proceed with local Test building; ask before asserting missing merchant promises or syncing policies. Never invent supplier claims, GTINs, tax treatment or policy terms. Pending merchant information blocks only the checks that require it, not the build.

Pinned working Test store templates

For a new, completely empty Test store, opt into a working pinned template:

npx @relyon/store-kit init --template next
# or: npx @relyon/store-kit init --template express --dir my-new-store

The selected framework and every direct dependency are pinned to exact tested versions. Generated AGENTS.md names the framework version; do not upgrade it. Read the copied relyon/QUICKSTART.md first. Templates include catalog, product/cart/checkout pages, public kit routes, SQLite-backed durable state, pending policy pages and an ESM pricing check. Use Node 22.13 or newer and a persistent local volume for STORE_DATA_DIR. Run npm run check:pricing, npm run typecheck, npm run build, then HOST=0.0.0.0 PORT=3000 npm run dev. See generated STORE-README.md for explicit catalog JSON, Test setup and storage requirements.

A template written into a folder (--template … --dir <folder>) creates no Test sandbox unless asked with --auto-test-key or RELYON_AUTO_TEST_KEY=true. --yes is accepted and changes nothing. Hidden entries count as conflicts, and force cannot overwrite a template target. Without --template, init does not create application code or change framework versions.

Install for each agent

For the shopping-pages integration, npx @relyon/store-kit init (above) installs the kit and its bundled skills for every agent below. The skills are in skills/. Agents load them on demand when a task involves Relyon. Each section below also names another way to install the skills.

Claude Code

init writes .claude/skills and CLAUDE.md. Or install the plugin:

/plugin marketplace add relyon-payments/relyon-core
/plugin install relyon@relyon

Or copy the skills into a project: mkdir -p .claude/skills && cp -R relyon-core/skills/* .claude/skills/ (use ~/.claude/skills for every project).

Codex

init writes .agents/skills; Codex reads AGENTS.md at the project root. Or copy them:

git clone --depth 1 https://github.com/relyon-payments/relyon-core.git
mkdir -p .agents/skills && cp -R relyon-core/skills/* .agents/skills/

Cursor

init writes .cursor/skills; Cursor also reads AGENTS.md at the project root. Or copy them:

git clone --depth 1 https://github.com/relyon-payments/relyon-core.git
mkdir -p .cursor/skills && cp -R relyon-core/skills/* .cursor/skills/

Replit Agent

Start with the prompt above in a new Replit App. init writes .agents/skills. Or, in the Replit shell, from the project root:

git clone --depth 1 https://github.com/relyon-payments/relyon-core.git /tmp/relyon-core
mkdir -p .agents/skills && cp -R /tmp/relyon-core/skills/* .agents/skills/

OpenCode

init writes .agents/skills, which OpenCode reads along with AGENTS.md. Or copy them:

git clone --depth 1 https://github.com/relyon-payments/relyon-core.git
mkdir -p .opencode/skills && cp -R relyon-core/skills/* .opencode/skills/

(use ~/.config/opencode/skills for every project).

The Relyon CLI

The relyon CLI (served by Relyon, not the npm registry) installs skills for every tool above in one step. It bundles these skills; to install the repository's copy instead, pass --source:

git clone --depth 1 https://github.com/relyon-payments/relyon-core.git
npx -y https://core.getrelyon.com/cli/relyon.tgz agent setup --source relyon-core/skills

--tools claude,cursor,codex,opencode,replit limits the tools; --global installs into your home directory instead of the project.

Lovable and Base44

Lovable and Base44 don't load skill folders. Paste the blocks from platforms/lovable/ or platforms/base44/ in the Relyon Core repository into the project's knowledge or instructions only when a quick-start step needs that section. Each block says what works on that platform: card checkout works, but the kit's agent routes need a server on the store's own domain.

Store kit developer reference

A server-side kit a store installs in its own app to take payments and serve AI shopping agents through Relyon. Every agent and shopper request lands on the store's own domain. The store's server is the only thing that calls Relyon. The only Relyon resource a shopper's browser loads is the card fields script.

  • The store keeps its catalog, cart and pricing. Relyon never prices a cart; it charges exactly the total the store sends.
  • UCP Test checkout is implemented on the store domain. ACP Test integration is implemented with merchant-domain forwarding, ChatGPT credentials, application and channel prerequisites, not unrestricted native ChatGPT availability. Store-hosted MCP checkout works in Test by handing the shopper off to the store's checkout page (the order gets an ord_ ID); in Live it returns protocol_not_available. Separate Commerce MCP supports checkout-link handoff, not direct charging. No Live availability or platform approval is promised.
  • Card numbers never touch the store's code, server or logs.

Requires Node.js 20 or later. ESM only. Adapters for Express, Next.js (App Router) and Hono, none of which is a runtime dependency.

Install

npm install @relyon/[email protected]

(or pnpm add, yarn add, bun add with the same specifier; Deno: npm:@relyon/[email protected]).

In a pnpm workspace, add it to the package that runs the store's server (pnpm --filter <server package> add --save-exact @relyon/[email protected]), never the workspace root; npx @relyon/store-kit init does this when the workspace has one server package and otherwise prints that command. If a minimum release age policy holds back a new version, wait or exempt only @relyon/store-kit.

Relyon's API base URL is https://core.getrelyon.com/api. The kit has no default: pass it as relyon.baseUrl. The core kit reads no environment variables itself; the names below are the app's. The optional Node-only server-config loader and init read RELYON_PRIVATE_DIR (optional; by default an owner-only folder per project under $XDG_CONFIG_HOME/relyon or ~/.config/relyon). With no usable key, init never creates one: it prints the key page (https://core.getrelyon.com/settings/api-keys) and init --key-from-stdin. A key is saved there and in .env (0600, gitignored, never when .env is tracked), and init prints only what happened. Example env files show RELYON_API_KEY= (blank; init --key-from-stdin fills it); placeholder values count as no key. Mount the kit always: with no key every kit path answers waiting_for_sandbox_key.

Quick start

Create one kit per server process, in a server-only module:

// relyon.ts
import { createStoreKit } from "@relyon/store-kit";
import { priceCart, createOrder, catalogSource } from "./store.js"; // your app's own functions

export const kit = createStoreKit({
  relyon: {
    baseUrl: "https://core.getrelyon.com/api",
    apiKey: process.env.RELYON_API_KEY, // real Test key from server-only configuration, when available
    waitingForSandboxKey: true, // explicit Test-only build mode; a real key activates normal operation
  },
  store: {
    name: "Example Store",
    description: "Hand-made goods.",
    // The store's own public hostnames, primary first (localhost until they are set).
    hostnames: (process.env.STORE_HOSTNAMES ?? "localhost").split(",").map((host) => host.trim()).filter(Boolean),
  },
  // The store prices every cart. Return one line per input line, in order,
  // with totals that add up: Relyon charges exactly `totals.total`.
  priceCart: async (lines, address, coupons, context) => priceCart(lines, address, coupons, context.shippingOptionId),
  // Called exactly once for each succeeded payment.
  createOrder: async (cart, payment) => createOrder(cart, payment),
  // The store's own catalog: listProducts + getProduct read the store's database (see "Store-owned catalog reads and feeds" below).
  catalog: { source: catalogSource },
  // Signed webhooks: `agent_rules.updated` refreshes the agent rules right away, and Relyon's
  // doctor challenge is acknowledged on this route. Optional in Test: unset, the kit resolves
  // the secret itself at runtime with RELYON_API_KEY.
  rules: { webhookSecret: process.env.RELYON_WEBHOOK_SECRET },
});

await kit.start(); // reads the agent rules, starts event reporting
// On shutdown (for example SIGTERM): await kit.stop();

For automatic private storage, import loadTestConfig from @relyon/store-kit/server-config in this Node server module and spread await loadTestConfig({ project: process.cwd() }) into relyon. Never import the loader into browser code or expose its return value. Show kit.checkoutStatus on the checkout page; while it is "waiting for sandbox key", disable payment submission and card fields. Never fabricate a credential, successful payment or order. Credential-dependent operations refuse locally, without unauthenticated API attempts. Doctor marks missing-key checks UNVERIFIED, never a verified connection.

Store-owned catalog callbacks (catalog.source) need no catalog sync: the kit's discovery routes and feeds read them directly. kit.syncCatalog(products) only fills Relyon's optional dashboard index mirror; without catalog.source, the legacy llms.txt, sitemap and MCP browse read that mirror instead. Relyon's index takes full URLs only: syncCatalog sends each product's own url and images (a path such as /products/mug, or a URL on the store's hostnames, loopback or 0.0.0.0) on STORE_PUBLIC_URL, else on https:// + the first STORE_HOSTNAMES entry, the same address the feeds use. The kit's own catalog keeps your paths. With paths, a loopback-only store needs STORE_PUBLIC_URL (plain http on localhost with the dev server's port); without it the sync stops before sending anything and names the product and the setting to fix.

Then mount it on your server. The kit answers its own paths and passes everything else to your app.

Express

import express from "express";
import { storeKitMiddleware } from "@relyon/store-kit/express";
import { kit } from "./relyon.js";

const app = express();
app.use(storeKitMiddleware(kit)); // before express.json() or any other body parser
app.use(express.json());
// ...your routes
app.listen(3000);

The kit needs the raw request body to relay signed agent requests; the middleware throws if a body parser ran first.

Next.js (App Router)

Create a route file for each kit path (app/.well-known/ucp/route.ts, app/.well-known/relyon-verification/route.ts, app/ucp/[...path]/route.ts, app/acp/[...path]/route.ts, app/mcp/route.ts, app/llms.txt/route.ts, app/sitemap-products.xml/route.ts, app/robots.txt/route.ts and app/relyon/[...path]/route.ts for webhooks and the Test checkout), each containing:

import { storeKitRouteHandlers } from "@relyon/store-kit/next";
import { kit } from "@/lib/relyon";

export const { GET, POST, PUT, PATCH, DELETE, HEAD } = storeKitRouteHandlers(kit);

Add no route segment config (export const runtime, dynamic or revalidate): route handlers run on Node.js already, and Next.js 16 with cacheComponents refuses that config. The same files work on Next.js 15.

Import kit from one shared server module so every route uses the same instance. storeKitFetch(kit) returns Response | null for code that routes Web requests itself.

Hono

import { Hono } from "hono";
import { storeKitMiddleware } from "@relyon/store-kit/hono";
import { kit } from "./relyon.js";

const app = new Hono();
app.use(storeKitMiddleware(kit)); // before your routes
// ...your routes
export default app; // on Node, serve it with @hono/node-server

Any other framework

The core works on Web Request/Response: kit.handle(request) returns a Response, or null for paths the kit doesn't serve.

Routes served on the store's domain

| Path | What it does | | --- | --- | | /.well-known/ucp | Relyon's UCP profile for this hostname. Cached for the response's max-age, and served stale if Relyon is down. | | /ucp/*, /acp/* | Rebuilds the agent's exact request on the store's public https URL (method, lower-case headers, raw body), prices it with priceCart and relays it to Relyon. Returns status, headers and body unchanged. On a paid complete, calls createOrder once; until that order exists the agent gets order pending, never completed. | | /mcp | Browse and search use catalog.source when configured, otherwise the legacy cached index mirror. Checkout tools are relayed to Relyon. In Test, checkout hands the shopper off to the store's checkout page (continue_url); the payment happens there and the order gets an ord_ ID. In Live Relyon doesn't offer MCP checkout, so the tools fail closed with an in-band JSON-RPC error, before any charge. | | /.well-known/relyon-verification | The store's domain verification value, as text/plain. | | /llms.txt, /sitemap-products.xml, /sitemap.xml | With catalog.source, generated directly from visible store products. Without it, only products Relyon published: upsert adds to the mirror, full replaces it, and failed sync leaves it unchanged. /sitemap.xml is a urlset of the same product pages (sitemapIndex: false turns it off). llms.txt also lists the UCP profile, MCP, ACP checkout, the agent card, the selected feeds and the policy pages. | | /.well-known/agent-card.json | A JSON agent card for the store's UCP, ACP and MCP endpoints and Relyon payments. AP2 checkout mandates are an optional extension (verified when presented on UCP checkout); it claims no A2A message endpoint, and MCP checkout only in Test. agentCard: false turns it off. | | feeds | Selected formats only (/feeds/openai.jsonl, .jsonl.gz, /feeds/google.xml, /feeds/microsoft.xml); see below. | | /robots.txt | Served by default: AI search and shopping crawlers allowed, plus Sitemap: lines. robots: { existing } merges into the app's own policy; robots: false opts out. | | /relyon/test-checkout | Test only, with a Test key: one signed Test purchase for npx @relyon/store-kit test-checkout (below). In Live it does not exist. | | /relyon/webhooks | A signed agent_rules.updated webhook refreshes the rules cache right away. A signed doctor.challenge is acknowledged exactly as the contract defines (the Relyon-Doctor-Acknowledgement header), so Relyon's doctor can confirm the webhook route works. |

Every link these routes return uses one public origin per request, kit.publicOrigin(request): store.publicUrl (STORE_PUBLIC_URL) when set, otherwise the store's own or Test preview hostname the request arrived on (any other Host is refused). Catalog URLs on the store's own hostnames, including loopback and preview addresses, are moved onto that origin. kit.renderDiscoveryLinks(request) returns the same endpoints as <link> tags for the homepage <head>. In Test, store.publicUrl must name one of the store's hostnames (https, or http on loopback).

Paths can be changed with the paths option if they clash with your app's routes.

Behind a tunnel or proxy

When the store sits behind a tunnel (for example Cloudflare Tunnel) or a reverse proxy, three settings keep the kit's routes answering correctly:

  • Trust the proxy so the request's public host and protocol survive: Express app.set("trust proxy", true); other frameworks have the same switch. The kit reads the standard forwarded headers (X-Forwarded-Host, X-Forwarded-Proto) only on a request the framework has already accepted as proxied, and uses them to build its public origin.
  • Register the tunnel's public HTTPS address as the store's hostname/webhook URL, and keep the tunnel process running while Relyon's doctor checks the store: the doctor's signed webhook challenge is answered on /relyon/webhooks and cannot be answered while the store or its tunnel is down.
  • Keep the raw body. Webhook signatures cover the exact bytes Relyon sent, so any body-parsing middleware that runs before the kit must not re-serialize or consume the request body for the kit's routes (the kit's own adapters read the raw body once).

A cold store whose webhook secret is not configured yet recovers it from Relyon on the first signed delivery; behind a slow tunnel that first recovery can outlast one doctor probe, so the kit answers the doctor's challenge with a short "warming up" 503 while the recovery finishes in the background and Relyon's retry succeeds moments later. Configuring RELYON_WEBHOOK_SECRET (the webhook command saves it) skips the recovery entirely.

Google Pay

Off by default. The merchant turns it on in the dashboard (Settings → Payments), either as the workspace default for an environment or for one store; a store without its own setting inherits the workspace default. Card payments are unchanged either way.

Google Pay must also be enabled on the store's TRX account: email [email protected] with the account's Client ID. The button renders only when the setting is on for the store taking the checkout and the checkout session runs on a TRX account. The Test mock processor's checkout stays card-only, though wallet tokens submitted through the API are accepted when the setting is on, so the payment path is testable without a TRX sandbox account.

When a shopper completes the Google Pay sheet, the checkout page submits the wallet token immediately: the token's cardSecurity expires about a minute after the sheet closes, so the page never waits for a Pay click. A failed or cancelled sheet charges nothing and the shopper can pay by card instead.

A wallet token submitted for a store where the setting is off is refused with wallet_not_enabled; nothing is charged. In Live, Google Pay follows the same gate as card fields: an approved Live processor account, enabled by Relyon staff.

Checking an install: npx @relyon/store-kit doctor

The package ships a doctor that changes nothing in the store. Run it against the store's public URL, with RELYON_API_KEY already in the environment from your secrets tool:

npx @relyon/store-kit doctor --url "$STORE_PUBLIC_URL"

It fetches what agents and Relyon see on the store's domain, then asks Relyon's integration doctor (GET /v1/doctor) for the server-side view:

| Item | Checks | | --- | --- | | /.well-known/ucp | A UCP business profile for this host. | | /.well-known/relyon-verification | The domain verification value is served as text. | | /llms.txt, product sitemap | Served, and the sitemap is valid XML. | | Feeds | Each selected feed (--feeds / RELYON_FEEDS, default: those llms.txt links) is served and parses; a valid feed with no products is UNVERIFIED. No selected feeds is N/A. | | /mcp | An MCP initialize answers. | | robots.txt | Doesn't block the store's discovery files for the search and shopping crawlers. A missing file is PASS. | | Catch-all and unknown paths | Even without a key: a kit path answered by HTML or a non-kit body FAILs ("Your server's catch-all route answers this path. Mount storeKitMiddleware before the catch-all."), and so does a random unknown path answering 200 ("Your server answers 200 for unknown paths, so agents can't tell what is missing. Return 404 for unknown non-page paths."). | | Kit mount (source) | WARN when the project's source creates or mounts the kit only when RELYON_API_KEY is set: "Mount the kit always; it waits safely without a key." | | Relyon doctor | Each of the five checks from GET /v1/doctor. Without RELYON_API_KEY they are UNVERIFIED. pricing and checkout test an older Relyon-side flow that store-first apps don't use: in Test, when this run saw the store's UCP profile, verification file, llms.txt and MCP pass, they are N/A instead of FAIL. A store-first blocker Relyon reports under them ("Observed blocker" or "Unverified") still FAILs, and Live keeps every failure. |

Relyon's API base defaults to https://core.getrelyon.com/api; --base-url or RELYON_BASE_URL changes it for another operator-confirmed deployment. When Relyon can't be asked, its items are UNVERIFIED with one line naming what happened and the URL tried (without its query string or any path part that could be a token): Relyon's server answering with a web page instead of data (an HTML page, or a 3xx pointing at a sign-in or protection page, with the status and only the origin it points to), a Relyon server error (5xx), a timeout, a DNS failure, a refused connection or a blocked network. None of these is caused by the store, and none is fixed by publishing it again. Text from Relyon's answer is printed with control characters removed.

Every item prints PASS, FAIL, WARN, N/A, UNVERIFIED or NOT DONE. In Test, the doctor also asks Relyon (GET /v1/sandboxes/progress, with the Test key, only on Relyon's official https origin and never in Live) whether it has seen one completed Test checkout: "Test checkout confirmed by Relyon" is PASS, NOT DONE when Relyon answered and has none (the step names npx @relyon/store-kit test-checkout --url <store>), or UNVERIFIED only when Relyon can't be asked. Relyon records only two timestamps for this (first Test key use, first completed Test checkout), never anything for Live.

The first line is the verdict: DONE: Test integration verified by Relyon. only when a Test key is present, no item FAILs, Relyon confirmed a completed Test checkout and every selected feed PASSes; otherwise NOT DONE: <n> of <m> required steps remain. followed by a numbered "Do this next" list (each step an instruction with the exact command or file) that ends with Then run: npx @relyon/store-kit doctor. Exit codes: 0 only when DONE, 2 when NOT DONE without any FAIL (the work is incomplete), 1 on any FAIL; usage errors keep exit code 2. --strict and Live keep their meaning (Live is always strict). doctor --json prints one JSON object on stdout and nothing else: status ("done" or "not_done"), version, checks (name, status, detail), next_steps (order, action, optional command and file) and confirmed (test_key_used, test_checkout_completed), with the same exit codes and no secrets. While NOT DONE, no summary line says "No failures": the footer reads NOT DONE yet (see the steps above): …. A product in the product sitemap that a selected feed leaves out is a WARN ("products missing from feeds"), never a FAIL.

Since 0.1.11 the doctor checks outcomes, not only status codes (NOT DONE, never FAIL, for each):

  • checkout page: the page must show a checkout marker, data-relyon-cart-items="<items>" on an element (0 for an empty cart) or the kit's <relyon-card-fields> mount. Landing on the home page or a 200 placeholder is NOT DONE, naming where the page landed.
  • cart transfer (Test): the doctor transfers one real item from the store's MCP search_products that agents may buy and is in stock (a listed variant for a product with options, else a product without options; refused items are skipped, up to 5 tried) through POST /ucp/carts, opens the continue_url on the store's origin and requires data-relyon-cart-items with a non-empty cart (card fields alone don't show the item landed). When the store requires a caller key, set RELYON_CART_TRANSFER_KEY in the doctor's environment (never on the command line). Live keeps the reachability check.
  • product variants: a warning for agents when an agent-visible product has options but no feed.variants, or when options were flattened into separate listings with different prices.
  • policy pages (Test): a policy link Relyon holds on the store's origin or loopback that doesn't open (for example a 404) is an "Owner to fill in" item.

doctor --json additions are additive only (an owner_todos list). The closing text tells coding agents to list the owner's to-dos (policies, support contact, domain and Live keys) in their final chat message, not only in a README, and never to say shoppers can pay before checkout is live.

One Test checkout: npx @relyon/store-kit test-checkout --url <store>

The coding agent runs this itself; it is not a step for a person. It makes exactly one Test purchase through the kit's Test-only POST /relyon/test-checkout route on the store: one agent-purchasable product, priced by priceCart. It picks a product without options when one exists; else the first variant in a product's feed.variants; else the first value of each option the product declares, and sends the options on the cart line. --product <id> takes a product ID or a variant's feed ID. When the store refuses, the output names the field (cart.lines[0]), the product and the exact options tried, and suggests --product <id>. The purchase is paid through a Relyon payment session with the Test mock processor's opaque token, so createOrder runs. No card number exists anywhere. The request carries a short-lived HMAC proof made with the Test key (method, host, path, timestamp, nonce and a hash of the body); the key itself never goes to the store. Without a valid proof the route answers 404 or 401 and reveals nothing; in Live, or without a Test key, it does not exist. One idempotency key per run: a resend never pays twice. The command refuses (exit 2) with a Live key or RELYON_LIVE=true, then confirms with GET /v1/sandboxes/progress under the same rules as the doctor. When the sandbox's Test payments use hosted card fields (a TRX sandbox account) instead of the mock processor, the route refuses and points to the store's checkout page.

The kit's 503 waiting body and its setup errors (an invalid or missing key, missing configuration) carry a separate builder-facing developer_hint ("Store setup is not done. Run: npx @relyon/store-kit doctor"); the shopper-facing message and the waiting shape are unchanged.

Keys are read from RELYON_API_KEY only, never from flags, and are never printed: anything shaped like a Relyon key is redacted from all output. --live (or RELYON_LIVE=true) checks in Live mode with a Live key; there, a /.well-known/ucp profile that advertises checkout must also publish an ES256 signing key (Relyon advertises Live checkout, with its keys, only for a store approved for Live), or the item FAILs. The doctor never creates a shopper checkout or submits a payment; Relyon's server diagnostic may create and clean up one temporary system-owned checkout and sends one webhook challenge.

Test and Live

The kit runs in Test mode unless Live is switched on explicitly. Test never moves money.

| relyon.apiKey | relyon.live | Result | | --- | --- | --- | | rly_test_… | absent or false | Test mode. | | rly_live_… | true | Live mode, if the store URL rules below pass. | | rly_live_… | absent or false | Refused with a TypeError when the kit is created. | | rly_test_… | true | Refused with a TypeError when the kit is created. |

The mode never comes from the key prefix alone; kit.livemode says which mode the kit runs in. Live mode also needs store.publicUrl (your STORE_PUBLIC_URL) to be an https URL naming one of store.hostnames, and refuses localhost, IP-literal and development preview (*.replit.dev) hostnames. Each refusal is a TypeError naming the problem.

export const kit = createStoreKit({
  relyon: {
    baseUrl: "https://core.getrelyon.com/api",
    apiKey: process.env.RELYON_API_KEY!,      // rly_live_… in production
    live: process.env.RELYON_LIVE === "true", // explicit opt-in
  },
  // STORE_PUBLIC_URL is required in Live: the store's own https origin.
  store: { name: "Example Store", hostnames: [new URL(process.env.STORE_PUBLIC_URL!).hostname], publicUrl: process.env.STORE_PUBLIC_URL },
  // ...
});

Live payments still need the store's Relyon account to be ready for Live: Relyon staff verify the store and attach its processor account. The kit makes no assumption about which accounts can go Live (a claimed sandbox may become Live later); it relies on Relyon's answer. While an account isn't ready, Relyon refuses before any charge with one of these codes, and the kit fails closed: it answers the shopper or agent with Relyon's status and code and a plain explanation, never sends a Retry-After, and never resends the step or the charge.

| Code | Status | Meaning | | --- | --- | --- | | processor_not_configured | 409 | The account has no processor account for this mode yet. | | sandbox_test_only | 403 | The account is a sandbox, which works in Test mode only for now. | | live_not_available | 403 | Relyon doesn't offer this operation in Live mode for this store yet. |

cardFields and createPayment throw RelyonAccountNotReadyError (code, status, retryable: false); payAndConfirm answers it with Relyon's status and code; relayed UCP, ACP and MCP steps answer it in the protocol's own error format. In every case nothing was charged.

npx @relyon/store-kit init never creates sandboxes. Create the store's Test key at https://core.getrelyon.com/settings/api-keys (Account Settings → API keys) and copy it, then run npx @relyon/store-kit init --key-from-stdin, which reads the key from stdin or a hidden prompt.

The key is a restrictedKey (rly_test_…, server-side only); a sandbox created from your account belongs to it from the start, so there is nothing to claim. Store the key with your platform's secret tooling, for example as RELYON_API_KEY. Never put it in browser code, logs or source control.

Store-owned catalog reads and feeds (opt in)

Existing installs continue to use the last accepted index mirror for MCP browse, llms.txt and the sitemap. Nothing changes in checkout tools or syncCatalog. To read your store database directly, supply both callbacks under catalog.source. In this mode the index is only a dashboard mirror; reads do not call Relyon's index or require syncCatalog.

import { createStoreKit, type StoreCatalogSource } from "@relyon/store-kit";

const source: StoreCatalogSource = {
  async listProducts({ cursor, limit, query }) {
    // Implement opaque pagination in your store. `query` is optional; feeds,
    // llms.txt and sitemap omit it and must receive the COMPLETE catalog.
    const page = await storeDatabase.list({ cursor, limit, query });
    return {
      products: page.products.map(toStoreCatalogProduct),
      nextCursor: page.nextCursor ?? null, // null explicitly means complete
    };
  },
  async getProduct(id) {
    const product = await storeDatabase.get(id);
    return product ? toStoreCatalogProduct(product) : null;
  },
};

const kit = createStoreKit({
  // ... existing relyon, store, priceCart and createOrder configuration ...
  catalog: { source },
  feeds: {
    formats: ["openai", "openaiGzip", "google", "microsoft"],
    cacheSeconds: 60,
    onDiagnostic: ({ productId, format, code }) => reportCatalogIssue(productId, format, code),
  },
});

storeDatabase, toStoreCatalogProduct, and reportCatalogIssue above are your own app functions, not kit exports. Each StoreCatalogProduct has the existing StoreProduct fields, plus optional feed facts:

const product = {
  merchant_product_id: "mug-blue",
  title: "Blue mug",
  description: "Glazed ceramic mug.",
  url: "https://shop.example.com/products/mug?color=blue",
  images: ["https://images.example-cdn.com/mug-blue.jpg"],
  brand: "Actual Manufacturer",
  mpn: "MUG-BLUE", // manufacturer-assigned, never an invented identifier
  from_price: { amount: 1800, currency: "USD" }, // display-only
  availability: "in_stock",
  configurable: false, // this row is one concrete selection, not a configurable parent
  agent: { visible: true, purchasable: true },
  group_id: "mugs",
  feed: {
    exactPrice: { amount: 1800, currency: "USD" }, // minor units; explicit exact public item price
    condition: "new", // explicit new | used | refurbished; no default
    variant: { groupId: "mugs", options: { color: "blue" } },
    // Optional GOOGLE-only metadata; never inferred from visibility:
    googleCheckout: { eligible: false, channelStatus: "disconnected" },
  },
};

A product with options (configurable: true) can list its variants in feed.variants, each with its own id, options and exactPrice; every feed then has one row per variant, grouped under the product's ID (see the Classic Tee example in the relyon-catalog skill). Without variants, a configurable product is left out of the feeds and onDiagnostic says why.

Read-source contract and visibility

  • listProducts(StoreCatalogQuery) returns StoreCatalogPage: at most the requested 500 products and nextCursor: string | null. Cursors must be nonempty and never repeat; duplicate IDs, malformed/incomplete pagination, callback errors or more than 100 pages fail the whole read. No partial feed, saved-index fallback or stale-on-error response is served. For a catalog changing during pagination, use a database snapshot/revision in your cursor so every page belongs to the same read; the kit cannot create a transaction in your database.
  • getProduct(id) returns a product or null. It must return the exact requested ID.
  • Callback-mode MCP browse, llms.txt, sitemap and feeds share the same boundary: only agent.visible === true, a valid stable ID, and an absolute HTTPS product URL on one of store.hostnames. Unknown visibility is hidden, even if legacy mirror entries exist. Bad/off-store product URLs and IDs are logged as catalog diagnostics. Feeds apply additional required-fact checks and expose StoreFeedDiagnostic (openai, google, microsoft).
  • Credentials, nondefault ports, fragments, malformed URLs and known Relyon hosts are not valid product/seller links. Legitimate external image CDNs are allowed. Seller URL is the configured primary store origin. No Relyon product, policy or checkout links are created.
  • Search passes query to your source, then applies the kit's existing all-words search and limit. Keep list/get visibility and product facts consistent in your database.
  • syncCatalog, MCP checkout tools, pricing, relays, payment authorization, agent rules and order creation are unchanged. Callback visibility is a discovery decision, not payment authority.

Files, freshness and limits

Only selected formats are claimed by the adapters; exact paths are:

| Format | Route | Content type | | --- | --- | --- | | openai | /feeds/openai.jsonl | application/x-ndjson; charset=utf-8 | | openaiGzip | /feeds/openai.jsonl.gz | application/gzip | | google | /feeds/google.xml | application/rss+xml; charset=utf-8 | | microsoft | /feeds/microsoft.xml | application/rss+xml; charset=utf-8 |

Feeds require catalog.source; mirror-only configuration cannot accidentally publish a misleading feed. llms.txt links only the configured feed URLs. The gzip route is a real .jsonl.gz file, not transparent HTTP Content-Encoding: gzip. No SFTP, credentials, upload, Merchant API registration, scheduled delivery or destination activation is implemented.

OpenAI files follow the Stable file-upload products reference retrieved 2026-10-20. Stable is undated; no release version is invented. They are flat records, not ACP 2026-04-17 Product/Variant objects. All nine required fields are emitted. The existing flat mapping supplies title, description, identifiers, images, stock and exact decimal money. is_eligible_checkout is false unless Relyon reports the store's ChatGPT channel connected (GET /v1/channels/chatgpt, same mode, re-read at most once a minute), the store has policies.privacyUrl and policies.termsUrl (sent as seller_privacy_policy and seller_tos), and the product is in stock and purchasable without restrictions or must_ask, with the merchant's brand and a valid GTIN or merchant-supplied MPN. While connected, an ineligible product gets a chatgpt_checkout_ineligible:<reason> diagnostic. Unknown required facts cause omission with diagnostics; even though OpenAI treats omitted condition as new, this kit requires explicit condition to avoid that assertion.

RSS uses the shared Google mapping, with Microsoft's documented common attributes and stock spelling (in stock, out of stock) and exact two-decimal prices for its file. No Microsoft-specific UCP/checkout attributes are claimed. Both XML files require known condition and an assigned valid GTIN or brand+MPN, or an explicit custom-goods attestation (below); identifier_exists=false is never invented. Microsoft price limit is 10 million major units and brand limit is 10 words. This is a conservative discovery subset, not a guarantee of acceptance for every country/category: configure tax/shipping and category-specific legal requirements separately before using a destination.

Own-brand and custom goods

A store selling goods under its own label (print on demand, for example) is the brand owner, and its own SKU is the product's MPN. Say so per product with feed.ownBrand: true, and set the product's brand and mpn yourself: the kit never takes the brand from the store name or the MPN from a product ID. Made-to-order goods with no GTIN or MPN at all use feed.customGoods: true, the only way the kit emits identifier_exists=false.

Own-brand goods made to order (no GTIN, but your own part number) can say both: feed.customGoods: true and feed.ownBrand: true, with the product's brand and mpn. Since 0.1.1 that is an own-brand item: Google and Microsoft get the brand and your MPN, never identifier_exists=false, and there is no conflict. Product JSON-LD and the ChatGPT file carry the same brand and MPN, so readiness scans see a complete identifier everywhere the kit serves one.

// A print-on-demand poster sold under the store's own label.
const poster = {
  merchant_product_id: "poster-sunrise-a2",
  title: "Sunrise poster, A2",
  description: "Giclée print on 200 gsm matte paper.",
  url: "https://prints.example.com/products/sunrise?size=a2",
  images: ["https://prints.example.com/img/sunrise-a2.jpg"],
  brand: "Lumen Prints",      // the store's own brand, set explicitly
  mpn: "LP-SUNRISE-A2",       // the store's own SKU
  availability: "in_stock",
  agent: { visible: true, purchasable: true },
  feed: { exactPrice: { amount: 3200, currency: "USD" }, condition: "new", ownBrand: true },
};

// A one-off custom portrait: no GTIN or MPN exists.
const portrait = { ...portraitFacts, feed: { exactPrice, condition: "new", customGoods: true } };

Google and Microsoft diagnostics explain what's missing or contradictory:

| Code | Meaning | | --- | --- | | assigned_identifier_missing | No valid GTIN, no brand+MPN and no custom-goods attestation. | | own_brand_mpn_missing | ownBrand: true without the product's mpn (your SKU). | | identifier_attestation_conflict | ownBrand and customGoods together with a GTIN, customGoods with a GTIN or MPN (without ownBrand), or an attestation that isn't true/false. | | unknown_required_text | No brand on the product (with or without ownBrand). |

Brand+MPN without ownBrand is still emitted as before, as the manufacturer's identifiers. The OpenAI file is unchanged by these attestations.

Apparel: age group and gender

Google and Microsoft want age_group and gender on apparel. Set them per product as feed.ageGroup (newborn, infant, toddler, kids or adult) and feed.gender (male, female or unisex); they are emitted as age_group and gender in both XML files, for any item that has them. The ChatGPT file doesn't carry them.

An item is apparel only when its product category is Google's "Apparel & Accessories": the category path's first level is Apparel & Accessories (any case; &amp; is accepted), or it is that category's Google ID 166 (alone or as 166 > …). Numeric IDs of subcategories aren't recognized, so give the full path (for example Apparel & Accessories > Clothing > Shirts & Tops). Titles, brands and other category names never make an item apparel. isApparelCategory(category) applies the same rule.

An apparel item without a value gets a documented default (APPAREL_DEFAULTS: adult and unisex), with a diagnostic per defaulted field so you can see it. A value that isn't one of the listed ones is omitted, never guessed or defaulted:

| Code | Meaning | | --- | --- | | age_group_defaulted | Apparel without ageGroup; adult was emitted. | | gender_defaulted | Apparel without gender; unisex was emitted. | | invalid_age_group_omitted | ageGroup isn't one of the five values; no age_group was emitted. | | invalid_gender_omitted | gender isn't one of the three values; no gender was emitted. |

These diagnostics are reported (for Google and Microsoft) only for items the XML files include; the item itself is still emitted.

const tee = {
  // ...
  category: "Apparel & Accessories > Clothing > Shirts & Tops",
  feed: { exactPrice, condition: "new", ageGroup: "adult", gender: "unisex" },
};

feed.exactPrice uses safe nonnegative integer minor units, not floating point dollars. It must be positive for these formats. from_price alone never becomes exact, and configurable parent rows are omitted even if given exactPrice. A selected variant must be non-configurable, with its own ID, URL, price and stock; supply variant.groupId different from the item ID and nonempty selected options. A feed group ID is 1–50 letters, digits, ., _, : or -: a valid variant.groupId is used unchanged, and a longer or unusual one (a long product handle) becomes a sanitized prefix of at most 37 characters, - and 12 hex digits of its SHA-256, the same on every run and in every feed (feedGroupId(groupId) returns it). Two different store group IDs that would share a feed group are omitted with a diagnostic, never merged. Group option names and selections must be consistent and unique. OpenAI accepts arbitrary selected option names; this XML subset supports color, size, material, pattern only. An option with another name (such as scent) is left out of the XML item with an xml_variant_attribute_omitted:<key> diagnostic per feed — the item still lists, and the ChatGPT feed keeps the full option set. Preorder/backorder are emitted in OpenAI but omitted in RSS (availability dates are not supported here). Unknown stock is omitted, not guessed.

Supported currencies and precisions are exported as currencyPrecision: USD, EUR, GBP, CAD, AUD, NZD, CHF, CNY, HKD, SGD, INR, BRL, MXN, ZAR, SEK, NOK, DKK, PLN, AED, SAR, ILS (2 digits); KRW, JPY, CLP, VND (0); BHD, KWD, OMR, JOD, TND (3). RSS never rounds a three-decimal amount; it may drop a trailing zero exactly, otherwise it omits the item. Currency conversion is never done.

Google XML may carry the documented g:native_commerce/g:checkout_eligibility only with explicit feed.googleCheckout inputs. It reuses the Merchant Center sync decision (eligible + new + connected), additionally requires in-stock/USD for this subset, and is absent from the Microsoft file. No checkout URLs, policies, digital-item settings or unsupported metadata are fabricated. The kit's own contract-gap notes and pinned feed fixtures are kept with Relyon's source and are not part of this package.

Default internal cache is 60 seconds, configurable from 0 to 300. A change to price, stock or visibility is visible on the next request at/after expiry, without syncCatalog. Callbacks are re-read then; errors answer 503 (no-store, Retry-After: 5), never stale hidden products. Each process maintains its own finite cache. HTTP responses require revalidation (max-age=0, must-revalidate) so downstream cache time does not extend the internal interval.

GET/HEAD, per-representation ETags, weak If-None-Match, *, and date-only conditional reads are supported. ETags take precedence over dates. HEAD has identical metadata and no body; 304 has no body. Last-Modified is withheld when second-resolution dates could produce a false 304 after a same-second change. Every request reaching a configured feed route—including cached, HEAD, 304, refused and failed reads—uses the sitemap's feed_read event queue and existing agent rules. An upstream cache that never contacts your app cannot be observed by the kit. Callback-backed sitemap/llms reads revalidate on every read; mirror-mode caching is unchanged.

The default text seam accepts plain text, removes illegal XML/control characters and enforces length limits. HTML-like required text is omitted. If your catalog contains HTML, pass a trusted pure sanitizer as feeds.normalizeText(value, max); its result is still filtered. The API keeps its existing sanitizer at its own boundary, not in the kit.

Public additive exports: StoreCatalogSource, StoreCatalogQuery, StoreCatalogPage, StoreCatalogProduct, StoreFeedFacts, StoreCatalogReads, CatalogReadDiagnostic, StoreFeedOptions, StoreFeedFormat, StoreFeedMerchant, StoreFeedGeneration, StoreFeedDiagnostic, generateStoreFeeds, StoreFeedReads, STORE_FEED_PATHS, feedPlainText, storeDomainUrl; and dependency-neutral mapFeedRows, FeedRow, FeedMerchant, FeedGeneration, FeedDiagnostic, FeedMappingFormat, StoreMappingProfile, IdentifierAttestation, GoogleItem, SerializeHooks, googleNativeCommerce, FeedText, decimalMoney, currencyPrecision, validGtin, publicUrl, feedXml, feedTag, scriptSafeJson. Existing helpers/types and their signatures remain valid; llmsTxt only gains an optional fifth argument containing configured feed URLs and an optional sixth with the store policies.

robots.txt: served by default, merge-safe helpers

The kit serves /robots.txt by default: AI search and shopping crawlers allowed, plus the Sitemap: lines. robots: false opts out (the path then passes to the app). An app with its own robots policy passes robots: { existing } so the kit merges into it and preserves it; an Express app whose own robots route is mounted after the kit must do one or the other. Use aiRobotsSection({ origin, sitemapPath?, llmsPath? }) for a new file or mergeAiRobots(existingText, options) for an existing file. The result is { content, changed, conflicts }; inspect RobotsConflict entries (line, code, action message). On any conflict the original text is returned byte-for-byte, without partial additions. RobotsOptions, RobotsMerge and AI_DISCOVERY_CRAWLERS are also exported.

const result = mergeAiRobots(await readExistingRobots(), {
  origin: process.env.STORE_PUBLIC_URL!, // the store's own origin
});
if (result.conflicts.length) notifyMerchant(result.conflicts);
else if (result.changed) await saveRobots(result.content); // only your app chooses to persist

The section allows vendor-verified search/shopping/user-fetch tokens: OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User, Googlebot, Storebot-Google and bingbot. It does not add GPTBot, ClaudeBot or Google-Extended. It adds a product Sitemap: and a comment linking llms.txt, not a falsely standardized robots directive.

Merging preserves existing text, mixed case, user-agent groups, wildcard private-path rules, allow exceptions and crawl delays. Any newly introduced specific-agent group inherits all wildcard rules, preventing accidental private-path access. Explicit crawler disallows, wildcard blocks on discovery, unknown directives or unfinished groups are reported for merchant resolution rather than overridden. Repeated merges are idempotent; sitemap/link additions are deduplicated. No new checkout disallow is created; existing restrictions are never removed.

To keep an app's own policy, configure robots: { existing: () => readExistingRobots(), onConflict: conflicts => notifyMerchant(conflicts) }. On conflict it serves that original file with status 200 and X-Relyon-Robots-Conflicts, logs/calls the conflict hook, and makes no changes. It does not return a 4xx robots response that crawlers might interpret as permission to crawl.

Robots names are not verified identities. User-triggered fetches (notably ChatGPT-User and Perplexity-User) may ignore robots. These helpers never change payment authorization, Relyon agent rules, signature verification or WAF configuration and grant no payment permissions.

Self-serve setup: domain and store policies

Agent checkout on a hostname needs that hostname verified as the store's domain, and agent channels need complete store policies. Both can be done with the store's own Test key, with no Relyon admin step. A Test secret key needs catalog:read for the verification file and the reads below, and catalog:write to add or verify a domain or replace the policies. Live keys with catalog:read can read only their own Live domain status (including doctor diagnosis). Creating or verifying Live domains still requires an organization admin, except for explicitly upgraded sandboxes; other Live-key writes answer live_not_available (see Test and Live).

// Once, from a setup script or an admin action in the store (server side only).
const domain = await kit.ensureDomain();          // first of store.hostnames; adds it if missing
// The kit now serves domain.verification.record_value at /.well-known/relyon-verification.
const checked = await kit.verifyDomain(domain.hostname); // Relyon fetches that file (or the TXT record)
if (checked.status !== "verified") console.warn("not verified yet:", checked.failure_reason);

const policies = await kit.replaceStorePolicies({
  returns: { window_days: 30, cost: "free", policy_url: "https://candles.example/returns" },
  support: { url: "https://candles.example/help" },
});
if (!policies.complete) console.warn("store policies still missing:", policies.missing);

| Method | What it does | | --- | --- | | ensureDomain(hostname?) | Returns this store's domain for hostname (default: the first of store.hostnames), adding it when Relyon doesn't have it. Ret