Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
9f959bc
Init skills
Justin-dynamsoft May 20, 2026
ab051a0
Update license string in SDK documentation to reflect new default key
Justin-dynamsoft May 20, 2026
cc5fd8c
Add AI coding skill section to README for enhanced developer guidance
Justin-dynamsoft May 22, 2026
8ed0e43
Enhance scan & search sample; add filter options for barcode formats,…
Justin-dynamsoft May 26, 2026
2eb38c2
Fix license key inconsistency; add BarcodeFormatIds reference and dyn…
Tom-Dynamsoft Jun 5, 2026
b6be720
Add advanced DCE APIs to api-camera.md
Tom-Dynamsoft Jun 5, 2026
4e575ad
Expand Next.js section with full App Router guidance
Tom-Dynamsoft Jun 5, 2026
615564e
Add CodeParser reference, update SKILL.md routing table, expand evals
Tom-Dynamsoft Jun 5, 2026
dc35024
Add DCE Advanced Features license note to api-camera.md
Tom-Dynamsoft Jun 5, 2026
1f318cb
Update dedicated license string in SKILL.md for data tracking & enhan…
Justin-dynamsoft Jun 8, 2026
f9cbb06
Refine README.md for Scan and Search sample
Justin-dynamsoft Jun 8, 2026
6070705
Add ImageEditorView API reference to skill
Tom-Dynamsoft Jun 8, 2026
58c644a
Add DCV bundle guidance, singleFrameMode caveats, and DrawingLayer vi…
Tom-Dynamsoft Jun 8, 2026
e871359
Add Pattern 9: DPM DataMatrix to sample-patterns.md
Timothy-Dynamsoft Jun 8, 2026
c15e807
Revert "Add Pattern 9: DPM DataMatrix to sample-patterns.md"
Timothy-Dynamsoft Jun 9, 2026
5839497
Add tip-and-beep sample: camera scanning with tip messages, beep, and…
Justin-dynamsoft Jun 11, 2026
d36f8ff
Update index.html
Shen-wb Jun 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .claude/skills/dbr-js-sample-creator/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: dbr-js-sample-creator
description: >
Use when creating JavaScript, TypeScript, or HTML sample code using the Dynamsoft Barcode Reader
SDK (dynamsoft-barcode-reader-bundle npm package or CDN). This skill covers all web barcode
scanning use cases including live camera scanning, image file decoding, single-barcode scanning,
QR codes, 1D barcodes, DataMatrix, PDF417, DPM, and framework integrations (React, Vue, Angular,
Next.js, Nuxt, Svelte, Electron, Capacitor, Blazor, PWA, ES6 modules, plain HTML).
Use this skill whenever the user mentions Dynamsoft Barcode Reader JavaScript, DBR JS,
dynamsoft-barcode-reader-bundle, CaptureVisionRouter in the browser, barcode scanning with
Dynamsoft in a web app, or wants to create a JavaScript/TypeScript sample that scans or decodes
barcodes.
---

# DBR JavaScript Sample Creator

The canonical skill definition lives in `.github/skills/dbr-js-sample-creator/`.

**Read `.github/skills/dbr-js-sample-creator/SKILL.md` and its `references/` directory now.**

The `SKILL.md` file contains:
- SDK architecture overview and loading methods (CDN UMD, CDN ES module, npm)
- License initialization patterns and the default public trial key
- Camera scanning and image capture code patterns
- Code style conventions for this repository

The `references/` directory contains:
- `api-sdk.md` — SDK loading, namespaces, CoreModule, preset templates, BarcodeFormatIds, dynamic settings
- `api-camera.md` — CameraView, CameraEnhancer, tip messages, auto-zoom, drawing layers, audio feedback
- `api-image.md` — File capture, CapturedResult, BarcodeResultItem properties
- `api-frameworks.md` — React, Vue, Angular, Next.js (App Router) complete component patterns
- `api-parsing.md` — CodeParser for GS1, driver's license (AAMVA), VIN parsing
- `sample-patterns.md` — Copy-paste ready code for all common scenarios
32 changes: 32 additions & 0 deletions .codex/skills/dbr-js-sample-creator/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: dbr-js-sample-creator
description: >
Use when creating JavaScript, TypeScript, or HTML sample code using the Dynamsoft Barcode Reader
SDK (dynamsoft-barcode-reader-bundle npm package or CDN). This skill covers all web barcode
scanning use cases including live camera scanning, image file decoding, single-barcode scanning,
QR codes, 1D barcodes, DataMatrix, PDF417, DPM, and framework integrations (React, Vue, Angular,
Next.js, Nuxt, Svelte, Electron, Capacitor, Blazor, PWA, ES6 modules, plain HTML).
Use this skill whenever the user mentions Dynamsoft Barcode Reader JavaScript, DBR JS,
dynamsoft-barcode-reader-bundle, CaptureVisionRouter in the browser, barcode scanning with
Dynamsoft in a web app, or wants to create a JavaScript/TypeScript sample that scans or decodes
barcodes.
---

# DBR JavaScript Sample Creator

