Skip to content

amoshydra/js-camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS CAMERA

Web QR Code scanner

amoshydra.github.io/js-camera





Features

  • Client side QR Code scanning
  • Use Browser's Barcode Detector API for hardware accelerated scanning
  • Fallback to zbar.wasm (from undecaf/zbar-wasm)





Development

pnpm install
pnpm dev

Lint and Format

pnpm lint:fix && pnpm fmt:fix





URL Query Parameters

Parameter Values Default Description
debug true false Show debug overlay with scanning details
scanner browser, legacy browser Scanner implementation to use

Examples

?debug=true                 # Show debug overlay
?scanner=legacy             # Use legacy zbar.wasm scanner
  • browser - Uses Barcode Detector API with hardware acceleration when available, falls back to legacy
  • legacy - Forces use of zbar.wasm scanner









About

A QR code scanner in the browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages