Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@vicacha-devs/medusa-plugin-barcode

Latest version: v0.1.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: yusufmuysca
0 Stars
0 Forks
4 Versions
TypeScript Repo language

Scan summary

@vicacha-devs/medusa-plugin-barcode was last scanned on 23 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published on 23 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 23 Nov 2026 No rules fired
0.1.0 23 Nov 2026 No rules fired
0.0.1 23 Nov 2026 No rules fired
0.0.0-stage 23 Nov 2026 Not shown

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

medusa-plugin-barcode

The Complete GS1 Barcode, Dynamic QR, Thermal/Sheet Label Printing, 10-Provider GTIN Product Lookup & Warehouse Inventory Stock-Take Suite for Medusa v2.

medusa-plugin-barcode unifies and supersedes four separate Medusa ecosystem capabilities—external barcode product enrichment (@bambiste/medusa-barcode), dynamic QR & barcode generation (@bambiste/medusa-qr), POS/warehouse barcode scanning (medusa-pos-plugin), and physical stock-take auditing (inventory-count)—into one cohesive, zero-external-runtime-dependency Medusa v2 plugin.


Table of Contents

  1. Ecosystem Comparison & Why medusa-plugin-barcode
  2. Architecture Overview
  3. Core Capabilities (The 4 Pillars)
  4. Installation & Setup
  5. Full Configuration Reference
  6. 10-Provider GTIN & ISBN Lookup Chain
  7. GS1 Symbologies, Checksum Math & GS1-128 / Digital Link
  8. 1D/2D SVG Barcode, Dynamic QR & Anti-Counterfeit HMAC Seals
  9. Thermal Roll & A4 Sheet Price/Barcode Label Printing (HTML + Zebra ZPL II)
  10. Warehouse Stock-Take Count Sessions & Quick Scan Adjustments
  11. Medusa v2 Workflows & Rollback Compensation
  12. Subscribers & Scheduled Jobs
  13. Complete REST API Reference (Admin & Storefront)
  14. Typed SDK Client (medusa-plugin-barcode/sdk)
  15. React Hooks: USB HID Keyboard-Wedge & WebRTC Camera Scanners (medusa-plugin-barcode/hooks)
  16. Storefront UI Kit (medusa-plugin-barcode/ui)
  17. Admin Studio (/app/barcodes) & Product Detail Widget
  18. Writing a Custom Lookup Provider
  19. Migration Guide from @bambiste/medusa-barcode & @bambiste/medusa-qr
  20. Security Architecture
  21. Testing, Linting & Typechecking

1. Ecosystem Comparison & Why medusa-plugin-barcode

Feature / Capability @bambiste/medusa-barcode (0.0.2) @bambiste/medusa-qr (0.0.2) medusa-pos-plugin (0.0.36) inventory-count (0.0.6) medusa-plugin-barcode (1.0.0)
Medusa Version v2 v2 v2 v2 v2 (>=2.4.0)
GS1 Check Digit Validation Buggy left-to-right loop (fails on even-length UPC-A, EAN-8, GTIN-14) N/A None None Spec-compliant right-to-left 3,1,3,1 GS1 Modulo-10 across all odd & even lengths
Supported Symbologies EAN-13, UPC-A, EAN-8, ISBN-13 QR only barcode string barcode string EAN-13, EAN-8, UPC-A, UPC-E, GTIN-14, ISBN-13, Code128, GS1-128, Code39, QR, DataMatrix
GS1-128 AI & Digital Link No No No No Full (01) GTIN, (10) Batch/Lot, (11)/(15)/(17) Dates, (21) Serial, (30)/(37) Qty, (310n) Net Weight + GS1 Digital Link URI
External GTIN Providers 8 providers (first-hit only) None None None 10 providers (adds free keyless OpenLibrary & Brocade) + first-hit & deep-merge strategies + smart ISBN routing
Batch Import Workflow Saves dummy pending_${barcode} rows without creating products N/A N/A N/A Creates real Medusa Products & Variants with transaction compensation/rollback
Auto Variant Barcode Gen No No No No GS1 In-Store (200–299) deterministic & sequential EAN-13 generator + product.created subscriber
1D/2D Barcode & QR Rendering None QR PNG/SVG None None Zero-dependency crisp SVG renderer for all 1D & 2D symbologies + optional File Module upload
Anti-Counterfeit Verification None None None None Constant-time HMAC-SHA256 signed tags + /store/barcodes/[code]/verify + <AuthenticityVerifierBadge />
Thermal & Sheet Label Printing None None None None 7 built-in presets (Thermal 50×25, 57×32, 100×50, 30×15 Jewelry + A4 24/40/65-up), multi-currency MRP/Sale formatting, print-ready HTML+SVG & raw Zebra ZPL II (^XA...^XZ)
Warehouse Stock-Take None None Basic POS scan Separate plugin Built-in BarcodeCountSession & BarcodeCountItem with live scan variance & 1-click Inventory Module reconciliation
Admin UI & Scanners Empty 431-byte stub Empty 431-byte stub External POS Basic 5-Tab Admin Studio (/app/barcodes), Product Detail Widget (product.details.after), USB HID Keyboard-Wedge & WebRTC Camera hooks

