An intuitive, browser-based JavaScript library for seamless interaction with Apple mobile devices using WebUSB technology.
- Easy Integration: Plug-and-play library for web-based Apple device communication.
- WebUSB Support: Leverages WebUSB for reliable and secure connections.
- Cross-Browser Compatibility: Works on all modern browsers that support WebUSB.
- Lightweight & Fast: Optimized for performance and minimal footprint.
Install the library via npm:
npm install wat-js
Or include it directly via a CDN:
<script src="https://cdn.jsdelivr.net/npm/wat-js"></script>
Here’s how you can get started with WAT-JS:
If using a module bundler:
import WebMux from 'wat-js';
Or, if included via a <script>
tag:
const WebMux = window.WebMux;
Connect to an Apple device and retrieve basic information:
(async () => {
const device = await WebMux.connect();
if (device) {
console.log('Connected to:', device.name);
const info = await device.getDeviceInfo();
console.log('Device Info:', info);
} else {
console.log('No device connected.');
}
})();
Connect to an Apple device via WebUSB.
Returns: A Device
object or null
if no device is found.
Retrieve detailed information about the connected device.
Returns: An object with device details (e.g., model, serial number).
Browser | Supported | Notes |
---|---|---|
Chrome | ✅ | Full WebUSB support |
Edge | ✅ | Full WebUSB support |
Firefox | ❌ | No WebUSB support |
Safari | ✅ | Requires enabling WebUSB |
Opera | ✅ | Full WebUSB support |
Contributions are welcome! To get started:
- Fork the repository.
- Clone your forked repo locally.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a clear description of your changes.
Copyright 2024 Bell Cyber Security LLC.
Special thanks to the WebUSB community for paving the way for device-browser interactions.
For any issues or inquiries, reach out to us:
- Email: [email protected]
- GitHub Issues: Submit an Issue