Skip to content

crabnebula-dev/qr-reader-demo

Repository files navigation

QR Reader App

This app is a demo of a cross-platform (desktop + mobile) Tauri application that can read QR codes.

demo image

The parsed QR code value(s) will be written into the clipboard.

Check out the release page to get started.

Desktop

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.

Mobile

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.

Development

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.

  1. Install repository dependencies

    pnpm install
  2. Initialise the mobile development structure Android:

    pnpm tauri android init

    iOS:

    pnpm tauri ios init
  3. 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

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE-2.0
MIT
LICENSE_MIT

Stars

Watchers

Forks

Packages

No packages published