2. Architecture Overview

graph TD
  subgraph "Admin & Storefront Clients"
    AdminUI["Admin Studio (/app/barcodes) & Product Widget"]
    StoreUI["Storefront UI Kit (BarcodeImage, Scanner, HMAC Verifier)"]
    HID["USB/Bluetooth HID Keyboard-Wedge Hook"]
    Cam["WebRTC Camera BarcodeDetector Hook"]
    SDK["Typed SDK Client (createBarcodeSdk)"]
  end

  subgraph "Medusa v2 API Layer (src/api)"
    AdminRoutes["15 Admin Endpoints (/admin/barcodes/*)"]
    StoreRoutes["2 Store Endpoints (/store/barcodes/[code]/*)"]
    Validators["Zod Schemas & Middlewares"]
  end

  subgraph "Medusa v2 Workflows, Subscribers & Jobs"
    WF1["lookupAndCreateProductWorkflow"]
    WF2["batchBarcodeImportWorkflow"]
    WF3["bulkGenerateVariantBarcodesWorkflow"]
    WF4["generateBarcodeTagWorkflow"]
    WF5["scanInventoryCountWorkflow"]
    WF6["applyInventoryCountWorkflow"]
    Sub["product-created Subscriber"]
    Job["purge-expired-barcode-cache Cron Job"]
  end

  subgraph "Barcode Module (BARCODE_MODULE = 'barcode')"
    Service["BarcodeModuleService (BarcodeService)"]
    Parser["GS1 Checksum, UPC-E, GS1-128 & Digital Link Parser"]
    SVG["1D/2D Pure SVG Renderer"]
    Printer["Thermal & A4 Label Engine (HTML+SVG & Zebra ZPL II)"]
    Sec["HMAC-SHA256 Signer & SSRF Guard"]
    Chain["10-Provider Lookup Chain (first-hit / deep-merge)"]
    Models[("6 DML Models: Product, Cache, Tag, Template, Session, Item")]
  end

  AdminUI --> SDK
  StoreUI --> SDK
  HID --> AdminUI
  Cam --> StoreUI
  SDK --> AdminRoutes
  SDK --> StoreRoutes
  AdminRoutes --> Validators
  StoreRoutes --> Validators
  AdminRoutes --> WF1 & WF2 & WF3 & WF4 & WF5 & WF6
  AdminRoutes --> Service
  StoreRoutes --> Service
  Sub --> WF3
  Job --> Service
  WF1 & WF2 & WF3 & WF4 & WF5 & WF6 --> Service
  Service --> Parser & SVG & Printer & Sec & Chain & Models

3. Core Capabilities (The 4 Pillars)

Pillar 1: Multi-Provider GTIN/ISBN Lookup & Auto-Catalog Creation
  • Queries 10 external barcode databases (OpenFoodFacts, OpenBeautyFacts, OpenPetFoodFacts, OpenProductsFacts, GoogleBooks, OpenLibrary, Brocade, UpcItemDb, EanSearch, BarcodeLookup).
  • Automatic ISBN-13 (978/979) Priority Routing: Promotes GoogleBooks and OpenLibrary to the front of the chain whenever a book barcode is scanned.
  • Configurable Enrichment Strategy:
    • "first-hit": Returns immediately on the highest-priority provider match for minimum latency.
    • "deep-merge": Queries all active providers and merges missing fields (backfilling descriptions, ingredients, dimensions, suggested prices, and deduplicating image/category/author arrays).
  • Optional SSRF-Safe Image Downloading: Downloads external product images (validating https: public hosts and 8 MB size cap) and uploads them directly to Medusa's File Module (Modules.FILE).
