medusa README

项目的 README,来自 github.com/medusajs/medusa。合并为一个 markdown 文件:README.md。

Medusa logo

Medusa

Documentation | Website

Building blocks for digital commerce

Medusa uses an open-core licensing model. PRs welcome! Discord Chat Follow @medusajs

Medusa is an open-source commerce platform with a built-in framework for customization. Use it to build B2B or DTC stores, marketplaces, distributor platforms, PoS systems, and other applications that need commerce primitives such as products, carts, orders, and payments, without reinventing core commerce logic.

Getting Started

The fastest way to get started is with Medusa Cloud, a managed environment for Medusa applications with automated deployments, scaling, and maintenance. Get started on Medusa Cloud.

To create a Medusa application locally, you need Node.js v22.22.0 or later and a running PostgreSQL database. Then run:

npx create-medusa-app@latest my-medusa-store

This sets up the Medusa server and admin dashboard, and optionally the Next.js Starter Storefront. See the installation guide for all options, or install with Docker.

Repository structure

This is a Yarn workspaces monorepo. Every Medusa package published to npm lives under packages.

Path Contents
packages/medusa @medusajs/medusa: the main package installed in Medusa applications. Holds the Store and Admin API routes, CLI commands, subscribers, and jobs, and re-exports the modules and @medusajs/core-flows.
packages/core/* Core libraries: the framework runtime (framework), types, utils, Workflows SDK, Modules SDK, predefined workflows (core-flows), Query, orchestration, and the JS SDK.
packages/modules/* Commerce Modules (product, cart, order, pricing, payment, and more) and Infrastructure Modules (event bus, caching, file, locking, workflow engine, and more).
packages/modules/providers/* Module Providers, such as Stripe payments, S3 file storage, SendGrid notifications, Redis locking and caching, and auth providers for email/password, GitHub, Google, and OIDC.
packages/admin/* The Medusa Admin dashboard and the SDK, Vite plugin, and bundler used to build and extend it.
packages/design-system/* Medusa UI: the React component library, icons, Tailwind preset, and a Figma import tool.
packages/cli/* CLI tools: create-medusa-app, the medusa CLI, OpenAPI tooling, and the HTTP types generator.
packages/plugins/* Official plugins, such as draft orders and loyalty.
integration-tests HTTP and module integration test suites run against a real PostgreSQL database.
www The source of the Medusa documentation website.

About Medusa

Medusa's commerce modules are open-source and freely available on npm. Enterprise Edition features are identified separately in the repository.

Learn more about Medusa's architecture and Commerce Modules in the documentation.

Upgrades & Integrations

Follow the Release Notes to keep your Medusa project up-to-date.

Check out all available Medusa integrations.

Community & Contributions

The core team is available in GitHub Discussions, where you can create issues, share ideas, and discuss the roadmap.

The Contribution Guide describes how to contribute to the codebase and documentation.

Join the Discord server to meet and discuss with other community members.

Other channels

License

Medusa uses an open-core model. The core is licensed under the MIT License. The Enterprise Edition packages identified in ENTERPRISE-LICENSE.md (@medusajs/rbac, @medusajs/auth-oidc, and @medusajs/audit) require a commercial agreement with MedusaJS, Inc.

medusa (medusajs/medusa)

正在搜索数据库…

37.3K ·GitHub
这是什么?Medusa 是一个开源电商平台,内置开发框架,可用于搭建定制的电商应用,例如 B2B/DTC 店铺、市场平台、分销商平台或 POS 销售系统,无需重新开发核心电商逻辑。
这是现成的店铺前台,还是需要我在其上开发的框架?它是一个框架,加上一组可组合的电商模块(商品、订单、购物车等)。你需要基于它开发自己的应用或店铺前台,而不是一个开箱即用的成品店铺。
我要怎样才能运行 Medusa 应用?最快的方式是使用 Medusa Cloud,这是一个带有自动部署和扩容功能的托管环境。如果想在本地自行运行,可以按照文档中的安装说明操作。
运行 Medusa 需要安装 Node.js 吗?需要。Medusa 是一个基于 TypeScript/Node.js 的项目,其核心电商模块以 npm 包的形式发布。
这个仓库里的所有内容都可以免费使用吗?核心电商模块采用 MIT 开源许可证。不过,Medusa 采用开源核心(open-core)模式,基于 RBAC 的企业版功能需要单独签订商业协议。
Medusa 主要面向哪些人?面向开发者以及构建定制电商系统的团队,包括那些正在开发由 AI 智能体驱动的电商体验的团队,这是根据项目自身的描述得出的。
基于 Medusa 可以搭建哪些类型的业务?README 中提到,基于 Medusa 的电商基础能力,可以搭建 B2B 或 DTC 电商店铺、市场平台、分销商平台、POS 销售点系统以及服务类业务等。
如何让 Medusa 项目保持更新?可以查看项目的发布说明(Release Notes)来跟进更新,保持 Medusa 应用处于最新版本,并查看集成列表,了解可用的第三方连接。
为什么标语中提到了“智能体”(agents)?Medusa 将自己定位为“面向智能体和开发者的全球最灵活的电商平台”,因此既适用于传统由开发者搭建的店铺前台,也适用于由 AI 智能体驱动的电商场景。
作者
medusajs
大小
894.5 MB
星标
37.3K
时长
6年
提交 · 90 天