JavaScript Barcode Reader Coming Soon

In version 6.3.0, our team compiled the C++ module of Dynamsoft Barcode Reader to WebAssembly, so that users can scan barcode with JavaScript at client-side. The new JavaScript edition is not matured, in that we are still juggling between speed and stability. Currently we are releasing it as a preview, with two builds.

Here is a comparison chart between the two:

features dbr-6.3.0 light dbr-6.3.0.stable
arguments for compiling to .wasm disabled C++ try-catch allowed C++ try-catch
size of .wasm 4.02M 5.47M
download at initial visit¹ depends on the network depends on the network
browser compile speed² quick slow
memory needed during compiling medium large
exceptions during reading medium really few
memory leak³ possible almost no memory leak
decode success rate medium high
decode upload image not suitable suitable
one-off decoding in a video stream suitable suitable
continuous scan in a video stream not suitable suitable
demo see it in action see it in action


  1. Users only need to download the .wasm files at their first visit.
  2. With Firefox and Edge, the browser supports caching compiled WebAssembly modules to Indexed DB, which allows users to store structured data on the client-side. So, from the second visit forward, the browser can finish page loading in a split second by retrieving the module file.
    Chrome and Safari do not support the aforementioned caching mechanism. We can store the .wasm file to Indexed DB, but not the compiled module file. So compilation is required at every visit.
  3. The light version skipped compilation of try...catch in C++ code, so some exceptions failed to be caught, resulting in possible memory leaks. When the memory leaks to a certain extent, the barcode scanning module will stop working due to insufficient memory. The leaked memory can be released when leaving or refreshing the web page. Therefore, the light version is not suitable for continuous decoding, but it can be used for one-off decoding.

In the next step, we will reduce the dependency on try...catch in C++ so as to combine the two versions into one, and work out a version that is fast to load and has a stable decoding capability.

Pre-order Special: 25% off the JavaScript Edition

Dynamsoft Barcode Reader JavaScript Edition is expected to be released in 3 weeks. It’s currently on pre-order and we are offering a discount of 25% off. After official release, the software will be licensed on a per-server basis, at $799/server/year. The current promotion price is $599/server/year.

If you are interested, please email to purchase. Please note that the discount expires on October 7th.

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.