WebNFC is a NFC reading/writing web application that runs on the browser. Currently, this web application works on Google Chrome Beta browser from v81 onwards and Android phones with NFC capabilities.
- ⚛️ Preact (Front-End)
- Web NFC API (By Google Chrome)
- Reading NFC tags
- Offline Usage (Caching by Service Workers)
To setup the app for development on your local machine, please follow the instructions below:
- Clone the repo to your machine
git clone https://github.com/bilafish/nfc-reader.git
- Install the necessary packages
yarn install
-
Create a .env file in the root folder (Refer to .env.sample as reference). You will require a token as WebNFC is a experimental feature undergoing Chrome Origin Trial. To sign up for the trial, visit the registration page.
-
Start the development environment
yarn start
To set up your phone for Web NFC:
-
Install the latest Google Chrome Beta browser from Google Play Store on your Android phone with NFC support.
-
Open Google Chrome Beta and go to:
chrome://flags
-
Enable WebNFC and Experimental Web Platform features flags
-
Go to WebNFC and scan away!