Dot Cart
An open, interoperable file format (.cart) for ecommerce shopping carts, designed for agentic AI
About This Project
Dot-Cart is an open, vendor-neutral file format, called .cart, for describing the contents of an ecommerce shopping cart in a single portable UTF-8 JSON document. Each file records the merchant, line items, prices before and after VAT, shipping options, and the total awaiting payment. The project addresses the fact that carts are typically ephemeral and tied to one vendor, browser, or device, and it proposes a standard way to save, reopen, compare, and transform carts across vendors and over time. The v0.1 draft specification is published as a Markdown document, and it is accompanied by a JSON Schema (draft 2020-12) for validation, a machine-readable data dictionary in JSON and CSV, a typeset PDF, and a worked B2B example cart from an industrial supplier.
The repository is written primarily in Python and uses Typst for building the specification PDF and MkDocs Material for the documentation site hosted on GitHub Pages. The format is designed for agentic AI interoperability, so that browser agents or MCP servers can export live carts into .cart files, import them back into vendor carts, and diff prices and availability. The format maps fields onto existing open business-document standards, including ICC Incoterms 2020 for delivery terms and OASIS UBL and UN/CEFACT for purchase orders and requests for quotation. The roadmap lists a reference MCP server and transformers from carts to purchase orders and RFQs, with a v1.0 release planned after community feedback.
The project is intended for procurement and purchasing professionals who assemble bills of materials, collect quotes, or compare suppliers, as well as developers building agentic commerce tooling. It is also relevant to consumers who want to save, share, or price-watch carts. The project is released under the MIT license and is explicitly a proposal that invites issues and pull requests on the specification, schema, and examples.