Bagisto
Open-source Laravel eCommerce platform for building multi-vendor marketplaces, B2B stores, headless commerce, and AI-powered storefronts.
Bagisto is a free, open-source eCommerce framework built on Laravel and Vue.js that empowers businesses to rapidly deploy full-featured online stores without proprietary locks. It is designed for developers and enterprises needing customizable, scalable commerce solutions—from single-store setups to complex multi-vendor or SaaS marketplaces. With built-in support for headless commerce, mobile apps via Flutter, AI-powered chatbots, and blockchain-based NFT marketplaces, Bagisto eliminates the need for expensive commercial platforms while retaining enterprise-grade functionality.
The platform leverages Laravel’s robust backend architecture with a modular package system under the Webkul namespace, Vue.js-powered frontends built with Vite, and first-class integrations with Elasticsearch, Redis, and MySQL. Version 2.4 introduced the Laravel AI SDK integration, giving Bagisto a unified AiProvider abstraction layer that connects to OpenAI, Anthropic, Gemini, Mistral, Groq, DeepSeek, xAI, and Ollama in a single registry without needing separate adapter code.
Bagisto’s extensibility model centers on Konekt Concord—a Laravel package that enables plugin-like module registration without modifying core files. The DataGrid abstraction decouples data retrieval from presentation across all admin interfaces, while view_render_event hooks allow non-invasive UI extensions from third-party packages. This architecture lets the ecosystem of 100+ community extensions coexist without fragmentation.
With Playwright-based end-to-end test suites for the storefront, Pest PHP unit tests per package, Docker Sail for local development, AWS AMI for cloud deployment, and an active release cadence of nearly one release per week, Bagisto is positioned as a production-grade platform for teams who want full ownership of their commerce infrastructure.
What You Get
- Multi-Vendor Marketplace - Admins can onboard sellers, configure tiered commissions, approve product listings, and give vendors a dedicated dashboard for managing their catalog, orders, and payouts.
- Multi-Tenant SaaS eCommerce - Spin up isolated merchant storefronts under one installation, ideal for operators building a marketplace SaaS where each merchant manages their own store independently.
- Headless Commerce with Next.js - A decoupled Next.js storefront connects to Bagisto’s REST API for high-performance, SEO-friendly product pages, while the Laravel backend handles catalog, checkout, and order management.
- AI-Powered Product & Chat Tools - The built-in MagicAI module provides a unified AiProvider entry point supporting OpenAI, Anthropic, Gemini, Mistral, Groq, DeepSeek, xAI, and Ollama for automated product descriptions, customer chatbots, and search recommendations.
- Point of Sale (POS) System - In-store checkout, inventory synchronization, and customer management for physical retail operations, unified with the online store inventory.
- B2B Commerce Features - Company-based purchasing accounts, multi-user access with role permissions, quote negotiation workflows, and bulk order approvals designed for wholesale and procurement teams.
- Decentralized & NFT Marketplace - Smart contract integrations with Ethereum and Solana enable NFT sales, decentralized marketplaces, and blockchain-backed e-signing.
- Open Source Flutter Mobile App - A companion Flutter mobile app template provides native iOS and Android shopping experiences connected to Bagisto’s API, available as a separate open-source repository.
- 100+ Prebuilt Extensions - The Bagisto Extension Marketplace offers ready-made modules for payment gateways (Stripe, PayPal, Razorpay, PayU), shipping carriers, SEO tools, GDPR compliance, and social login.
- Docker & AWS AMI Deployment - Official Docker Compose files with Laravel Sail for local development and a pre-configured AWS Marketplace AMI for one-click cloud production deployments.
Common Use Cases
- Running a commission-based marketplace - A platform operator onboards hundreds of independent sellers, sets category-level commissions, moderates listings, and manages payouts from a centralized admin, while each vendor operates their own product catalog and order queue.
- Building a headless commerce store - A development team decouples the frontend by connecting a Next.js storefront to Bagisto’s API, enabling custom animations, edge caching, and performance budgets impossible within a traditional monolithic frontend.
- Deploying a B2B procurement portal - A wholesale distributor configures company accounts with multiple buyer seats, enables quote request workflows and minimum order quantities, and connects the catalog to an ERP via Bagisto’s REST API.
- Launching an AI-augmented storefront - A retailer enables the MagicAI module to auto-generate product descriptions from SKU attributes using GPT-4o, deploys a conversational chatbot for order status queries, and uses AI-powered semantic search to reduce zero-result searches.
- Integrating physical and digital retail - A fashion brand runs the POS module in their physical stores, syncing real-time inventory levels with the online storefront to prevent overselling and enable click-and-collect pickup orders.
- Building a decentralized NFT marketplace - A digital artist collective integrates Ethereum smart contracts with Bagisto to sell tokenized artwork with on-chain provenance, royalty enforcement, and wallet-based authentication.
Under The Hood
Architecture Bagisto is built as a modular monolith on Laravel, with domain logic distributed across twenty-plus Webkul namespace packages—each covering a bounded context such as Checkout, Product, Sales, or DataTransfer. Konekt Concord orchestrates module registration, binding service providers, routes, models, and views dynamically without touching core files, which is what makes third-party extensions additive rather than invasive. The DataGrid abstraction applies uniformly across all admin list views, decoupling SQL query construction from rendering and making column customization, filtering, and export consistent across the entire admin surface. View render events let packages inject content into any Blade layout at named slots, enabling deep non-invasive UI composition. Laravel’s service container and repository pattern provide dependency injection throughout, while event listeners decouple cross-domain side effects like inventory decrements and notification dispatch from order processing logic.
Tech Stack The backend runs on PHP 8.3 with Laravel 12.x as the foundational framework, complemented by Laravel Sanctum for API authentication, Laravel Cashier for subscription billing, Laravel Octane for high-throughput request handling, and Laravel Socialite for OAuth login. Data persistence is MySQL 8.0, with Redis (via Predis) for caching and session management, and Elasticsearch for catalog search. The admin and storefront frontends are Vue.js applications compiled by Vite with Laravel’s Vite plugin for asset hashing and hot module replacement. AI functionality is unified through the Laravel AI SDK integrated via the MagicAI package, which registers a typed provider registry covering OpenAI, Anthropic, Gemini, Mistral, Groq, DeepSeek, xAI, and Ollama. Payment processing integrates native Stripe, PayPal, Razorpay, and PayU SDKs. The development environment is containerized with Laravel Sail and Docker Compose; production deployment targets include bare-metal, Docker Swarm, and AWS AMI.
Code Quality Test coverage spans two frameworks: Pest PHP unit tests are organized per Webkul package (with dedicated test cases for Customer, Installer, Stripe, Razorpay, and other modules), and Playwright end-to-end tests cover the storefront across authentication, cart, checkout, wishlist, search, product comparison, and RMA flows. The presence of both unit and e2e layers at the package level is a meaningful quality signal for a platform of this scope. Code style is enforced with Laravel Pint (a wrapper around PHP-CS-Fixer), and naming conventions align with Laravel standards throughout—controllers, service providers, repositories, and events all follow predictable patterns. Error handling leans on Laravel’s framework-level exception handling rather than domain-specific typed exceptions, which is adequate but limits observability at the package boundary. The codebase includes inline comments on complex methods and has a CONTRIBUTING.md, SECURITY.md, UPGRADE.md, and CHANGELOG.md indicating mature project hygiene.
What Makes It Unique The combination of Konekt Concord’s module system with Laravel’s event architecture produces a genuinely extensible platform where third-party packages can register routes, models, Blade view slots, and admin DataGrids without a single line of core modification—a pattern rare in PHP commerce platforms of this complexity. The MagicAI AiProvider registry is a clean single-source-of-truth design: adding a new LLM provider requires only one entry in the provider array and a corresponding model enum implementing AiModelContract, with zero conditional branching in consuming code. The platform also spans an unusually wide deployment spectrum for a single codebase: the same Laravel application ships as a standard web store, a multi-tenant SaaS platform, a headless API backend for Next.js frontends, a POS terminal, a Flutter mobile app backend, and a blockchain commerce gateway—each through extension packages rather than separate forks.
Self-Hosting
Bagisto is released under the MIT License, which means you can use it commercially, modify the source code, distribute it, and sublicense it without restriction. There are no copyleft obligations—you do not need to open-source your own modifications or extensions built on top of it. The only requirement is that the MIT copyright notice is included in copies of the software. This makes it genuinely friendly for proprietary commercial deployments, custom white-label storefronts, and building SaaS products on top of Bagisto without legal encumbrances.
Running Bagisto in production is a meaningful operational commitment. The minimum stack requires PHP 8.3, MySQL 8.0, Composer, and a web server (Nginx or Apache), plus Redis for caching and queue workers for background jobs like email dispatch, inventory updates, and export processing. Elasticsearch is required for production-grade catalog search on large catalogs. Laravel Horizon or a Supervisor-based queue configuration is needed to keep background jobs reliable. You are responsible for server provisioning, SSL termination, database backups, PHP version management, and applying security patches from both Laravel and Bagisto’s release stream—which releases approximately weekly. Docker and AWS AMI options reduce initial setup time but don’t eliminate ongoing operational responsibility.
Webkul, the company behind Bagisto, offers paid support plans, managed hosting, custom development, and a commercial extension marketplace at store.webkul.com. Community support is available through the Bagisto forums and Facebook group, which are active given the project’s size. The hosted or commercially supported path gives you SLAs, professional upgrade assistance, and access to premium extensions that aren’t in the open-source repository. Self-hosters trade those guarantees for full infrastructure control, the ability to run fully air-gapped, and no per-transaction or per-store fees—which at marketplace scale can be a significant cost advantage over hosted platforms.
Related Apps
Grafana
Monitoring · Analytics
The open-source observability platform that unifies metrics, logs, and traces from any data source into dynamic, queryable dashboards.
Grafana
AGPL 3.0OpenBB
Databases · Analytics · Invoicing Finance
The AI Workspace for Finance: Connect Data, Run AI Agents, Build Analytics
OpenBB
OtherPocketBase
Databases · Ecommerce · Authentication
Open Source realtime backend in 1 file — embedded SQLite, auth, file storage, and admin UI as a single Go binary.