Вышел Модуль интеграций 2.0 для MedusaЧитать анонс
POS logo

POS

Плагин Medusa v2 с оптимизированными эндпоинтами для POS

npm install @narisolutions/medusa-plugin-pos
Категория
Другое
Создано
Narisolutions
Версия
0.1.3
Ежемесячные загрузки
329
Последнее обновление

Индекс качества

3/4
  • Безопасность, Пройдено5/5
    • Нет скриптов установки, Пройдено
    • Нет известных уязвимостей, Пройдено
    • Нет сообщений о вредоносном коде, Пройдено
    • Нет секретов в пакете, Пройдено
    • Нет обфускации, Пройдено
  • Совместимость, Пройдено5/5
    • Диапазоны версий Medusa, Пройдено
    • Чистая установка, Пройдено
    • Сборка, Пройдено
    • Миграции, Пройдено
    • Запуск, Пройдено
  • Сопровождение, Не пройдено4/5
    • Публичный репозиторий, Пройдено
    • Свежий релиз, Пройдено
    • Нет отставания от Medusa, Пройдено
    • Тесты в CI, Не пройденоВ репозитории нет CI, который запускает тесты.
    • Открытая лицензия, Пройдено
  • Документация, Пройдено3/3
    • Инструкция по установке, Пройдено
    • Английский язык, Пройдено
    • Переменные окружения, Пройдено

Версия 0.1.3 проверена на Medusa 2.23.1 (29 нояб. 2026 г.). Как Gorgo проверяет плагины →

Зрелость

Растущий

Первый стабильный релиз 29 мая 2026 г., 4 версии, релизы в 3 из последних 12 месяцев. Как Gorgo оценивает зрелость →

@narisolutions/medusa-plugin-pos

Medusa v2 plugin that adds the product endpoints a POS (Point of Sale) app needs. Built by Nari Solutions specifically for Medusa POS — it is the backend half of that app.

Without these custom endpoints, a POS talking to Medusa's generic API has two problems: stock isn't checked automatically when adding items to a cart, and prices come back raw — not context-calculated. This plugin's endpoints return live inventory quantities per variant and context-calculated prices (), plus a option to choose exactly which product fields you fetch.

Built for Medusa POS

This plugin exists to serve narisolutions/medusa-pos. Its endpoints, response shapes, and options are designed around what that app consumes — install it on the Medusa backend that Medusa POS points at.

It has no dependency on the POS app itself, so the endpoints work for any client that wants stock-aware, price-calculated product data. Just be aware that the API is shaped by Medusa POS's needs and follows its requirements.

Requirements

  • Medusa v2 ≥ 2.15.0 ( and are peer dependencies)
  • Node.js ≥ 20

Installation

Setup

Add the plugin to your :

API Documentation

  • — endpoint reference with rationale and retirement criteria
  • — OpenAPI 3.1 spec (parameters, schemas, status codes)

Endpoints

All endpoints require an admin bearer token ().

GET

Returns all published products for a sales channel, with inventory quantities per variant.

Query paramTypeDescription
stringInclude for each variant
stringComma-separated extra fields appended to the default field list

The default field list covers core product/variant fields. Fields like are not included by default — opt in via .

Response: array of product objects.


GET

Looks up a single product by barcode value, with inventory quantities.

The path parameter is matched first against the variant field, then falls back to the field. This means physical barcodes stored in work out of the box — is the fallback for stores that populate that field instead.

Query paramTypeDescription
stringInclude for each variant
stringComma-separated extra fields appended to the default field list (e.g. )

Response: single product object. Returns if no variant matches either field.


GET

Returns . Requires auth. Use for backend health checks from your POS.

Authentication

Obtain a bearer token from the Medusa admin auth endpoint:

Use the returned token as on all requests.

Frontend usage (example)

Plugin options

OptionTypeDefaultDescription
Fallback currency code when is not passed
—Rate limit window in milliseconds
—Max requests per IP per window

License

Apache-2.0