A browser-based QR Code Attendance System built using vanilla JavaScript, HTML, and CSS β no Node.js or backend setup required.
Supports camera-based scanning and image uploads, records attendance with timestamps, and exports the data to Excel.
- QR Code Generation β Generate QR codes for given text/links.
- QR Code Scanning β Supports live camera feed or uploaded images.
- Multi-Camera Support β Select from available devices.
- Attendance Logging β Records each scan with:
- Timestamp
- LRN (Learning Reference Number)
- Student Name
- Duplicate Prevention β Scans are only recorded once per student.
- Excel Export β Download attendance records as
.xlsx
.
- HTML5
- CSS3
- JavaScript (Vanilla)
- jsQR β QR code decoding
- QRCode.js β QR code generation
- SheetJS β Excel file generation
π¦ qr-attendance
βββ index.html # Main HTML file
βββ styles.css # Styling
βββ script.js # Main JS logic
βββ qrcode.js # QR code generation library
βββ jsQR.js # QR decoding library
βββ xlsx.full.min.js # SheetJS library for Excel export
βββ README.md # Documentation
- Clone or download this repository.
- Open
index.html
in a browser.β οΈ For camera access, usehttps
orhttp://localhost
(some browsers block cameras onfile://
). - Click Start Camera or Upload Image to scan a QR code.
- Attendance will be logged and can be downloaded as Excel.
(Add screenshots of your UI here)
This project is for demonstration and educational purposes. Modify freely for personal or educational use.