.cart — an open standard for ecommerce carts¶
Status: v0.1 draft proposal. Feedback and pull requests welcome.
.cart is a proposed open file format (JSON, UTF-8) for describing the contents
of an ecommerce shopping cart — the merchant, the line items, prices before and
after VAT, shipping options, and the total awaiting payment — in a single
portable, vendor-neutral file.
It is designed for agentic AI interoperability from the ground up: an agent
or MCP server should be able to export a cart from any vendor into a .cart
file, then import, compare, re-price, or transform it — for example into a
purchase order or request for quotation (RFQ).
Start here¶
Download the full spec
Grab the typeset specification PDF, the JSON Schema, and the machine-readable data dictionary (JSON / CSV) from the Downloads page.
What it's for¶
- B2C — save a cart, move it between devices, share it, price-watch it.
- B2B purchasing & procurement — capture carts as quote snapshots, compare suppliers on identical BOMs, and generate purchase orders and RFQs from carts.
- Agentic tooling — MCP servers and browser agents that export, import, compare, and transform carts as first-class operations.
The idea¶
With agentic AI, carts no longer need to be trapped in browser sessions. A
browser-based agent or an MCP server can already read any cart page — what's
missing is a standard format to write it to. That's what .cart is.
Rather than invent new document formats for the downstream artifacts, .cart
transformations map onto existing open standards — OASIS UBL and UN/CEFACT
for the PO/RFQ documents, and ICC Incoterms® for delivery terms. See the
standards mapping.
Source, issues, and contribution guide: github.com/danielrosehill/Dot-Cart · MIT licensed.