项目 / mercurjs/mercur

mercurjs/mercur

行业推荐
语言 TypeScript标签 b2b-marketplacecomposable-commerceenterpriseheadless-commercetypescriptmarketplacemedusamedusajsmulti-vendorecommerce数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
1,909累计星
491Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

电商交易与订单履约

适配系统:交易中台、订单履约系统 · 得分 2.8

内置商品、购物车、订单与支付对象模型,可作为电商交易中台直接改造复用。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
用 Bun 执行 bun create mercur-app@latest 创建项目并 bun run dev 启动后,本地即可访问后端 API、管理面板和卖家面板,并内置演示商店数据。
特点或设计要点
Mercur 是开源无头多商户市场平台,内置商家入驻、多商户目录、佣金与自动分账,可自托管且不抽取 GMV 或交易分成,基于 TypeScript、事件驱动、API 优先,无需 fork 即可深度定制。
局限和适用边界
运行 Mercur 需要 Node.js 20 以上、PostgreSQL 13 以上、Redis 和 Bun(推荐)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-20 · 语言 TypeScript · 贡献者 —
typescript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 9,133 字节。

<br>
<p align="center">
  <a href="https://github.com/mercurjs/mercur">
    <img width="100%" alt="Mercur Admin Vendor Storefonrt" src="https://github.com/user-attachments/assets/4a0c801b-1d69-40dc-a075-f96a97774079" />
  </a>
</p>

<h1 align="center">
  Mercur
</h1>

<div align="center">
  <h3>The open-source marketplace platform. A Mirakl alternative.</h3>
</div>

<h4 align="center">
  <a href="https://mercurjs.com/">Website</a> ·
  <a href="https://docs.mercurjs.com">Documentation</a> ·
  <a href="https://demo.mercurjs.com/">Live Demo</a> ·
  <a href="https://discord.gg/hnZBzc4NJU">Discord</a>
</h4>