Pillar 2: 1D/2D Barcode & Dynamic QR Generation + Anti-Counterfeit Seals
  • Pure SVG Rendering Engine: Generates crisp, dependency-free vector SVGs for EAN-13, ISBN-13, UPC-A, UPC-E, EAN-8, GTIN-14, Code128, GS1-128, Code39, QR, and DataMatrix.
  • GS1 In-Store (200–299) Auto-Assignment: Automatically generates valid 13-digit EAN-13 barcodes for new or existing Medusa product variants and syncs barcode, ean, and upc fields.
  • Dynamic BarcodeTag Tokens: Supports "view", "add_to_cart", "verify" (anti-counterfeit), and "gs1_digital_link" scan actions with live scan_count and last_scanned_at analytics.
  • Constant-Time HMAC-SHA256 Verification: Protects luxury, pharmaceutical, or limited-edition products against counterfeit tags using crypto.timingSafeEqual.
Pillar 3: Thermal Roll & A4 Sheet Price/Barcode Label Printing Engine
  • 7 Built-In Industry Presets + Custom Templates:
    • Thermal Rolls: thermal_50x25 (50×25mm), thermal_57x32 (57×32mm), thermal_100x50 (100×50mm Warehouse Carton), jewelry_30x15 (30×15mm Dumbbell Tag).
    • A4 Laser/Inkjet Sheets: a4_24up_70x37 (3×8), a4_40up_52x30 (4×10), a4_65up_38x21 (5×13 Mini).
  • Multi-Currency Pricing: Formats Sale Price and strike-through Compare-At / MRP Price via Intl.NumberFormat.
  • Dual Output Formats:
    1. Print-Ready HTML+SVG Document: Exact millimeter @page CSS rules for browser/OS printing.
    2. Raw Zebra ZPL II (^XA...^XZ): Native 203 DPI / 300 DPI commands (^BEN, ^B8N, ^BCN, ^BQN, ^FO, ^FD, ^PQ) for direct thermal printer streaming.
Pillar 4: Admin Studio, Hardware/Camera Scanners & Warehouse Stock-Take
  • Admin Barcode Studio (/app/barcodes): 5-tab management center in Medusa Admin.
  • Product Detail Widget (product.details.after): Generate variant barcodes and print thermal labels directly on any product page.
  • Hardware & Camera Scanners: useHidBarcodeScanner (USB/Bluetooth keyboard-wedge) and useCameraBarcodeScanner (WebRTC BarcodeDetector).
  • Warehouse Stock-Take Count Sessions: Create BarcodeCountSession audits, scan items rapidly (+1 / -1 / set), inspect expected vs. counted variance, and apply adjustments directly to Medusa's Inventory Module (Modules.INVENTORY).

4. Installation & Setup

Step 1: Install the Package
npm install medusa-plugin-barcode
# or
yarn add medusa-plugin-barcode
# or
pnpm add medusa-plugin-barcode
Step 2: Register in medusa-config.ts
import { defineConfig } from "@medusajs/framework/utils"

export default defineConfig({
  projectConfig: {
    databaseUrl: process.env.DATABASE_URL,
  },
  plugins: [
    {
      resolve: "medusa-plugin-barcode",
      options: {
        cacheEnabled: true,
        cacheTtlSeconds: 86400,
        enrichmentStrategy: "deep-merge",
        autoGenerateVariantBarcode: true,
        internalBarcodePrefix: "200",
        defaultProductStatus: "draft",
        downloadProductImages: false,
        requestTimeoutMs: 5000,
        storefrontBaseUrl:
          process.env.STOREFRONT_URL || "https://store.example.com",
        hmacSecret: process.env.MEDUSA_BARCODE_HMAC_SECRET,
        providers: {
          openFoodFacts: { enabled: true, priority: 10 },
          googleBooks: {
            enabled: true,
            priority: 15,
            apiKey: process.env.GOOGLE_BOOKS_API_KEY,
          },
          openLibrary: { enabled: true, priority: 18 },
          openBeautyFacts: { enabled: true, priority: 20 },
          openPetFoodFacts: { enabled: true, priority: 25 },
          openProductsFacts: { enabled: true, priority: 30 },
          brocade: { enabled: true, priority: 35 },
          upcItemDb: {
            enabled: true,
            priority: 40,
            apiKey: process.env.UPCITEMDB_API_KEY,
          },
          eanSearch: {
            enabled: Boolean(process.env.EAN_SEARCH_TOKEN),
            priority: 60,
            apiKey: process.env.EAN_SEARCH_TOKEN,
          },
          barcodeLookup: {
            enabled: Boolean(process.env.BARCODE_LOOKUP_KEY),
            priority: 70,
            apiKey: process.env.BARCODE_LOOKUP_KEY,
          },
        },
      },
    },
  ],
})
Step 3: Run Database Migrations
npx medusa db:migrate

5. Full Configuration Reference

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @vicacha-devs/medusa-plugin-barcode

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229