Build on the supported package contract
Use @absolutejs/commerce-easypost through its supported public entry points.
@absolutejs/commerce-easypostv0.19.19-beta.3betaCommerce & GrowthEasyPost shipping adapter for @absolutejs/commerce
bun add @absolutejs/commerce-easypostEasyPost shipping adapter for @absolutejs/commerce. Implements the ShippingProvider contract — rates, one-call cheapest-label purchase, and tracking — so a shop can buy and print real carrier labels.
EasyPost connects your existing USPS/UPS/FedEx/etc. carrier accounts, so the shop ships with whatever it already uses. Use a test API key for development.
Outcomes
Use @absolutejs/commerce-easypost through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/commerce-easypost
import { createEasyPostProvider } from "@absolutejs/commerce-easypost";
const shipping = createEasyPostProvider({
apiKey: process.env.EASYPOST_API_KEY!,
});
const label = await shipping.buyCheapestLabel({
from: shopAddress,
to: customerAddress,
parcel: { lengthIn: 12, widthIn: 9, heightIn: 2, weightOz: 8 },
});
// label.trackingNumber, label.labelUrl (print this), label.amount, …Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.