<div align="center">

  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mercurjs/mercur/tree/main?tab=MIT-1-ov-file)
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/mercurjs/mercur/issues/new/choose)
  [![Support](https://img.shields.io/badge/support-contact%20author-blueviolet.svg)](https://www.mercurjs.com/contact)
  [![GitHub closed issues](https://img.shields.io/github/issues-closed/mercurjs/mercur)](https://github.com/mercurjs/mercur/issues?q=is%3Aissue%20state%3Aclosed)
    <br>
    <br>
  [![Discord](https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white)](https://discord.gg/hnZBzc4NJU)

</div>

## What is Mercur

<img width="100%" alt="demo-screen" src="https://github.com/user-attachments/assets/8b73163c-230a-46c4-b86c-fed4fa339964" />

**Mercur** is an open-source, headless platform for building multi-vendor marketplaces. Add vendor onboarding, multi-vendor catalogs, offers, commissions, and automated payouts on top of a commerce core you can change at its foundation. Run B2C, B2B, and hybrid marketplaces without choosing between a profit-draining SaaS platform and a build from scratch.

- **Own your marketplace, no fees**: Self-host on your own infrastructure with full source access. No percentage of GMV, no per-transaction cut, no vendor lock-in — your data, your customers, and your roadmap stay yours.
- **Built for the marketplace model**: Vendor onboarding, multi-vendor catalogs, offers, commissions, and automated payouts are built in — multiple sellers can list offers against the same product, so you're not rebuilding marketplace logic on top of a single-seller commerce engine.
- **Headless and customizable, no forks**: TypeScript, event-driven, and API-first — serve any storefront or frontend. Extend or override workflows, products, and vendor rules through a composable architecture built for the most complex B2B and multi-vendor models, without patching the core.
- **Standing on [Medusa](https://medusajs.com/)**: Inherit a mature, battle-tested commerce core — catalog, orders, payments, shipping, tax, and stock — instead of reinventing it. Mercur adds the marketplace layer on top of **[Medusa](https://medusajs.com/)**.
- **Production-ready and AI-native**: Run real marketplaces in production today, on an architecture designed for AI-assisted development — an introspectable, API-first stack that works hand in hand with your AI coding tools.

![Mercur Use Cases](https://github.com/user-attachments/assets/808e283e-6d42-4c9f-bcd7-53c318f6f1e3)

<!-- GETTING STARTED -->

## Getting Started

To get a local marketplace up and running, please follow these simple steps.

### Prerequisites

Here's what you need to run Mercur.

- Node.js (Version: >=20.x)
- PostgreSQL (Version: >=13.x)
- Redis
- Bun _(recommended)_

> If you want to enable any of the available integrations (e.g. Stripe Connect payouts, Resend email, Algolia/Meilisearch search), you may want to obtain additional credentials for each one and add them to your `.env` file.

### Setup

1. Create a new Mercur project

   ```sh
   bun create mercur-app@latest my-marketplace
   ```

2. Start the development server

   ```sh
   cd my-marketplace
   bun run dev
   ```

3. Access your marketplace
   - Backend API: `http://localhost:9000`
   - Admin Panel: `http://localhost:9000/dashboard`
   - Vendor Panel: `http://localhost:9000/seller`

   Your marketplace comes seeded with a demo store out of the box — a ready-to-go seller (`seller@mercur.dev` / `supersecret`) with a full catalog of products and offers, so you can explore the admin and vendor panels immediately. Sign in to the Vendor Panel with those credentials, or manage everything from the Admin Panel.

### Built With

- [Medusa.js](https://medusajs.com/)
- [TypeScript](https://www.typescriptlang.org/)
- [React.js](https://reactjs.org/)
- [Vite](https://vitejs.dev/)
- [Node.js](https://nodejs.org/)
- [PostgreSQL](https://www.postgresql.org/)
- [Redis](https://redis.io/)

## Architecture

Mercur is modular. Each piece is a separate, independently deployable app that talks to the core over APIs.

- **Mercur Core**: the marketplace engine on top of Medusa, with vendors, commissions, payouts, and multi-vendor primitives.
- **Admin Panel**: marketplace operators manage vendors, catalog, categories, commissions, and rules.
- **Vendor Panel**: sellers manage their products, orders, and payouts.
- **Storefronts**: customer-facing B2C/B2B apps with multi-vendor browsing, cart, and checkout.

<img width="100%" alt="Mercur Admin Vendor Storefonrt" src="https://github.com/user-attachments/assets/cda889e8-03fe-4ac1-9999-3c798bc61f5f" />


## What's in this repo

This is the Mercur development monorepo: the `@mercurjs/core` plugin, the React + Vite admin and vendor dashboards, the `@mercurjs/cli`, the typed API client, the dashboard SDK, the Stripe Connect payout provider, and the cross-package integration suites. If you just want to build a marketplace, run `bun create mercur-app@latest` (see [Getting Started](#getting-started)) - clone this repo only when you want to contribute to Mercur itself.

## Deployment

Because Mercur is a plain Node.js application backed by PostgreSQL and Redis, it deploys the same way whether you ship it as a container, orchestrate it with Kubernetes, push it to a managed cloud, or lock it inside an air-gapped network. There's no proprietary runtime to adopt and no hosting tier you're forced onto, so where your marketplace lives and where its data sits stay entirely under your control. Prefer a managed backend? Mercur also deploys to [Medusa Cloud](https://medusajs.com/pricing/) with push-to-deploy and auto-scaling.

## License

This repository is **Mercur core**, licensed under the [MIT License](./LICENSE) and fully open source. It's the marketplace engine on top of [Medusa](https://medusajs.com) — vendors, multi-vendor catalogs, offers, commissions, and payouts, with the admin and vendor dashboards and APIs to run a marketplace yourself.

**Mercur Enterprise** adds a licensed suite of advanced modules (EAN matching & deduplication, a Buy Box / winning-offer engine, master-data governance, multi-channel stock sync, automated split payouts, vendor KYC, and much more), all maintained, tested, and upgraded by the core team. You deploy and run Enterprise on your own infrastructure, exactly like the open-source core.

It comes backed by a direct support relationship with the people who build the platform: a dedicated support channel, contractual SLAs with guaranteed response times, prioritized bug fixes and security patches, and hands-on onboarding and architecture guidance to get you to production. Higher support tiers add priority escalation and a named technical contact.

[Book Mercur Enterprise demo](https://www.mercurjs.com/enterprise).

## Professional services

Mercur is built and maintained by [Rigby](https://rigbyjs.com), a team that has designed, built, and launched multi-vendor marketplaces in production. If you'd rather not do it alone, we work alongside your engineers — from architecture reviews and integrating Mercur with your existing stack to hardening, scaling, and getting your marketplace live on schedule. [Talk to our team](https://www.mercurjs.com/contact).

## Contribution

Mercur is an Open Source project and we encourage everyone to help us make it better. If you are interested in contributing to the project, please read our [Contributing Guide](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md).

If you have any questions about contributing, please join our [Discord server](https://discord.gg/hnZBzc4NJU) - we are happy to help you!

Discovered a 🐛 or have feature suggestion? Feel free to [create an issue](https://github.com/mercurjs/mercur/issues/new/choose) on Github.

## Upgrades

Follow the [Release Notes](https://github.com/mercurjs/mercur/releases) to keep your Mercur marketplace up-to-date.

## Contributors

<a href="https://github.com/mercurjs/mercur/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=mercurjs/mercur" alt="Mercur contributors" />
</a>

## Star history

<a href="https://star-history.com/#mercurjs/mercur&Date">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="./.github/assets/star-history-dark.svg" />
    <img src="./.github/assets/star-history.svg" alt="Star History Chart" width="70%" />
  </picture>
</a>
↑