// the find
bagisto/nextjs-commerce
Open source headless commerce that’s fast, flexible, and built to scale,launch stunning storefronts that convert and grow your business without limits.
A Next.js storefront template wired to the Bagisto PHP eCommerce backend via GraphQL. It targets teams already running Bagisto who want a modern frontend without building one from scratch. Not a standalone store — you need the Bagisto backend and their headless extension installed separately.
Uses ISR with revalidation rather than full SSR, which is the right call for product catalog pages that change infrequently. GraphQL queries are organized by domain (cart, catalog, checkout, customer) with fragments for shared shapes — that's a maintainable pattern. The skeleton/shimmer components are properly separated, so loading states are handled consistently. NextAuth.js integration for auth is a reasonable choice over rolling a custom JWT flow.
Redux for cart state alongside Apollo Client for data fetching is two state management layers doing overlapping jobs — that friction will show up when you try to keep them in sync across SSR and client. The provider stack in GlobalProviders.tsx is deep (Redux, Apollo, NextAuth, Session, Toast, Theme) with no clear boundary between what's server-safe and what's client-only. The '100/100 Core Web Vitals' claim in the README is marketing — it's a lab score on a demo store with no real inventory, traffic, or third-party scripts. There's no test suite visible anywhere in the tree, so you're flying blind when you customize it.