AbsoluteJS

@absolutejs/commerce-easypost

@absolutejs/commerce-easypostv0.19.19-beta.3betaCommerce & Growth

EasyPost shipping adapter for @absolutejs/commerce

#Installation

BASH
bun add @absolutejs/commerce-easypost

#Capabilities

Overview

EasyPost 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

What you can build

Build on the supported package contract

Use @absolutejs/commerce-easypost through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/commerce-easypost version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/commerce-easypost example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#@absolutejs/commerce-easypost quick start

Partial snippet

# @absolutejs/commerce-easypost

TS
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, …

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/commerce-easypost@absolutejs/commerce-easypost/manifest@absolutejs/commerce-easypost/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build ./src/index.ts ./src/manifest.ts --root ./src --outdir dist --target bun --external @absolutejs/commerce --external '@absolutejs/commerce/*' --external @absolutejs/manifest --external @sinclair/typebox --external @easypost/api --external '@easypost/api/*' && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit
bun run check:packagebun run format && bun run typecheck && bun run test && bun run verify-package && bun run build && bun run verify-package --artifacts
bun run formatprettier --write "./**/*.{js,ts,json,md}"
bun run testbun test
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

2 symbols
EasyPostConfigtypePermalinkSource
TS
type EasyPostConfig = {
    apiKey: string;
};
Exported from @absolutejs/commerce-easypost