[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/Dynamsoft/barcode-reader-javascript-samples/_dev/README.html [Back]  [Original]

Dynamsoft Barcode Reader JS README

Barcode Reader JavaScript Edition

Sample code for building web-based barcode scanning applications

Quick Start

  1. Open index.html to browse all samples with live demo links.
  2. Or double-click any HTML in basics/ to run it immediately (internet required for CDN).
  3. For framework samples (frameworks/), run npm install in the desired subfolder, then follow that subfolders README for the correct commands.

System Requirements

Secure Context (HTTPS Deployment)

When deploying your application/website for production, make sure to serve it via a secure HTTPS connection. This is required for two reasons:

Some browsers like Chrome may grant access for http://127.0.0.1 and http://localhost or even for pages opened directly from the local disk (file:///...). This can be helpful for temporary development and testing.

Browser Compatibility

BrowserVersion
Chromev78+
Firefoxv68+
Edgev79+
Safariv14.5+

License

A default trial 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 the Dynamsoft website to evaluate further.

Important: Once your trial license expires, the SDK will throw an error and cease to function. Visit the Dynamsoft Customer Portal to view your trial license details. The trial period can be extended to a total of 60 days.

Running the Samples Locally

The standalone samples in the basics/ folder (hello-world.html, scan-a-single-barcode.html, read-an-image.html) and scenario samples load the SDK from a CDN, so you can open them directly by double-clicking no web server required (an internet connection is needed).

To browse all available samples, open index.html in your browser it links to every sample in the repository.

For framework samples, follow the instructions in each subfolder's README (typically npm install then npm run dev).

If you need a web server for standalone or scenario samples (for example, to serve SDK resources from a local dist/ folder), here's a quick method using Visual Studio Code:

  1. Install the Five Server extension from the VS Code Marketplace.
  2. Right-click on an HTML file and select "Open with Five Server". This will serve the application at http://127.0.0.1:5500/.

Sample Folders

Documentation

Support

Questions? Contact Dynamsoft support.

Official Online Demo

Official Online Demo: Try the Dynamsoft Barcode Reader JavaScript Edition demo (written in Vue) and see how it works in different modes!


Web Proxy Viewer  |  New URL  |  Original Page