This app is a demo of a cross-platform (desktop + mobile) Tauri application that can read QR codes.
The parsed QR code value(s) will be written into the clipboard.
Check out the release page to get started.
On desktop (Windows, Linux, MacOS), this is a tray app that allows the user to:
- Scan for QR codes on the entire screen (not reliable for larger resolution).
- Crop an area of the screen to search for a QR code.
- Load an image from the clipboard and parse a QR code from it.
We use screenshots
and
bardecoder
crates
to scan and extract the QR code.
On mobile (iOS, Android) it is a simple app with only one main window to scan barcodes via the camera.
We use tauri-plugin-barcode-scanner
,
which uses the native mobile functionality to scan a
QR code with the camera.
To start with building and development, please make sure you followed the prerequisites installation guide from Tauri and all dependencies are installed on your system.
If you want to build for mobile, you need to follow the install steps for the mobile development preriquisites.
This repository uses pnpm
for the frontend packages,
so please make sure you have installed it as well.
Starting from npm
you could install it via npm install -g pnpm
.
-
Install repository dependencies
pnpm install
-
Initialise the mobile development structure Android:
pnpm tauri android init
iOS:
pnpm tauri ios init
-
Run the application in debug mode either local or in a mobile emulator. Local:
pnpm tauri dev
Android:
pnpm tauri android dev
iOS:
pnpm tauri ios dev