{"id":26804838,"url":"https://github.com/throughnothing/chrome-trezor","last_synced_at":"2025-03-29T22:27:17.788Z","repository":{"id":27343476,"uuid":"30818424","full_name":"throughnothing/chrome-trezor","owner":"throughnothing","description":"Chrome Javascript library to interface with Trezor Bitcoin hardware wallet","archived":false,"fork":false,"pushed_at":"2015-06-01T18:30:00.000Z","size":725,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-14T01:26:29.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/throughnothing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-15T05:04:39.000Z","updated_at":"2015-04-20T05:09:00.000Z","dependencies_parsed_at":"2022-08-07T12:16:19.399Z","dependency_job_id":null,"html_url":"https://github.com/throughnothing/chrome-trezor","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2Fchrome-trezor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2Fchrome-trezor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2Fchrome-trezor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2Fchrome-trezor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/throughnothing","download_url":"https://codeload.github.com/throughnothing/chrome-trezor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246252654,"owners_count":20747779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T22:27:17.269Z","updated_at":"2025-03-29T22:27:17.778Z","avatar_url":"https://github.com/throughnothing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrome-trezor\n\n[![Build Status](https://travis-ci.org/throughnothing/chrome-trezor.svg?branch=master)](https://travis-ci.org/throughnothing/chrome-trezor)\n[![Coverage Status](https://coveralls.io/repos/throughnothing/chrome-trezor/badge.svg?branch=master)](https://coveralls.io/r/throughnothing/chrome-trezor?branch=master)\n\n*DEPRECATED:* This repo is depracated as it has been replaced by [trezor/trezor-chrome-extension](https://github.com/trezor/trezor-chrome-extension)\n\nThis is a javascript library to interface with a Trezor Bitcoin hardware\nwallet directly from the Chrome browser.  It will work in Chrome on all\nplatforms and also on Chromebooks.\n\n# Synopsis\n\n```javascript\nvar Trezor         = require('chrome-trezor'),\n    TrezorDevice   = Trezor.Device,\n    TrezorMessage  = Trezor.Message,\n    TrezorMessages = Trezor.Messages;\n\nvar trezor = new TrezorDevice();\ntrezor.on('connect', function() { console.log('connected') });\ntrezor.connect();\n```\n\n## Running in Chrome\n\nThis is just a library to be used in other projects, but it does come with\nsome examples that can be run in Chrome.\n\nTo run the examples, you *do not* need to install the developer requirements\nlisted below if you don't want to modify the code.\n\nSimply enable \"Developer mode\" checkbox in the upper-right-hand corner of\n`chrome://extensions` and then click \"Load unpacked extension...\" and pick\nthe `examples-build` directory of this repo.\n\nThe `examples-build/manifest.json`, along with the\n`examples-build/js/background.js` file that it points to will tell chrome\nhow to run everything.\n\nIf you want to modify the code and run your modifications, you will need to\nproceed with the development requirements below.\n\n## Using in Chrome Apps/Extensions\n\nTo use this in Chrome Apps/Extensions, you will need your app to have\nthe following permissions in your `manifest.json` in order to access\nthe trezor device:\n\n```\n  \"permissions\": [\n    \"hid\",\n    {\n      \"usbDevices\": [\n        { \"vendorId\": 21324, \"productId\": 1 }\n      ]\n    },\n    ...\n  ],\n```\n\nThe example program has a sample in `example-builds/manifest.json` that can be used as an example.\n\n## Development requirements\n\n  * Chrome 38 or later. If you're on dev channel you should be fine.\n  * Node.js's [npm](https://www.npmjs.org/). On my OSX machine I\n    satisfied this requirement with `brew install node`.\n  * Webpack + App dependencies:\n    * `sudo npm -g install webpack mocha \u0026\u0026 npm install`\n\n## Running tests\n\n```\nnpm run test\n```\n\n## Build\n\nTo build run: `npm run build`\n\nWhenever you make changes to the javascript in `index.js` or `lib/` you will\nneed to run this again before re-launching the app from Chrome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fchrome-trezor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthroughnothing%2Fchrome-trezor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fchrome-trezor/lists"}