A lightweight Chrome extension that generates and stores a unique, persistent device identifier — giving web apps a reliable way to recognize a device, entirely on the client.
Install from the Chrome Web Store →
- Generates a unique device ID (UUID) on first install.
- Stores the ID and an optional device name in Chrome local storage.
- Exposes both to your web app via
window.postMessage. - Popup to view, copy, rename, and regenerate the ID.
Request the device info from your web app and listen for the response:
// Request window.postMessage({ type: "GET_MY_DEVICE_ID" }, "*"); // Listen window.addEventListener("message", (event) => { if (event.source !== window) return; if (event.data.type !== "MY_DEVICE_ID_RESPONSE") return; const { my_device_id, my_device_name } = event.data; // e.g. apiService.registerDevice(my_device_id, my_device_name); });
- Clone or download this repository.
- Open Chrome → Extensions and enable Developer Mode.
- Click Load unpacked and select the project folder.
storage— stores the device ID and name locally. No data is collected or transmitted. See Privacy Policy.
MIT © Eng Acs — Repository