Tim, Xara web pages are static and are happy with the file:// protocol so off-line is fine.

Never done anything with HID devices but Chrome has an API (https://developer.chrome.com/apps/hid) so JavaScript probably would suffice.
if not in Chrome then you are coding (C++, C#, Java). I am sure there must be libraries out there.

Acorn