Reviving old scanners with an in-browser Linux VM bridged to WebUSB over USB/IP

TL;DR

A new web app enables users to operate old USB scanners through a browser by running an in-browser Linux VM with WebUSB bridging. The project leverages emulation and USB/IP technology, opening new possibilities for legacy hardware.

A developer has created a web-based solution that enables old USB scanners to be used directly in the browser by running an in-browser Linux virtual machine bridged to WebUSB over USB/IP, potentially reviving legacy hardware without native support.

The project utilizes the v86 x86 emulator to run a lightweight Alpine Linux with SANE (Scanner Access Now Easy) installed, enabling scanner control within the browser. The setup involves a custom C program that interfaces with the scanner, streams scan data, and communicates with the browser via JavaScript modules. USB/IP, running on the host machine, packages USB data into TCP packets, which are then bridged to the browser using WebUSB API, effectively allowing the scanner to connect as if directly attached to the computer. The demonstration was tested on a Canon CanoScan LiDE 100, with claims it should work on hundreds of other scanner models from various manufacturers.

Why It Matters

This development could significantly extend the lifespan and usability of vintage USB scanners that are no longer supported by modern operating systems. It offers a portable, browser-based solution that eliminates the need for legacy hardware drivers or virtual machines running on the host OS, making it accessible from any device with a web browser. This approach also demonstrates innovative use of web technologies, emulation, and hardware bridging, potentially influencing future hardware support strategies.

WoneNice USB Laser Barcode Scanner Wired Handheld Bar Code Scanner Reader Black

WoneNice USB Laser Barcode Scanner Wired Handheld Bar Code Scanner Reader Black

Plug and play, This laser handheld barcode scanner has simple installation with any USB port and Ideal for…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

Legacy USB peripherals, especially scanners, often become unusable as operating systems evolve and driver support is dropped. Previously, users relied on outdated OS or complex setups to access such hardware. The project builds on prior work with in-browser emulation (v86) and USB/IP, integrating them into a seamless web application. The developer, George MacKerron, previously developed printer intervention apps, and this project extends that concept to scanners by combining emulation, network bridging, and WebUSB APIs.

“The core idea was to emulate a Linux environment running SANE in the browser, then bridge the scanner over USB/IP and WebUSB, making old hardware accessible without native drivers.”

— George MacKerron

“The custom C program and JavaScript modules facilitate communication between the emulated environment and the browser, enabling real-time scanner operation.”

— Claude (contributor)

Kaisi Professional Electronics Opening Pry Tool Repair Kit with Metal Spudger Non-Abrasive Nylon Spudgers and Anti-Static Tweezers for Cellphone iPhone Laptops Tablets and More, 20 Piece

Kaisi Professional Electronics Opening Pry Tool Repair Kit with Metal Spudger Non-Abrasive Nylon Spudgers and Anti-Static Tweezers for Cellphone iPhone Laptops Tablets and More, 20 Piece

Kaisi 20 pcs opening pry tools kit for smart phone,laptop,computer tablet,electronics, apple watch, iPad, iPod, Macbook, computer, LCD…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

It is not yet clear how well the solution performs across different scanner models, or how stable and secure the system remains under prolonged use. The project has only been tested on one scanner model so far, and broader compatibility or potential limitations are still to be evaluated. Additionally, the open-source status of the code remains limited, with parts not yet publicly available.

ScanAid Cleaning Supplies and Consumables Kit for RICOH ScanSnap iX500, iX1400, iX1500, iX1600

ScanAid Cleaning Supplies and Consumables Kit for RICOH ScanSnap iX500, iX1400, iX1500, iX1600

Fujitsu Scanaid Cleaning Supplies and Consumable Kit for iX500 and iX1500

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

The developer plans to test the app with additional scanner models and improve compatibility. Future steps include open-sourcing more components of the project, gathering user feedback, and exploring broader hardware support. Further development may also focus on refining performance, security, and ease of setup.

WoneNice USB Laser Barcode Scanner Wired Handheld Bar Code Scanner Reader Black

WoneNice USB Laser Barcode Scanner Wired Handheld Bar Code Scanner Reader Black

Plug and play, This laser handheld barcode scanner has simple installation with any USB port and Ideal for…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can this web app work with any USB scanner?

The app has been tested only on a Canon CanoScan LiDE 100, but the developer claims it should work with hundreds of other models from various manufacturers. Compatibility is not yet fully confirmed across all devices.

Do I need technical expertise to set this up?

Some technical knowledge is required, particularly in running the setup and understanding how to connect the emulated environment. The project is still in experimental stages and not yet a plug-and-play solution.

Is the code open source?

As of now, the developer has not open-sourced all parts of the project, citing ongoing development and privacy considerations. Future plans may include releasing more components publicly.

Will this solution improve over time?

Yes, the developer intends to expand device support, improve stability, and streamline the setup process based on user feedback and further testing.

Source: Hacker News

You May Also Like

Mercurial, 20 years and counting: how are we still alive and kicking? [video]

Celebrating 20 years of Mercurial, this article explores how the project remains active, its current status, and what it means for the future of version control.

iPhone 18 Pro Launching Later This Year With These 10 New Features

Apple’s iPhone 18 Pro is set to launch in September, featuring 10 new confirmed features including a smaller Dynamic Island, LTPO+ displays, and a new A20 Pro chip.

India raises regular fuel prices for 1st time in 4 years on Iran war

India raises regular gasoline and diesel prices for the first time in four years, citing rising crude oil costs linked to the Iran conflict and global market pressures.

Nvidia RTX Spark

NVIDIA announces the RTX Spark Superchip, combining AI and RTX graphics in a single chip for ultra-efficient gaming, creation, and AI development in compact PCs.