AbsoluteJS

@absolutejs/commerce-programs

@absolutejs/commerce-programsv0.2.0-beta.0betaCommerce & Growth

Commerce kit and employer-funded store-credit contracts for AbsoluteJS storefronts

#Installation

BASH
bun add @absolutejs/commerce-programs

#Capabilities

Overview

Reusable kit contracts, fixed-price allocation, cart membership validation and employer-funded store-credit calculations.

Hosts must resolve trusted products, variants and prices and persist ledger effects transactionally. Browser kit metadata is never price authority. kitCartIssues validates component membership, quantities and fixed variants; allocateFixedKitPrice distributes an authoritative total into exact line cents.

Outcomes

What you can build

Build on the supported package contract

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

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/commerce-programs 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-programs example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/commerce-programsPackage entry point declared in package.json.

#Package commands

Scripts declared by this package manifest.

bun run buildbun build src/index.ts --outdir dist --target bun && tsc --noEmit false --emitDeclarationOnly --declaration --outDir dist
bun run check:packagebun run typecheck && bun run test && bun run build
bun run testbun test
bun run typechecktsc --noEmit