The canonical skill definition lives in `.github/skills/dbr-js-sample-creator/`.

**Read `.github/skills/dbr-js-sample-creator/SKILL.md` and its `references/` directory now.**

The `SKILL.md` file contains:
- SDK architecture overview and loading methods (CDN UMD, CDN ES module, npm)
- License initialization patterns and the default public trial key
- Camera scanning and image capture code patterns
- Code style conventions for this repository

The `references/` directory contains:
- `api-sdk.md` — SDK loading, namespaces, CoreModule, preset templates
- `api-camera.md` — CameraView, CameraEnhancer, result receiver, dedup filter
- `api-image.md` — File capture, CapturedResult, BarcodeResultItem properties
- `api-frameworks.md` — React, Vue, Angular complete component patterns
- `sample-patterns.md` — Copy-paste ready code for all common scenarios
86 changes: 86 additions & 0 deletions .github/skills/dbr-js-sample-creator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# DBR JavaScript Sample Creator — AI Coding Skill

An AI coding skill that helps developers quickly build working web applications with the
[Dynamsoft Barcode Reader JavaScript Edition](https://www.dynamsoft.com/barcode-reader/sdk-javascript/)
SDK. Feed this skill to your AI agent (GitHub Copilot, Claude, Cursor, Windsurf, etc.) and
describe what you need — the agent will generate correct, production-ready code.

## Who Is This For?

Developers evaluating or integrating the `dynamsoft-barcode-reader-bundle` JavaScript SDK who want
to **accelerate POC development** using AI coding assistants. Instead of reading through
documentation and samples manually, let your AI agent do the heavy lifting with full SDK knowledge
built in.

## No Installation Required

This skill is organized into agent-specific directories so it is **auto-discovered** with no
configuration needed:

| Directory | Agent |
|---|---|
| `.github/skills/dbr-js-sample-creator/` | GitHub Copilot (auto-discovered) |
| `.claude/skills/dbr-js-sample-creator/` | Claude Code (auto-discovered) |
| `.codex/skills/dbr-js-sample-creator/` | OpenAI Codex (auto-discovered) |

Just clone the repository and open it in your AI-enabled editor. The skill is active immediately.

## What's Inside

```
.github/skills/dbr-js-sample-creator/
├── SKILL.md # Entry point — SDK architecture, patterns, conventions
├── README.md # This file
├── references/
│ ├── api-sdk.md # SDK loading (CDN/npm/ES6), namespaces, CoreModule, templates
│ ├── api-camera.md # CameraView, CameraEnhancer, result receiver, filter
│ ├── api-image.md # File/image capture, CapturedResult, BarcodeResultItem
│ ├── api-frameworks.md # React, Vue, Angular integration patterns
│ └── sample-patterns.md # Complete working code for every common scenario
└── evals/
└── evals.json # Test prompts & expectations for skill validation

.claude/skills/dbr-js-sample-creator/SKILL.md # Claude Code entry point
.codex/skills/dbr-js-sample-creator/SKILL.md # Codex entry point
```

The AI agent reads `SKILL.md` first, which directs it to the appropriate reference files based on
your task. You do not need to understand these files — they are written for the AI.

## SDK at a Glance

- **Package:** `dynamsoft-barcode-reader-bundle@11.4.2001`
- **CDN:** `https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.4.2001/dist/dbr.bundle.js`
- **npm:** `npm install dynamsoft-barcode-reader-bundle`
- **Trial license:** [Get a 30-day free trial](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=sampleReadme)

## Example Prompts

Once the skill is active, try prompts like:

| Prompt | What the AI generates |
|---|---|
| *"Create a plain HTML barcode scanner with camera"* | Full HTML with CDN UMD, camera pipeline, dedup filter |
| *"Build a React component that scans barcodes from camera"* | TypeScript React component with proper lifecycle + cleanup |
| *"Make a Vue 3 image barcode decoder"* | Vue SFC with `<script setup>`, Composition API, file input |
| *"Scan QR codes only using a custom template"* | Custom JSON template with `BF_QR_CODE` filter + HTML page |
| *"Write an ES6 module barcode scanner"* | `<script type="module">` with named imports from CDN .mjs |
| *"Add barcode scanning to my Angular app"* | Angular component with `ngAfterViewInit` / `ngOnDestroy` |

## Validating the Skill

Test with this prompt:

> *"Write a plain HTML page that uses the Dynamsoft Barcode Reader to scan barcodes via camera
> and display results."*

The AI should produce code that:
- Loads the SDK from CDN
- Calls `Dynamsoft.License.LicenseManager.initLicense()`
- Creates `CameraView`, `CameraEnhancer`, and `CaptureVisionRouter`
- Adds a `CapturedResultReceiver` with `onDecodedBarcodesReceived`
- Adds a `MultiFrameResultCrossFilter` for deduplication
- Appends the camera UI to a container div
- Calls `cameraEnhancer.open()` and `cvRouter.startCapturing("ReadBarcodes_SpeedFirst")`

More test prompts are available in [`evals/evals.json`](evals/evals.json).
Loading