@skuio/storefront
v0.11.0
Published
The store platform behind SKU.io storefronts: catalog, checkout, orders, buyer portal and the Store API over one SQL driver — Cloudflare D1 or SQLite on any Node host. Framework-agnostic; pairs with the Astro reference template.
Downloads
1,469
Readme
@skuio/storefront
Typed catalog, checkout and order primitives for storefronts on the SKU.io storefront kit. Framework-agnostic: takes and returns plain data.
import { Catalog, defineStorefront, jsonProvider, formatMoney } from '@skuio/storefront'
import { createStripeCheckout, parseStripeWebhook } from '@skuio/storefront/stripe'Catalog— load once, query synchronously: products by SKU/slug, a category tree with paths and distinct product counts, breadcrumbs, deep membership.defineStorefront/defineRoutes— configurable URL patterns so a migrated store keeps every legacy URL.Moneyis integer minor units everywhere; there is no float price.jsonProvider(committed JSON, fully static) andskuioProvider(the SKU.io Storefront API: live availability, checkout created by SKU.io on the tenant's processor, orders born in SKU.io).- Stripe helpers behind a separate entry point so non-Stripe stores never bundle it. Prices are only ever read from the catalog on the server.
- Cart functions — pure, browser-agnostic, never trusted for money.
Start a store with npx @skuio/cli create my-store. Kit and docs:
https://github.com/skuio/storefront
