Sknoe / Notes
SFRA vs. PWA Kit vs. Storefront Next: The Big-Picture Migration Map (2026 Edition)
Before writing a line of React, get the bird’s-eye view of how Salesforce Composable Storefront, SCAPI, SLAS, and Managed Runtime fit together.
Before we dive into React state machines and route loaders, let’s zoom out and look at the whole map. If you have spent years building on SFRA (Storefront Reference Architecture), hearing terms like Composable Storefront, PWA Kit, Storefront Next, SCAPI, SLAS, and Managed Runtime can make it sound as if the whole tech stack changed overnight.
Here is the important starting point: moving to a headless storefront changes how the storefront is built and how it talks to B2C Commerce. The commerce platform still provides capabilities such as products, pricing, baskets, promotions, and orders. The storefront architecture determines where pages are rendered and where application code runs.
The Salesforce storefront choices
Salesforce documents SFRA, PWA Kit, and Storefront Next as storefront options. Storefront Next is Salesforce’s recommended option for new storefronts. SFRA remains an option for teams that want to use its established server-rendered architecture and B2C Commerce development tools. The right choice depends on your existing implementation and your team’s goals.
A useful shorthand: SFRA renders storefront pages in the B2C Commerce application; PWA Kit and Storefront Next run a separate React storefront that communicates with B2C Commerce through APIs. Storefront Next uses React 19, React Router 7, Vite, TypeScript, Tailwind CSS, and shadcn/ui.
PWA Kit and Storefront Next: same commerce platform, different patterns
PWA Kit and Storefront Next can both use SCAPI and run on Managed Runtime. Their application patterns differ. PWA Kit projects commonly use React components and hooks to request data, with React Query managing server state. Storefront Next uses React Router 7 framework patterns: route loaders retrieve data, and route actions handle mutations. That moves much of a route’s data work out of the component and into the route module.
In SFRA, a controller prepares data for an ISML template. In PWA Kit, components may use hooks to retrieve data. In Storefront Next, a route loader can retrieve data before the route renders, and the component uses that loader data. These are useful comparisons, but they are not one-to-one translations. You still need to decide where each responsibility belongs in the new architecture.
How a Storefront Next request reaches commerce data
Shopper’s browser
Requests a storefront page.
Edge/CDN
Routes the request toward the storefront application.
Managed Runtime app server
Runs the Storefront Next application and server rendering.
Route loader and SCAPI
The route loads the data it needs by calling B2C Commerce APIs.
B2C Commerce
Executes commerce behavior and returns the requested data.
Rendered storefront
The application returns the page to the shopper’s browser.
Managed Runtime hosts the storefront application. The app can call SCAPI to retrieve or change commerce data, and B2C Commerce still executes the relevant commerce behavior.
Managed Runtime also offers a proxy feature for routing API requests through the storefront’s domain. That feature needs configuration; it is not an automatic requirement for every setup. Direct browser requests can use SCAPI’s CORS support when configured for the allowed origins.
A migration can happen in stages
A team does not have to move every page in one release. A hybrid implementation can route some traffic to a headless storefront and keep other pages on SFRA while the team migrates. Which pages move first depends on the project; product discovery, account, cart, and checkout flows all have their own integration and business requirements.
Authentication and shopper state need particular care when shoppers cross between SFRA and a headless storefront. Hybrid Auth synchronizes the session and authorization state; it does not simply exchange one token for another.
One possible phased approach
1. Choose a set of routes to serve through the headless storefront.
2. Keep other routes on SFRA while those experiences are being built or validated.
3. Configure routing and authentication for shoppers moving between the two.
4. Move additional routes when their functionality and integrations are ready.
The sequence is a project choice, not a universal rule. For example, keeping checkout on SFRA temporarily may be appropriate for one implementation and unsuitable for another.
An SFRA-to-Storefront Next translation guide
Controller prepares page data → Route loader retrieves data for a route
Controller handles a form submission → Route action handles a mutation
pdict provides template data → Loader data is consumed by the route component
ISML template renders a page → React component renders a route
dw.* Script API calls → Sometimes SCAPI, a custom API, or code that remains in B2C Commerce
Treat these as starting comparisons, not automatic substitutions. SCAPI does not expose a one-to-one replacement for every Script API or custom business rule.
Did this click?
Tap the bulb if this explanation helped.