sayren

Build any front end,
run commerce on APIs

Build your storefront with React and TypeScript. Products, orders and payments call the Sayren API, and you deploy the site to Sayren or host it yourself.

API · SDK

Two commerce APIs.

  • Storefront API

    Call product, cart, checkout, payment and customer sign-in APIs from the browser.

    @sayren/storefront-sdk
  • Admin API

    Call product creation, order processing, refund and coupon APIs from your server.

    @sayren/store-sdk
Both APIs publish OpenAPI specs.
const sdk = createStorefrontClient({ baseUrl, storeCode });

const products = await sdk.catalog.searchProducts({
  keyword: "knit",
});
Webhooks

Send order events to external systems.

Order, payment, shipping, claim, inventory and inquiry events go to the URLs you register. Each resource carries a sequence number so you can keep events in order.

Webhook delivery log
EventSequenceResult
ORDER.PAIDsequence 1200
ORDER.DISPATCHEDsequence 2200
ORDER.DELIVEREDsequence 3200
CLAIM.RETURN_REQUESTEDsequence 1Retry
Hosting

Choose how to deploy.

  • Sayren hosting

    No servers to run. Publish and your HTTPS URL goes live right away.

    • Preview URLs
    • Custom domain
    • Version history
    • Roll back to a previous version
    npx sayren pull
    npx sayren deploy
    npx sayren status
  • Self-hosting

    Download your storefront code and deploy it anywhere. The API calls stay the same.

    • Download code
    • Use npm packages
    • Your own CI · CDN

    You can restrict payment return URLs to your registered domains.

Start with npx sayren create.