Skip to content

Dynamsoft/barcode-reader-javascript-samples

Repository files navigation

Dynamsoft Barcode Reader samples for the web

This repository contains multiple samples that demonstrates how to use the Dynamsoft Barcode Reader JavaScript Edition for creating web-based barcode scanning applications.

Get the Code

Cloning the full repository may be slow due to its extensive history. To get started quickly, you have a few options:

  • Download as zip
  • Download as tar.gz
  • Shallow clone with Git:
git clone https://github.com/Dynamsoft/barcode-reader-javascript-samples.git --depth 1

Note

If you expect unstable network conditions or prefer to work entirely offline, you can download the offline package from Dynamsoft website. This includes the full repository and all required dependencies for offline use.

Running the Samples Locally

Opening HTML files directly may not work as expected. Instead, run a local development server. Here’s a quick method using Visual Studio Code:

  1. Install the Five Server extension from the VS Code Marketplace.

  2. Right-click on hello-world.html and select "Open with Five Server". This will serve the application at http://127.0.0.1:5500/hello-world.html.

Request a trial license

A default license is included which allows you to test the sample apps for up to 24 hours. You can request a 30-day trial license via Dynamsoft website to evaluate further.

Documentation

For the developer guide and full API reference of Dynamsoft Barcode Reader JavaScript library, please check out the documentation.

Support

If you have any questions, feel free to contact Dynamsoft support.

Sample list

Barcode Scanner API samples

Scan single barcode

Get the basic features working with plain/native JavaScript or within a framework like Angular, React or Vue, with RTU-BarcodeScanner APIs.

Scan multiple barcodes

Foundational API samples

Hello World

Get the basic features of the library working with plain/native JavaScript or within a framework like Angular, React or Vue, etc.

Use Cases

Others

  • Debug: Collect the actual image frames for debugging purposes.

Official Online Demo

  • Official Online Demo: Official demo for Dynamsoft Barcode Reader JavaScript Edition (written in Vue). Take our barcode scanner demo and see how it works in different modes!