{"id":33167558,"url":"https://github.com/googlearchive/chrome-nfc","last_synced_at":"2025-11-20T18:01:01.372Z","repository":{"id":13847062,"uuid":"16544299","full_name":"googlearchive/chrome-nfc","owner":"googlearchive","description":"Chrome App NFC Library","archived":true,"fork":false,"pushed_at":"2017-09-06T06:45:37.000Z","size":271,"stargazers_count":212,"open_issues_count":22,"forks_count":69,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-05-20T00:16:22.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"GusSand/NyuPoly-CS6923-Fall16","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlearchive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T12:36:33.000Z","updated_at":"2024-05-06T02:21:46.000Z","dependencies_parsed_at":"2022-08-28T10:41:35.836Z","dependency_job_id":null,"html_url":"https://github.com/googlearchive/chrome-nfc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/googlearchive/chrome-nfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlearchive%2Fchrome-nfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlearchive%2Fchrome-nfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlearchive%2Fchrome-nfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlearchive%2Fchrome-nfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlearchive","download_url":"https://codeload.github.com/googlearchive/chrome-nfc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlearchive%2Fchrome-nfc/sbom","scorecard":{"id":439223,"data":{"date":"2025-08-11","repo":{"name":"github.com/googlearchive/chrome-nfc","commit":"812f1d01e495b44ef609a59d489cc0850b3a09ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T05:16:39.233Z","repository_id":13847062,"created_at":"2025-08-19T05:16:39.233Z","updated_at":"2025-08-19T05:16:39.233Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285484486,"owners_count":27179744,"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","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-16T00:00:45.513Z","updated_at":"2025-11-20T18:01:01.367Z","avatar_url":"https://github.com/googlearchive.png","language":"JavaScript","funding_links":[],"categories":["Hardware Com"],"sub_categories":["NFC"],"readme":"# Chrome App NFC Library\n\nWith this simple library, you can build a [Chrome App](https://developer.chrome.com/apps) that communicates over USB with NFC Readers.\n\n## Supported NFC Readers\n\n[ACR122U](http://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader) | [SCL3711](http://www.identive-group.com/products-and-solutions/identification-products/mobility-solutions/mobile-readers/scl3711-contactless-usb-smart-card-reader)\n--- | --- \n\u003cimg src=\"https://raw.github.com/GoogleChrome/chrome-nfc/master/sample/images/acr122u.png\"/\u003e | \u003cimg src=\"https://raw.github.com/GoogleChrome/chrome-nfc/master/sample/images/scl3711.png\"/\u003e\n\n## Play with the Chrome App sample\n\n* Check `Developer Mode` in `chrome://extensions`\n* Click \"Load unpacked extension...\" in `chrome://extensions` and select the [sample](/sample) folder.\n* Launch it.\n\n\u003cimg src=\"https://raw.github.com/GoogleChrome/chrome-nfc/master/sample/screenshots/1040x811.png\"/\u003e\n\n## Caveats\n\nLearn more about USB Devices Caveats at https://developer.chrome.com/apps/app_usb#caveats\n\n## Usage\n\nOnce you've imported the [chrome-nfc.js](https:///raw.github.com/GoogleChrome/chrome-nfc/master/sample/chrome-nfc.js) javascript library into your Chrome App, you need to add the permissions below to your manifest file:\n\n```javascript\n\"permissions\": [\n  \"usb\",\n  {\n    \"usbDevices\": [\n      { \"vendorId\": 1254, \"productId\": 21905 }, // SCL3711\n      { \"vendorId\": 1839, \"productId\": 8704 }   // ACR122U\n    ]\n  }\n]\n```\n\n### Enumerate NFC readers\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  console.log(\"Found \" + devices.length + \" NFC device(s)\");\n  for (var i = 0; i \u003c devices.length; i++) {\n    var device = devices[i];\n    console.log(device.vendorId, device.productId);\n  }\n});\n```\n\n### Read NFC tag\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  var device = devices[0];\n  chrome.nfc.read(device, {}, function(type, ndef) {\n    console.log(ndef);\n    var uri = ndef.ndef[0][\"uri\"];\n    console.log(uri);\n    var text = ndef.ndef[1][\"text\"];\n    console.log(text);\n  });\n});\n```\n\n### Write NFC tag\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  var device = devices[0];\n  var ndef = [\n    {\"text\": \"Chromium.org website\" },\n    {\"uri\": \"http://chromium.org\" },\n    {\"aar\": \"com.google.samples.apps.iosched\" },\n  ];\n  chrome.nfc.write(device, {\"ndef\": ndef}, function(rc) {\n    if (!rc) {\n      console.log(\"WRITE() success!\");\n    } else {\n      console.log(\"WRITE() FAILED, rc = \" + rc);\n    }\n  });\n});\n```\n\n### Emulate NFC tag\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  var device = devices[0];\n  var ndef = [\n    {\"type\": \"URI\", \"uri\": \"http://chromium.org\"}\n  ];\n  chrome.nfc.emulate_tag(device, {\"ndef\": ndef}, function(rc) {\n    if (!rc) {\n      console.log(\"EMULATE() success!\");\n    } else {\n      console.log(\"EMULATE() FAILED, rc = \" + rc);\n    }\n  });\n});\n```\n\n### Read Mifare Classic tag (Logic Mode)\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  var device = devices[0];\n  chrome.nfc.read_logic(device, 0, 2, function(rc, data) {\n    console.log(UTIL_BytesToHex(data));\n  });\n});\n```\n\n### Write Mifare Classic tag (Logic Mode)\n\n``` javascript\nchrome.nfc.findDevices(function(devices) {\n  var device = devices[0];\n  var data = new Uint8Array([ // NDEF(http://google.com)\n    0xdb, 0x00, 0x03, 0xe1, 0x00, 0x00, 0x00, 0x00, // block 0 (MAD1)\n    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // block 1 (MAD1)\n    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n    0x03, 0x0f, 0xd1, 0x01, 0x0b, 0x55, 0x03, 0x67, // block 2 (NDEF)\n    0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,\n    0x6d, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // block 3 (NDEF)\n    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n  ]);\n  chrome.nfc.write_logic(device, 0, data, function(rc) {\n    console.log(\"WRITE_LOGIC() SUCCESS\");\n  });\n});\n```\n\n## Compiling the library\n\nCompiling script requires [Python 3.0](http://www.python.org/download/releases/3.0/) and will use online [Closure Compiler](https://developers.google.com/closure/). Just run\n\n    python3 compile.py\n\nand the library will be written to `chrome-nfc.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglearchive%2Fchrome-nfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglearchive%2Fchrome-nfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglearchive%2Fchrome-nfc/lists"}