Barcodes
Barcode generation and management plugin for Medusa v2. Generate and store barcodes for inventory items with GS1 DataMatrix support.
Features
Section titled “Features”- Barcode CRUD with URL and metadata storage
- On-the-fly barcode image generation (PNG) via admin API
- GS1 DataMatrix support with GTIN and serial number encoding
- Configurable barcode type, dimensions, and rendering options
- Powered by bwip-js for high-quality barcode rendering
Installation
Section titled “Installation”Inside your medusa backend root folder:
yarn add medusa-plugin-barcodesReplace “yarn add” with the correct command for your package manager if you are using (for example) npm, pnpm, or bun.
Configuration
Section titled “Configuration”Enable in your medusa-config.ts file. Example:
module.exports = defineConfig({ //... other config plugins: [ { resolve: 'medusa-plugin-barcodes', options: {} } // ... other plugins ]})- Manage barcodes via the admin API at
/admin/barcodes. - Generate barcode images via
GET /admin/barcode-generatorwith query parameters. - Supported parameters:
bcid(barcode type),text,gtin,serial,height,width.