Skip to main content
Docs/Ecommerce SDKs
DocsEcommerce SDKs
Free

Ecommerce SDKs

Five composable SDKs for building stores: catalog, cart and orders, transactional email, shipping rates, and address validation. All auto-detected and injected into generated apps.

Products

window.genmb.products is your catalog SDK: create, list, search, and update product records. Each product has a name, price, inventory, images, and arbitrary metadata. Backed by a per-app PostgreSQL table you can also browse via the Database Browser.

For seed data, point the codegen at a CSV and ask it to bulk-import using the products SDK on first load, or use the CSV Import SDK directly.

Commerce

window.genmb.commerce handles the cart-and-order workflow: add to cart, persist between sessions, compute totals (with tax once Stripe Tax is enabled), and convert a cart into an order at checkout.

Pair with the Billing SDK for actual payment collection. Commerce computes the order; Billing collects payment for it.

Email

window.genmb.email sends transactional email from your app: order confirmations, shipping updates, password resets you write in your handler. Falls back to platform SMTP; supports BYOK (bring your own key) for Resend / Postmark / SendGrid in production.

For shaped emails (logo, brand colors, footer), provide a template once and reuse it across send calls.

Shipping

window.genmb.shipping returns shipping rate quotes for an origin / destination / parcel triple. Fixed-rate fallback is built in; BYOK to EasyPost / Shippo unlocks live carrier rates.

Address

window.genmb.address validates and autocompletes postal addresses. Useful at checkout to prevent typos before paying for a parcel to nowhere. Backed by Google Maps Platform Address Validation when configured.

Putting It Together

A typical store flow:

  1. User browses catalog (products).
  2. User adds items to cart (commerce).
  3. User enters address (address validates + autocompletes).
  4. Shipping rate appears in cart (shipping).
  5. User pays (billing).
  6. Order is created (commerce) and confirmation is sent (email).

Ask GenMB to "build a store with checkout" and the AI will wire all of the above together; you can fine-tune in chat from there.

FAQs

Are these separate from the Stripe integration plugin?
Yes. The Stripe plugin handles payment processing. The Ecommerce SDKs (products, commerce, email, shipping, address) cover the commerce surface around payment: catalog, cart, order workflows, transactional email, and shipping rates.
Do I have to use all five SDKs together?
No. They are independent. Use only what your app needs. A digital download store probably only needs products + commerce. A subscription box needs shipping + address + commerce. Mix and match.
How is payment wired?
For accepting payments from end-users, use the Billing SDK (window.genmb.billing) which handles Stripe Checkout, Customer Portal, and subscriptions. See /docs/billing.
Where does product data live?
The products SDK is backed by a per-app PostgreSQL table provisioned through DataConnect. You manage products through the SDK or through the Database Browser; the schema is shared.

Ready to build?

Create your first app for free, no credit card required.