MCPInstall

syncfusion-angular-barcode

Use Syncfusion EJ2 Angular Barcode/QR components to generate and customize barcodes in Angular. Trigger for Code39/Code128, EAN/UPC, QR Code, Data Matrix, label printing, inventory/product tags, colors/sizing/text, logo overlays, rendering, and export (PNG/SVG/PDF).

Installs
303
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-barcode
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-angular-barcode automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Barcode Generation

When to Use This Skill

Use this skill when you need to:

  • Create linear barcodes (Code39, Code128, Code11, Codabar, Code32, Code93) for product identification and inventory management
  • Generate QR codes for URLs, contact info, and quick data sharing
  • Encode Data Matrix codes for compact, high-density encoding (healthcare, logistics)
  • Customize barcode appearance (colors, dimensions, display text, logos)
  • Export barcodes as image files (PNG, JPG) or base64 strings
  • Add logos to QR codes for branding and visual enhancement

Important: API Verification Required

API Verification Required: Always verify API class names, properties, and signatures by reading reference files (references/*.md) BEFORE generating code examples. Do not assume or infer class names.

Real-world scenarios:

  • Product labeling systems for retail/inventory
  • Mobile payment & authentication (QR codes)
  • Healthcare/pharmaceutical tracking (Data Matrix)
  • Document management & archiving
  • Marketing campaigns using branded QR codes

Component Overview

The Syncfusion Angular Barcode Generator supports three barcode families with extensive customization:

Barcode Types

TypeUse CaseCharacter SetIndustry
Linear (Code39, Code128, Code11, Codabar, Code32, Code93)Product IDs, serial numbers, inventoryAlphanumeric (varies by type)Retail, Warehouse, Telecom
QR CodeURLs, contact info, paymentsFull UnicodeMarketing, Mobile, Finance
Data MatrixCompact encoding, small labelsNumeric/AlphanumericHealthcare, Manufacturing, Logistics

Key Capabilities

  • ✅ 7 linear barcode types with symbol validation
  • ✅ Full customization (colors, dimensions, fonts, margins)
  • ✅ Logo support for QR codes via QRCodeLogo
  • ✅ Multiple export formats (PNG, JPG, Base64)
  • ✅ Automatic version selection for QR codes
  • ✅ Display text customization below barcodes

Documentation & Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation & package setup (@syncfusion/ej2-angular-barcode-generator)
  • Ivy vs ngcc package selection
  • Basic component setup & imports
  • Creating first Code128 barcode & QR code
  • Project configuration & CSS

Linear Barcodes (Code39, Code128, etc.)

📄 Read: references/linear-barcodes.md

  • Code39 (standard alphanumeric)
  • Code39 Extended (full ASCII support)
  • Code128 (high-density encoding with 3 character sets)
  • Code11 (telecommunications)
  • Codabar (libraries, blood banks)
  • Code32 (pharmaceutical/cosmetics)
  • Code93 & Code93 Extended
  • Character set limitations & validation
  • When to choose each type

QR Codes

📄 Read: references/qr-codes.md

  • QR code versions (1-40) & capacity
  • Basic QR code generation
  • Color customization (foreColor, backgroundColor)
  • Dimension control (width, height)
  • Display text below QR code
  • Adding logos & icons (QRCodeLogo with imageSource)
  • Logo positioning & sizing
  • Image sources (local files, URLs, base64)
  • Error correction levels

Data Matrix Codes

📄 Read: references/data-matrix-barcodes.md

  • Data Matrix overview & advantages
  • Use cases (healthcare, logistics, compact encoding)
  • Square vs rectangular symbols
  • Dimension customization
  • Color & appearance options
  • Display text configuration
  • When to use vs QR codes

Customization & Styling

📄 Read: references/customization.md

  • Shared customization properties (all barcode types)
  • Color customization (foreColor, backgroundColor)
  • Dimensions & scaling (width, height)
  • Margins & padding
  • Display text properties & positioning
  • CSS class customization
  • Responsive barcode sizing
  • Advanced styling across all types

Exporting Barcodes

📄 Read: references/exporting-barcodes.md

  • Export as image file (PNG, JPG)
  • Export as base64 string
  • Download functionality & file naming
  • Integration with backend systems
  • Use cases (printing, storage, sharing)

Quick Start Example

Basic Code128 Barcode

<!-- app.component.html -->
<ejs-barcodegenerator 
  #barcode
  type="Code128" 
  value="123456789" 
  width="200px" 
  height="150px">
</ejs-barcodegenerator>
// app.component.ts
import { Component } from '@angular/core';
import { BarcodeGeneratorComponent } from '@syncfusion/ej2-angular-barcode-generator';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent {}

QR Code with Custom Color

<ejs-barcodegenerator 
  type="QRCode" 
  value="https://example.com" 
  [foreColor]="'#FF0000'"
  width="200px" 
  height="200px">
</ejs-barcodegenerator>

Common Patterns

Pattern 1: Choose Barcode Type by Use Case

User needs to encode:

  • Product/inventory? → Code128 (high-density, retail standard)
  • Legacy system? → Code39 (widely supported)
  • Pharmaceutical? → Code32 (industry standard)
  • URL/contact? → QR Code (compact, mobile-friendly)
  • Small label? → Data Matrix (high-density, space-efficient)

Pattern 2: Customize for Different Backgrounds

// Light background
@barcode type="Code128" foreColor="#000000" backgroundColor="#FFFFFF"

// Dark background
@barcode type="Code128" foreColor="#FFFFFF" backgroundColor="#000000"

// Branded QR code
@barcode type="QRCode" [qRCodeLogo]="logoConfig" foreColor="#1976D2"

Pattern 3: Export & Download

export class BarcodeComponent {
  @ViewChild('barcode') barcode: BarcodeGeneratorComponent;
  
  downloadBarcode() {
    this.barcode.exportImage('barcode','PNG');
  }

  getBase64() {
    const base64String = this.barcode.toDataURL('image/png');
    // Send to server or store
  }
}

Pattern 4: Branded QR Codes with Logo

<ejs-barcodegenerator 
  type="QRCode" 
  value="https://mysite.com"
  #qrCode>
</ejs-barcodegenerator>
export class BrandedQRComponent implements OnInit {
  @ViewChild('qrCode') qrCode: BarcodeGeneratorComponent;
  
  ngOnInit() {
    (this.qrCode.qrcodelogo as QRCodeLogo) = {
      imageSource: 'assets/logo.svg',
      width: 50,
      height: 50
    };
  }
}

Key Props Summary

PropertyTypeUse WhenDefault
typestringSelecting barcode type (Code128, QRCode, DataMatrix)Code128
valuestringSetting encoded data""
widthstringControlling barcode width (px, %)Auto
heightstringControlling barcode height (px, %)Auto
foreColorstringSetting barcode color (#RGB or name)#000000
backgroundColorstringSetting background color#FFFFFF
displayTextobject{ visibility: false }Adding human-readable label below barcode
marginobjectAdding space around barcode{left: 0, right: 0, top: 0, bottom: 0}
qRCodeLogoobjectAdding logo to QR code (imageSource, width, height)undefined
modestringRendering mode (SVG or Canvas)SVG

Common Use Cases

Use Case 1: Retail Product Labeling System

// Create multiple product barcodes with customization
products.forEach(product => {
  <ejs-barcodegenerator 
    type="Code128"
    [value]="product.sku"
    [displayText]="{ text: 'Product SKU: 123456789', visibility: true }"
    foreColor="#333333"
    width="150px"
    height="100px">
  </ejs-barcodegenerator>
});

Use Case 2: Mobile QR Code with Branding

// QR code for app promotion with branded logo
<ejs-barcodegenerator 
  type="QRCode"
  value="https://appstore.com/myapp"
  [qRCodeLogo]="{ imageSource: 'assets/app-icon.png', width: 40, height: 40 }"
  [foreColor]="'#1976D2'"
  width="250px"
  height="250px">
</ejs-barcodegenerator>

Use Case 3: Healthcare Tracking with Data Matrix

// Compact Data Matrix for pharmaceutical packaging
<ejs-barcodegenerator 
  type="DataMatrix"
  [value]="medicineTrackingCode"
  [displayText]="{ text: 'Product SKU: 123456789', visibility: true }"
  width="80px"
  height="80px">
</ejs-barcodegenerator>

Next Steps

  • Start with getting-started.md to install the package
  • Choose your barcode type guide based on use case
  • Customize using customization.md
  • Export barcodes using exporting-barcodes.md

FAQ

What does the syncfusion-angular-barcode skill do?

Use Syncfusion EJ2 Angular Barcode/QR components to generate and customize barcodes in Angular. Trigger for Code39/Code128, EAN/UPC, QR Code, Data Matrix, label printing, inventory/product tags, colors/sizing/text, logo overlays, rendering, and export (PNG/SVG/PDF).

How do I install syncfusion-angular-barcode?

Run npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-barcode in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-angular-barcode/ (personal) or .claude/skills/syncfusion-angular-barcode/ (project).

Which AI agents can use syncfusion-angular-barcode?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-angular-barcode safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-angular-barcode?

It is published by syncfusion in syncfusion/angular-ui-components-skills. It has 303 recorded installs.

More from syncfusion/angular-ui-components-skills

View all →

syncfusion-angular-grid

syncfusion/angular-ui-components-skills

Implements Syncfusion Angular Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.

Frontend & Design342 installs

syncfusion-angular-common

syncfusion/angular-ui-components-skills

Common utilities and features for Syncfusion Angular components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion Angular components.

Frontend & Design327 installs

syncfusion-angular-chart

syncfusion/angular-ui-components-skills

Implement Syncfusion Angular Chart component for professional data visualization. Use this when creating or customizing charts such as line, bar, column, area, pie, financial (candlestick, OHLC), scatter, bubble, or stock charts. Supports axes configuration, series binding, legends, tooltips, zooming, real-time updates, technical indicators, themes, export, and accessibility features.

Frontend & Design321 installs

syncfusion-angular-license

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design319 installs

syncfusion-angular-themes

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design319 installs

syncfusion-angular-rich-text-editor

syncfusion/angular-ui-components-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design317 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs