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

@xpaysh/acp-schemas

v0.1.0

Published

JSON Schemas for the Agentic Commerce Protocol (ACP), vendored from the upstream Apache-2.0 spec at agentic-commerce-protocol/agentic-commerce-protocol (rev 2026-04-17). Bundles: agentic_checkout, cart, delegate_authentication, delegate_payment, discount,

Readme

@xpaysh/acp-schemas

JSON Schemas for the Agentic Commerce Protocol (ACP), packaged as a versioned, npm-installable dependency for the agentic-commerce-for-* plugin family and any third-party consumer.

Vendor-neutral. Tracks the canonical upstream spec — we do not modify schemas, only mirror them with stable versioning.

Status

  • v0.1.0 — schemas vendored from upstream spec/2026-04-17/json-schema/*. 7 bundle schemas covering agentic_checkout, cart, delegate_authentication, delegate_payment, discount, extension, feed.
  • Future revisions tag a new minor version per spec date (v0.2.0 → next stable revision, etc.).

Install

npm install @xpaysh/acp-schemas

Bundles

| Bundle name | Source file | Key $defs | |---|---|---| | agentic_checkout | schema.agentic_checkout.json | CheckoutSession, CheckoutSessionWithOrder, CheckoutSessionCreateRequest, CheckoutSessionUpdateRequest, CheckoutSessionCompleteRequest, LineItem, Buyer, Order, Error, … | | cart | schema.cart.json | Cart | | delegate_authentication | schema.delegate_authentication.json | delegated-auth handshake | | delegate_payment | schema.delegate_payment.json | PaymentData | | discount | schema.discount.json | Discount, Promotion | | extension | schema.extension.json | Extension | | feed | schema.feed.json | product-feed shapes |

All bundles use JSON Schema 2020-12 ($schema: https://json-schema.org/draft/2020-12/schema).

Usage

const { SPEC_VERSION, schemas, getSchema, getDef } = require('@xpaysh/acp-schemas');

console.log(SPEC_VERSION); // '2026-04-17'

// Whole bundle
const checkoutBundle = getSchema('agentic_checkout');

// A specific type inside a bundle
const CheckoutSession = getDef('agentic_checkout', 'CheckoutSession');

Validating with Ajv

Cross-file $refs in the upstream bundles use relative URIs like schema.agentic_checkout.json#/$defs/LineItem. Register every bundle so Ajv can resolve them:

const Ajv = require('ajv/dist/2020');
const { schemas } = require('@xpaysh/acp-schemas');

const ajv = new Ajv({ strict: false, allErrors: true });
for (const [name, schema] of Object.entries(schemas)) {
  // Register each bundle under the relative URI used by the others.
  ajv.addSchema(schema, `schema.${name}.json`);
}

const validate = ajv.getSchema('schema.agentic_checkout.json#/$defs/CheckoutSession');
const ok = validate(myPayload);
if (!ok) console.error(validate.errors);

Versioning policy

The package version tracks the package shape + spec revision. SPEC_VERSION always identifies which upstream revision the bundled schemas come from. When the upstream spec ships a new dated revision, this package bumps a minor version. Breaking changes to the package API (export shape, function signatures) bump major.

Upstream

License

Apache-2.0. Schema content inherits the upstream spec's Apache-2.0 license.

See also