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

@acuris-geo/agentic-checkout

v0.1.0

Published

Agentic-checkout-ready address validation — converts Acuris /validate results into UCP (Universal Commerce Protocol) messages and ACP (Agentic Commerce Protocol) message errors inside merchant checkout-session endpoints.

Readme

@acuris-geo/agentic-checkout

Address validation for agentic commerce. When an AI agent drives checkout — Google's Universal Commerce Protocol (UCP) or OpenAI/Stripe's Agentic Commerce Protocol (ACP) — there is no human watching an address form, and no widget to catch typos. Both protocols make address validation the merchant's job inside the checkout-session endpoint, with structured messages as the only feedback channel to the agent.

This package runs Acuris Address Validation inside that endpoint and emits each protocol's native message shapes, so a bad address is caught before payment instead of after a failed delivery.

npm install @acuris-geo/agentic-checkout

UCP (v2026-04-08)

Inside your POST /checkout-sessions / PUT /checkout-sessions/{id} handler:

import { validateUcpDestination } from "@acuris-geo/agentic-checkout";

const destination = checkout.fulfillment.methods[0].destinations[0];
const check = await validateUcpDestination(destination, {
  apiKey: process.env.ACURIS_API_KEY,
});

checkout.messages.push(...check.messages);
if (check.correctedDestination) {
  // Echo the standardized form back as the authoritative destination.
  checkout.fulfillment.methods[0].destinations[0] = {
    ...check.correctedDestination,
    id: destination.id ?? "dest_validated",
  };
}

Emitted codes follow the UCP core spec and Google's UCP error-code registry:

| Outcome | Message | | --- | --- | | Verified at address level | (no message) | | Verified after standardization | warning address_standardized + correctedDestination | | House number not on street | error address_undeliverable (core standard error) | | No confident match | error address_unverifiable, per-field RFC 9535 path | | Required field absent | error missing_fulfillment_info, per-field path |

All errors use severity: "recoverable" per the spec's standard-error guidance — the agent platform can fix the input via API and retry. Paths default to $.fulfillment.methods[0].destinations[0].<field> and are configurable via methodIndex / destinationIndex / basePath.

ACP (2026-04-17 and 2025-09-29)

Inside your POST /checkout_sessions / POST /checkout_sessions/{id} handler:

import { validateAcpAddress } from "@acuris-geo/agentic-checkout";

const check = await validateAcpAddress(session.fulfillment_address, {
  apiKey: process.env.ACURIS_API_KEY,
  version: "2025-09-29", // ChatGPT Instant Checkout as deployed; default 2026-04-17
});

session.messages.push(...check.messages);
if (check.correctedAddress) session.fulfillment_address = check.correctedAddress;

Only the codes missing and invalid are emitted — both exist in the closed 2025-09-29 enum and the 2026-04-17 enum, so the output validates against either version. Targeting 2026-04-17 adds resolution: "recoverable" and the $.fulfillment_details.address.* param base.

Behaviour notes

  • Fail-open by default. Countries Acuris does not cover and transient upstream errors produce no messages (verdicts unsupported_country / unavailable) — an agentic checkout should not break because validation is unavailable. Set failClosed: true to block instead.
  • Verdicts (deliverable, correctable, undeliverable, unverifiable, missing_fields, unsupported_country, unavailable) are returned alongside the messages so you can implement your own policy (e.g. block undeliverable but allow unverifiable).
  • Pure mappers toUcpMessages / toAcpMessages and the protocol wire types are exported for custom flows (billing addresses, batch re-checks).
  • ISO-2 ⇄ ISO-3 country conversion is handled internally (Acuris uses ISO-3).

License

MIT © Acuris GmbH