Coming Soon - Google-led Protocol

The Commerce Toolkit for
JavaScript

ucp.js enables one-click integration into the Universal Commerce Protocol ecosystem. Build payments, products, and end-to-end shopping experiences with type-safe APIs.

$2T+
E-commerce market
Google
Protocol lead
1-Click
Integration
Type-Safe
TypeScript first

Get Early Access

Be among the first to integrate with the Universal Commerce Protocol. Join the waitlist and we'll notify you when ucp.js is ready.

No spam, ever. Unsubscribe at any time.

Quick Start

Get up and running with ucp.js in minutes.

Terminal
npm install ucp-handler @ucp/sdk zod@^3

# or with yarn
yarn add ucp-handler @ucp/sdk zod@^3

# or with pnpm  
pnpm add ucp-handler @ucp/sdk zod@^3

Why Choose ucp.js?

Built for developers who want to create robust, type-safe commerce integrations with minimal boilerplate.

Payment Ready
Seamless payment integrations with built-in support for all major payment providers through UCP.
Product Catalogs
Standardized product data formats that work across all UCP-compatible platforms and marketplaces.
Lightning Fast
Optimized for performance with minimal overhead. Deploy anywhere with zero configuration.
Universal Compatibility
Works with Google Shopping, Shopify, and any UCP-compatible commerce platform.
Enterprise Security
Built-in PCI compliance helpers, secure token handling, and audit logging out of the box.
Type Safety First
Full TypeScript support with auto-generated types for products, orders, and transactions.

Simple. Powerful. TypeScript.

Create UCP-compliant commerce endpoints with just a few lines of code.

commerce.ts
import { createUcpHandler } from "ucp-handler";
import { z } from "zod";

const handler = createUcpHandler(
  (commerce) => {
    commerce.product(
      "get_product",
      "Retrieve product details",
      {
        productId: z.string(),
      },
      async ({ productId }) => {
        const product = await fetchProduct(productId);
        return {
          content: [{ 
            type: "product", 
            data: product,
            schema: "https://schema.org/Product"
          }],
        };
      }
    );
  },
  {},
  { basePath: "/api/ucp" },
);

export { handler as GET, handler as POST };

What is UCP?

Universal Commerce Protocol is a Google-led initiative to standardize commerce data across the web, enabling seamless payments, product discovery, and shopping experiences.

1

Standardized Data

Product catalogs, pricing, and inventory in a universal format.

2

Unified Payments

Single integration for all payment methods and providers.

3

Global Reach

Connect to Google Shopping, marketplaces, and beyond.