qr-lite
qr-lite copied to clipboard
A Firefox addon for generating and scanning QR codes.
QR Lite
QR Lite is a browser extension for generating and scanning QR codes offline.
Features
- Generate QR code for current tab in popup.
- Generate QR code for selected link/text.
- Change error correction level of generated QR code.
- Scan QR codes in images.
- Keep track of generating and scanning history.
Supported Browsers
This extension only supports Firefox at the moment.
Development
Prerequisites: yarn, pnpm(qr-scanner-wechat)
- Clone this repo and sync the submodules.
- Run
yarn
to install dependencies. - Run
yarn run prepare
to build the modified qr-scanner-wechat and copy it tosrc/
. - Run
yarn dev
to watch source files and automatically build the add-on when they change. - Load the temporary add-on by going to
about:debugging#/runtime/this-firefox
, then click "Load Temporary Add-on.." and choosedist/manifest.json
in the project root.
Use the script in /opencv
to update the pre-built OpenCV library and wasm.
Building
Build steps on Linux:
- Make sure you have
node
,yarn
,pnpm
(for building qr-scanner-wechat), and thezip
command installed. - Open terminal and cd to project root.
- Run
./release.sh
. After this you'll get two zip files in therelease
directory:qr-lite-release-xxxxxxxx.zip
is the installable extension, whileqr-lite-source-xxxxxxxx.zip
is the source code zip.
Localization
QR Lite supports the following languages:
- English
- 中文
- 日本語
Help us translate QR Lite into your language at Crowdin.
Credits
- ZXing for JS for generating QR code.
- OpenCV + wechat_qrcode for decoding QR code.
- Javascript QR Code for the initial code base.
License
MIT