@checkoutkit/feed
v0.2.0
Published
Product feed builder, validator and server for the Agentic Commerce Protocol
Maintainers
Readme
@checkoutkit/feed
Product feeds for the Agentic Commerce Protocol. Agents cannot buy what they cannot see.
pnpm add @checkoutkit/feedNote the 2026-04-17 feed is an API, not a static file format, and upserts are
PATCH — products you omit are left unchanged.
Building
The builder takes the flat shape your database already has and expands it into the spec's nested one:
import { createFeedBuilder } from "@checkoutkit/feed";
const feed = createFeedBuilder({ currency: "gbp", sellerName: "Example Coffee" })
.add({
id: "prod_beans",
title: "Single Origin Beans",
images: ["https://example.coffee/beans.jpg"],
variants: [{ id: "sku_250", title: "250g", price: 1800, availability: true }],
});Validating — every problem, with the row and JSONPath that caused it:
import { formatProblems } from "@checkoutkit/feed";
console.log(formatProblems(feed.validate()));Systemic mistakes collapse into one line: 10,000 products missing images reads as
one warning, not ten thousand. Also available as npx checkoutkit validate feed.
Serving and publishing
import { createFeedServer, FeedClient } from "@checkoutkit/feed";
const handler = createFeedServer({ backend }); // merchant
await new FeedClient({ baseUrl }).publish(feedId, feed.toProducts()); // batchedCheckoutKit is an independent community implementation of the Agentic Commerce Protocol. It is not affiliated with, sponsored by, or endorsed by OpenAI or Stripe.
Part of CheckoutKit · Apache-2.0
