Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Move from Instascan to another lib #286

Open
rubenspgcavalcante opened this issue Jul 4, 2018 · 1 comment
Open

Move from Instascan to another lib #286

rubenspgcavalcante opened this issue Jul 4, 2018 · 1 comment
Labels

Comments

@rubenspgcavalcante
Copy link
Contributor

Hey people,
While developing the new scan qr code page, I've came to some problems while trying to do a production build of the project.
Basically Webpack is unable to compile instascan as it tries do compile to ES5 at runtime with Babel.
There's this issue posted long ago with someone that had the same problem:
schmich/instascan#42

There's a promise of the lib being released precompiled, but seems the project is dead, and the author isn't taking much care anymore:
schmich/instascan#153

Another problem is the size of this library, reaching unbelievable 1.28 mega bytes, which are basically a copy paste of a JS version of a lib called zxing (there's a npm package zxing-js but I'm not sure if this code is from there).
boxwise-budle

So, there's a light alternative for it:
https://github.com/cozmo/jsQR

Or we can just go for the zxing-js:
https://github.com/zxing-js/library

In both cases, we'll need to implement the camera capture and pass it to the libs, not something so hard.

For sure we need to move away from Instascan as it is a blocker, so what you guys say?

@martron
Copy link

martron commented Jul 6, 2018

I was just looking into this for our own app and while instascan is scanning a lot more reliably/quickly than an older library we replaced I'm also worried about the library size and lack of recent maintenance.

I hope you don't mind me watching this thread to get some hints on implementing the camera capture with jsQR which seems promising.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants