{"id":16149706,"url":"https://github.com/robotastic/ble-ancs","last_synced_at":"2026-03-04T03:31:07.591Z","repository":{"id":57141025,"uuid":"44065285","full_name":"robotastic/ble-ancs","owner":"robotastic","description":"A NodeJS library for Apple Notification Center Service over BLE","archived":false,"fork":false,"pushed_at":"2016-04-12T02:52:15.000Z","size":118,"stargazers_count":83,"open_issues_count":9,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-13T02:54:56.415Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robotastic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-11T18:59:36.000Z","updated_at":"2025-07-21T20:32:18.000Z","dependencies_parsed_at":"2022-09-05T01:30:34.805Z","dependency_job_id":null,"html_url":"https://github.com/robotastic/ble-ancs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robotastic/ble-ancs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotastic%2Fble-ancs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotastic%2Fble-ancs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotastic%2Fble-ancs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotastic%2Fble-ancs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robotastic","download_url":"https://codeload.github.com/robotastic/ble-ancs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotastic%2Fble-ancs/sbom","scorecard":{"id":781141,"data":{"date":"2025-08-11","repo":{"name":"github.com/robotastic/ble-ancs","commit":"a88f4eea91360916456a40adaf51910e6e81ca40"},"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Code-Review","score":0,"reason":"Found 1/17 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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 15 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-23T04:56:56.189Z","repository_id":57141025,"created_at":"2025-08-23T04:56:56.192Z","updated_at":"2025-08-23T04:56:56.192Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T03:25:38.285Z","status":"ssl_error","status_checked_at":"2026-03-04T03:25:05.086Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-10T00:44:47.754Z","updated_at":"2026-03-04T03:31:07.565Z","avatar_url":"https://github.com/robotastic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BLE ANCS\n===========\n\nThis is a NodeJS library that provides Linux systems with notifications from iOS devices via Bluetooth LE, using the [Apple Notification Center Service (ANCS)](https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Introduction/Introduction.html).\n\nThis library is mostly a combination of 3 great libraries from [Sandeep Mistry](https://github.com/sandeepmistry):\n * [noble](https://github.com/sandeepmistry/noble) - A Node.js BLE (Bluetooth Low Energy) central module\n * [bleno](https://github.com/sandeepmistry/bleno) - A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals\n * [node-ancs](https://github.com/sandeepmistry/node-ancs) - A node.js lib to access the Apple Notification Center Service (ANCS)\n\nI have combined noble and bleno together so it is possible to easily pivot from being a peripheral to a central role. This allows for a Pairing to be established between the iOS device and the Linux system without any requiring any iOS Apps. You can simply go into the Bluetooth setting and connect with the Linux system to establish an ANCS pairing.\n\n## Prerequisites\n\n### Linux (Ubuntu)\n\n * Kernel version 3.6 or above\n * ```libbluetooth-dev```\n\n#### Ubuntu/Debian/Raspbian\n\n```sh\nsudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev\n```\n\n#### Fedora / Other-RPM based\n\n```sh\nsudo yum install bluez bluez-libs bluez-libs-devel\n```\n\n#### Running without root/sudo\n\nRun the following command:\n\n```sh\nsudo setcap cap_net_raw+eip $(eval readlink -f `which node`)\n```\n\nThis grants the ```node``` binary ```cap_net_raw``` privileges, so it can start/stop BLE advertising.\n\n__Note:__ The above command requires ```setcap``` to be installed, it can be installed using the following:\n\n * apt: ```sudo apt-get install libcap2-bin```\n * yum: ```su -c \\'yum install libcap2-bin\\'```\n\n### IMPORTANT!\nYou need to have the Bluetooth Service / `bluetoothd` initially running while the bluetooth LE dongle is attached. After they have initialized the dongle, stop the bluetooth service from running. Watch out for it respawning. Do a quick check with `ps -A | grep 'blue'`.\n\n```sh\nsudo stop bluetooth\n```\n\nor\n\n```sh\nsudo /etc/init.d/bluetooth stop\n```\n\n\n\n\n\nUsage\n-----\n\n    var BleAncs = require('ble-ancs');\n\n    var ancs = new BleAncs();\n\n__Notification Events__\n\n    ancs.on('notification', function(notification) {\n        ...\n    });\n\n * notification has the following properties\n   * event (one of):\n     * added\n     * modified\n     * removed\n   * flags (array):\n     * silent\n     * important\n   * category (one of):\n     * other\n     * incomingCall\n     * missedCall\n     * voicemail\n     * schedule\n     * email\n     * other\n     * news\n     * healthAndFitness\n     * businessAndFinance\n     * location\n     * entertianment\n   * categoryCount\n   * uid\n\n__Operations for 'added' or 'modified' notifications (event property)__\n\nRead App Identifier\n\n    notification.readAppIdentifier(function(appIdentifier) {\n      ...\n    });\n\nRead Title\n\n    notification.readTitle(function(title) {\n      ...\n    });\n\nRead Subtitle\n\n    notification.readSubtitle(function(subtitle) {\n      ...\n    });\n\nRead Message\n\n    notification.readMessage(function(message) {\n      ...\n    });\n\nRead Date\n\n    notification.readDate(function(date) {\n      ...\n    });\n\nRead All Attributes\n\n    notification.readAttributes(function(attributes) {\n      ...\n    });\n\n * attributes has the following properties\n   * appIdentifier\n   * title\n   * subtitle\n   * message\n   * date\n\n## Useful Links\n\n * [Bluetooth Development Portal](http://developer.bluetooth.org)\n   * [GATT Specifications](http://developer.bluetooth.org/gatt/Pages/default.aspx)\n * [Bluetooth: ATT and GATT](http://epx.com.br/artigos/bluetooth_gatt.php)\n\n## License\n\nCopyright (C) 2015 Sandeep Mistry \u003csandeep.mistry@gmail.com\u003e\nCopyright (C) 2015 Luke Berndt \u003cluke@robotastic.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotastic%2Fble-ancs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobotastic%2Fble-ancs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotastic%2Fble-ancs/lists"}