Welcome! This package contains all resource files related to Dynamsoft Barcode Reader JavaScript SDK, and sample projects demonstrating how to use it.
After unzipping, you should see two folders: dist, which contains all the Barcode Reader JavaScript SDK resources, and samples, which includes subfolders for the individual sample projects.
To explore the full set of available samples, open the index.html file in your browser.
Important
Some browsers block local file access for security reasons. To avoid these restrictions, run the samples through a local web server.
Here are a couple of easy ways to start one:
-
Using Five Server VSCode extension
If you are using VS Code, simply install the Five Server extension, open the
Samplesfolder in the editor, and click "Go Live" in the bottom right corner of the editor. This will serve the sample project at http://127.0.0.1:5500/index.html. -
Using Node.js and
serveIf you have Node.js installed:
cd path/to/samples npx serve . -l 8000
Once the server is running, open your browser and navigate to:
http://localhost:8000
You’ll see the
index.htmlpage, which links to all sample pages.
Tip
Don’t want to set up a local server? You can view the latest version of our samples hosted on the Dynamsoft server here: https://demo.dynamsoft.com/Samples/DBR/JS/index.html
frameworks/– This directory contains framework-specific examples demonstrating how to integrate the Dynamsoft Barcode Reader (JavaScript edition) into common web and hybrid frameworks. Each framework folder contains one or more runnable sub-examples (for example, scan-using-foundational-api and/or scan-using-rtu-api) showing practical integration patterns.scenarios/– This directory contains focused scenario samples that show common real-world uses of the Dynamsoft Barcode Reader (JavaScript edition).
For API reference and more advanced usage, visit:
Dynamsoft provides a complimentary trial license for the SDK. When you download the SDK package from the Dynamsoft website, after creating a Dynamsoft account, the following license will have a 30-day free trial:
DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9
You can visit the Dynamsoft Customer Portal (https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=installer&package=js) to view your trial license details. Additionally, it's possible to extend the trial period via the customer portal, allowing for a total trial duration of 60 days.
If you run into any issues, please feel free to contact us at support@dynamsoft.com.
Copyright © Dynamsoft Corporation. All rights reserved.