Бренды
Бренды для Medusa 2. CRUD, один бренд на товар, переводимое описание, Admin API и Store API.
Индекс качества
3/4Безопасность, Пройдено5/5
- Нет скриптов установки, Пройдено
- Нет известных уязвимостей, Пройдено
- Нет сообщений о вредоносном коде, Пройдено
- Нет секретов в пакете, Пройдено
- Нет обфускации, Пройдено
Совместимость, Не проверено1/5 · не проверено: 4
- Диапазоны версий Medusa, Пройдено
- Чистая установкаНе проверено
- СборкаНе проверено
- МиграцииНе проверено
- ЗапускНе проверено
- Мы ещё не устанавливали этот плагин в тестовый проект Medusa.
Сопровождение, Пройдено5/5
- Публичный репозиторий, Пройдено
- Свежий релиз, Пройдено
- Нет отставания от Medusa, Пройдено
- Тесты в CI, Пройдено
- Открытая лицензия, Пройдено
Документация, Пройдено3/3
- Инструкция по установке, Пройдено
- Английский язык, Пройдено
- Переменные окружения, Пройдено
Версия 1.0.0 проверена на Medusa 2.23.1 (29 нояб. 2026 г.). Как Gorgo проверяет плагины →
Зрелость
НовыйПервый стабильный релиз 29 нояб. 2026 г., 1 версия, релизы в 1 из последних 12 месяцев. Как Gorgo оценивает зрелость →
@topo-js/medusa-plugin-brand
Brands for Medusa 2.23+: a brand module, one brand per product, a translatable description, and admin and store API routes.
Install
npx medusa db:migrateData model
Table (prefixed so it never clashes with your own tables); the entity is .
| Field | Type | Notes |
|---|---|---|
| text | searchable () | |
| text, unique | defaults to the title as a slug; lowercase letters, numbers and hyphens | |
| text, nullable | translatable: Settings > Translations in the admin | |
| text, nullable | ||
| JSON, nullable |
A product has at most one brand; a brand has many products (, ), stored in the link table .
API
| Route | Description |
|---|---|
| List. , , , , , , | |
| Create | |
| Retrieve | |
| Update (same fields, all optional) | |
| Soft delete; also removes its product links | |
| The brand's products, paginated (, ) | |
| , like ; a product with another brand moves to this one | |
| The product's brand (or ) | |
| sets it, removes it | |
| List, e.g. for a brand page | |
| Retrieve | |
| Medusa's product list filtered by one or more brands (); combines with , , , pagination... |
Store routes return translated fields in the request locale: or the header. accepts .
Admin
- Products > Brands (): list with search and pagination; create in a focus modal (title, handle, logo upload, description), built with from and validated with Zod.
- Brand detail (): the dashboard's detail layout with a general section (edit drawer at , delete), Products (add from a product picker at , remove one or many), Metadata (key/value drawer at , as on products) and JSON.
- Product page widget (): pick or remove the product's brand.
- Settings > Translations: the brand's description, per locale.
- UI texts in English and Spanish (), keys under .
Workflows
Exported from : , , , , . Each step compensates on failure.
| Workflow | Hook | Hook input |
|---|---|---|
Extend brands
Add your own fields without forking the plugin, the way Medusa extends products: a module of your own, a module link to , in and , and a workflow hook that saves it.
For example, an ERP id on each brand, with an module of yours that has an model:
Do the same for edits with , and read the field back with on the brand routes. Without , accepts any object.
Development
The integration tests boot a bare Medusa app () that loads the plugin from its build, so run first. They create their own database with , , and (default on ).
To try it in a Medusa app while developing, use here and in the app, then here to rebuild on change.
Release
The workflow publishes with npm Trusted Publishing, no token: the package's settings on npmjs.com trust this repository and .
License
MIT

