Trezor Bridge runs locally on your machine and acts as a focused, secure communication channel between your browser and your hardware wallet. It uses strong origin checks, explicit user consent, and encrypted transport to keep signing sessions private.
// Connection logs appear here // Click "Simulate connection" to see a flow.
Example: web app confirming Bridge is available and requesting device list.
// Minimal check using a local Bridge HTTP endpoint
(async function(){
try{
const res = await fetch('http://127.0.0.1:21325/',{mode:'cors'});
// Bridge responds with info; real clients use origin checks and postMessage flows.
document.getElementById('logbox').textContent += "\\n// Bridge reachable: " + (res.ok ? 'yes' : res.status);
}catch(e){
document.getElementById('logbox').textContent += "\\n// Bridge not reachable - start the bridge.";
}
})();