Open source headless commerce that’s fast, flexible, and built to scale,launch stunning storefronts that convert and grow your business without limits.
6,368
stars
222
commits
TypeScript
primary language
Sep 8, 2026
updated
Website | Documentation | Forums | Community
A headless eCommerce framework built with Next.js and powered by Bagisto, designed for modern scalability and flexibility. Through layered caching and optimized rendering strategies, it consistently achieves a 100/100 Core Web Vitals score, delivering lightning-fast performance and seamless shopping experiences.
Check the Documentation to quickly set up your Headless eCommerce store.
Bagisto Version: v2.4.x
Bagisto API: v1.0.3

Bagisto Open Source Headless eCommerce is optimized to deliver a 100/100 Core Web Vitals score across devices, ensuring top-tier performance and user experience.

Before you begin, ensure you have the following installed:
Install Bagisto
Begin by installing the Bagisto eCommerce platform on your server or local environment.
Install the Bagisto Headless Extension
After installing Bagisto, install the Bagisto Headless Extension to expose the required APIs for your frontend.
Get your storefront up and running in one command:
npx -y @bagisto-headless/create your-storefront
Configure .env.local in the Next.js Project
In your Next.js frontend project, create or update your .env.local file with the following variables:
| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_BAGISTO_ENDPOINT | Enter Your Bagisto Shop URL | https://your-store.bagisto.com/ |
NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY | Enter Your Bagisto Storefront Key | pk_storefront_************************* |
NEXTAUTH_URL | Enter Your Headless Shop URL | https://headless-store.com/ |
NEXTAUTH_SECRET | Enter Your Headless Shop Secret | Generate with openssl rand -base64 32 |
COMPANY_NAME | Enter Your company name | Bagisto Headless Store |
Important Notes
.env.example to run Next.js Commerce..env file is sufficient for local development..env file to version control — it contains secrets that would allow others to control your Bagisto store.Click the button above to deploy your own copy of Bagisto Headless eCommerce to Netlify instantly!
Vercel Setup
Install the Vercel CLI:
npm i -g vercel
Link your local instance with Vercel and GitHub accounts (this creates the .vercel directory):
vercel link
Download your environment variables:
vercel env pull
Run the development server:
npm run dev
Build for production:
npm run build
npm run start
Install dependencies:
npm install
Start the development server:
npm run dev
Access the store at: http://localhost:3000
| Script | Description |
|---|---|
npm run dev | Start the Next.js development server |
npm run build | Create an optimized production build |
npm run start | Run the production server |
npm run lint | Lint the codebase with ESLint |
npm run lint:fix | Lint and auto-fix issues |
npm run typecheck | Type-check the project with tsc |
The Open Source Headless eCommerce allows users to browse a wide range of products with built-in pagination and search functionality. Each product has its own detailed page showcasing images, descriptions, pricing, reviews, and availability.
Bagisto Headless Commerce APIs support multiple product types, including simple, configurable, bundled, and downloadable products, ensuring flexibility for different business needs.

Products are neatly organized into hierarchical categories, making it easy for customers to navigate the store. Each category page displays relevant product listings with filtering and sorting options for a better shopping experience.
The Open Source Headless eCommerce also ensures SEO-friendly category URLs with meta titles, descriptions, and breadcrumbs for improved discoverability.

The checkout process is fully functional, featuring complete cart management where customers can add, update, or remove items.
Both guest and logged-in users can proceed through checkout, selecting shipping addresses and preferred payment methods.
Once the order is placed, it is instantly synchronized with the Bagisto backend, enabling smooth order processing and management.

Registered customers get a dedicated account dashboard to manage their profile and activity across the store. Authentication is handled securely via NextAuth.js, ensuring each customer's data stays protected. On desktop the panel renders as a full-page layout with a persistent sidebar, while on mobile it opens as a slide-in drawer for a native, app-like experience.
The customer panel includes:
Profile – View and edit personal details such as name, email, and password.

Addresses – Create, edit, and remove multiple shipping and billing addresses for faster checkout.
Orders – Browse the complete order history and open any order to view its detailed summary, items, and current status.

Downloadable Products – Access and re-download purchased digital products from a single place.
Reviews – Track and manage the product reviews submitted by the customer.
Wishlist – Save favorite products to revisit, move to the cart, or purchase later.

Compare – Add products to a comparison list to evaluate their attributes side by side.

