About Mall4j
Mall4j is a Java ecommerce shop system whose open-source edition targets single-merchant B2C stores. The repository provides the main building blocks of an online mall: products with specifications and SKUs, orders, members, a shopping cart, payments, permissions, content management and statistics. The documentation is mainly in Chinese.
The current line is built on Spring Boot 4, Sa-Token for authorization, MyBatis and MyBatis-Plus, Redis and a Vue 3 front end. The maintainers describe the open edition as suitable for learning, evaluation, secondary development and building enterprise shop prototypes. Features such as multi-merchant support, supply chain, SaaS, cross-border commerce and multi-channel delivery are described as part of other, commercial versions.
The open edition is licensed under AGPL-3.0, while closed-source commercial use, private delivery and enterprise support require a commercial license from the vendor. It suits Java teams that want a source-level starting point for a mini-program, H5 or app-based store.
Key features
- Product, SKU and specification management
- Orders, members and shopping cart
- Payment and permission modules
- Spring Boot 4 and Vue 3 stack
- Content management and statistics
- Mini-program, H5 and app storefront targets
Good fit for
- →Building a single-merchant online shop in Java
- →Learning from a full Spring Boot ecommerce codebase
- Built with
- JavaScript
- Tags
- ecommerce
- java
- spring-boot
- vue
- online-shop
- b2c
- mall
- self-hosted
Mall4j: questions and answers
- What is Mall4j used for?
- Mall4j is a Java B2C online shop system built on Spring Boot and Vue 3, covering products, orders, members, payments and statistics for single merchants. It is a good fit for building a single-merchant online shop in Java and learning from a full Spring Boot ecommerce codebase.
- Is Mall4j open source?
- Yes. Mall4j is open source under the AGPL-3.0 licence. Its source code is on GitHub at gz-yami/mall4j and is written mainly in JavaScript.
- Is Mall4j free?
- Yes. Mall4j is open source, so the software itself is free to use.
- Can I self-host Mall4j?
- Yes. Mall4j can be self-hosted on your own server or infrastructure.
- What is Mall4j an alternative to?
- Mall4j is an open-source alternative to BigCommerce. Other open-source alternatives to BigCommerce include Fecmall, Bagisto and Medusa.
- Is Mall4j actively maintained?
- Yes. The most recent commit to Mall4j was on 29 September 2026, and the latest release is v4.0, published on 19 March 2026. The project has 5.3k stars on GitHub.
Open-source alternatives to Mall4j
See all
Fecmall
E-commerce
yii2 ( PHP ) fecmall(fecshop) core code used for ecommerce shop 多语言多货币多入口的开源电商 B2C 商城,支持移动
BSD-3-Clausevs BigCommerce★ 5.3k
Bagisto
E-commerce
Open Source eCommerce & Multi-Vendor Marketplace Platform Built with Laravel for Enterpris
MITvs BigCommerce★ 28k
Medusa
E-commerce
The world's most flexible commerce platform for agents and developers
OSSvs BigCommerce★ 37k
Saleor
E-commerce
Saleor Core: the high performance, composable, headless commerce API.
BSD-3-Clausevs commercetools★ 23k
Spree Commerce
E-commerce
Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScr
BSD-3-Clausevs BigCommerce★ 16k
Magento Open Source
E-commerce
Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, a
OSL-3.0vs BigCommerce★ 12k
SaaS alternatives to Mall4j
See all
BigCommerce
E-commerce
Hosted ecommerce platform with built-in B2B features and headless options
SaaS
Salesforce Commerce Cloud
E-commerce
Enterprise B2C and B2B commerce platform from Salesforce
SaaS
SAP Commerce Cloud
E-commerce
Enterprise ecommerce platform from SAP for B2B and B2C storefronts and catalogs
SaaS
Adobe Commerce
E-commerce
Ecommerce platform formerly Magento Commerce, with B2B and headless options
SaaS
Big Cartel
E-commerce
Store builder aimed at artists, makers and independent merchants
SaaS
Commerce Layer
E-commerce
Headless commerce API for carts, orders, pricing and inventory across markets
SaaS