All customer actions are synchronized in real time with the Bagisto backend through its GraphQL APIs.
Get Bagisto Headless Commerce support on Facebook Group and Forum
Bagisto headless eCommerce framework that will always remain free under the MIT License.
If you think that you have found a security issue in Bagisto Headless Commerce, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to mailto:support@bagisto.com.
TypeScript
99.3%
Open source headless commerce that’s fast, flexible, and built to scale,launch stunning storefronts that convert and grow your business without limits.
6,368
stars
222
commits
TypeScript
primary language
Sep 8, 2026
updated
Website | Documentation | Forums | Community
A headless eCommerce framework built with Next.js and powered by Bagisto, designed for modern scalability and flexibility. Through layered caching and optimized rendering strategies, it consistently achieves a 100/100 Core Web Vitals score, delivering lightning-fast performance and seamless shopping experiences.
Check the Documentation to quickly set up your Headless eCommerce store.
Bagisto Version: v2.4.x
Bagisto API: v1.0.3

Bagisto Open Source Headless eCommerce is optimized to deliver a 100/100 Core Web Vitals score across devices, ensuring top-tier performance and user experience.

Before you begin, ensure you have the following installed:
Install Bagisto
Begin by installing the Bagisto eCommerce platform on your server or local environment.
Install the Bagisto Headless Extension
After installing Bagisto, install the Bagisto Headless Extension to expose the required APIs for your frontend.
Get your storefront up and running in one command:
npx -y @bagisto-headless/create your-storefront
Configure .env.local in the Next.js Project
In your Next.js frontend project, create or update your .env.local file with the following variables:
| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_BAGISTO_ENDPOINT | Enter Your Bagisto Shop URL | https://your-store.bagisto.com/ |
NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY | Enter Your Bagisto Storefront Key | pk_storefront_************************* |
NEXTAUTH_URL | Enter Your Headless Shop URL | https://headless-store.com/ |
NEXTAUTH_SECRET | Enter Your Headless Shop Secret | Generate with openssl rand -base64 32 |
COMPANY_NAME | Enter Your company name | Bagisto Headless Store |
Important Notes
.env.example to run Next.js Commerce..env file is sufficient for local development..env file to version control — it contains secrets that would allow others to control your Bagisto store.Click the button above to deploy your own copy of Bagisto Headless eCommerce to Netlify instantly!
Vercel Setup
Install the Vercel CLI:
npm i -g vercel
Link your local instance with Vercel and GitHub accounts (this creates the .vercel directory):
vercel link
Download your environment variables:
vercel env pull
Run the development server:
npm run dev
Build for production:
npm run build
npm run start
Install dependencies:
npm install
Start the development server:
npm run dev
Access the store at: http://localhost:3000
| Script | Description |
|---|---|
npm run dev | Start the Next.js development server |
npm run build | Create an optimized production build |
npm run start | Run the production server |
npm run lint | Lint the codebase with ESLint |
npm run lint:fix | Lint and auto-fix issues |
npm run typecheck | Type-check the project with tsc |
The Open Source Headless eCommerce allows users to browse a wide range of products with built-in pagination and search functionality. Each product has its own detailed page showcasing images, descriptions, pricing, reviews, and availability.
Bagisto Headless Commerce APIs support multiple product types, including simple, configurable, bundled, and downloadable products, ensuring flexibility for different business needs.

Products are neatly organized into hierarchical categories, making it easy for customers to navigate the store. Each category page displays relevant product listings with filtering and sorting options for a better shopping experience.
The Open Source Headless eCommerce also ensures SEO-friendly category URLs with meta titles, descriptions, and breadcrumbs for improved discoverability.

The checkout process is fully functional, featuring complete cart management where customers can add, update, or remove items.
Both guest and logged-in users can proceed through checkout, selecting shipping addresses and preferred payment methods.
Once the order is placed, it is instantly synchronized with the Bagisto backend, enabling smooth order processing and management.

Registered customers get a dedicated account dashboard to manage their profile and activity across the store. Authentication is handled securely via NextAuth.js, ensuring each customer's data stays protected. On desktop the panel renders as a full-page layout with a persistent sidebar, while on mobile it opens as a slide-in drawer for a native, app-like experience.
The customer panel includes:
Profile – View and edit personal details such as name, email, and password.

Addresses – Create, edit, and remove multiple shipping and billing addresses for faster checkout.
Orders – Browse the complete order history and open any order to view its detailed summary, items, and current status.

Downloadable Products – Access and re-download purchased digital products from a single place.
Reviews – Track and manage the product reviews submitted by the customer.
Wishlist – Save favorite products to revisit, move to the cart, or purchase later.

Compare – Add products to a comparison list to evaluate their attributes side by side.

All customer actions are synchronized in real time with the Bagisto backend through its GraphQL APIs.
Get Bagisto Headless Commerce support on Facebook Group and Forum
Bagisto headless eCommerce framework that will always remain free under the MIT License.
If you think that you have found a security issue in Bagisto Headless Commerce, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to mailto:support@bagisto.com.
TypeScript
99.3%