{"id":23817869,"url":"https://github.com/lsongdev/node-homekit","last_synced_at":"2025-09-07T00:32:46.872Z","repository":{"id":57266361,"uuid":"78922927","full_name":"lsongdev/node-homekit","owner":"lsongdev","description":":house: A HomeKit Accessory implementation in Node.js","archived":false,"fork":false,"pushed_at":"2024-12-17T06:16:38.000Z","size":284,"stargazers_count":40,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-06T07:52:32.299Z","etag":null,"topics":["apples","homekit","homekit-accessory","smart-home"],"latest_commit_sha":null,"homepage":"https://npmjs.org/homekit","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/lsongdev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2017-01-14T07:03:41.000Z","updated_at":"2024-12-17T06:16:43.000Z","dependencies_parsed_at":"2024-12-17T07:27:42.394Z","dependency_job_id":"27e95720-78af-4851-b4b4-cdc011297068","html_url":"https://github.com/lsongdev/node-homekit","commit_stats":null,"previous_names":["lsongdev/homekit","song940/homekit","lsongdev/node-homekit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/node-homekit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-homekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-homekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-homekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-homekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/node-homekit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Fnode-homekit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983013,"owners_count":25202092,"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-09-06T02:00:13.247Z","response_time":2576,"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":["apples","homekit","homekit-accessory","smart-home"],"created_at":"2025-01-02T05:48:57.802Z","updated_at":"2025-09-07T00:32:46.497Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"## HomeKit ![homekit](https://img.shields.io/npm/v/homekit.svg)\n\n\u003e A HomeKit Accessory implementation in Node.js\n\n### Installation\n\n```bash\n$ npm i homekit\n```\n\n#### Note:\n\nOn Linux and other systems using the avahi daemon the avahi dns_sd compat library and its header files are required. On debianesque systems the package name is libavahi-compat-libdnssd-dev. On other platforms Apple's mDNSResponder is recommended. Care should be taken not to install more than one mDNS stack on a system.\n\nOn Windows you are going to need Apples \"Bonjour SDK for Windows\". You can download it either from Apple (registration required) or various unofficial sources. Take your pick. After installing the SDK restart your shell or command prompt and make sure the BONJOUR_SDK_HOME environment variable is set. You'll also need a compiler. Microsoft Visual Studio Express will do. On Windows node \u003e=0.7.9 is required.\n\n```bash\nsudo apt-get install avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev\n```\n\n\n### Example\n\n```js\nconst HomeKit = require('homekit');\n\nconst uuid = HomeKit.UUID.generate(\"homekit:yeelight\");\nconst acce = new HomeKit.Accessory('Simple Light', uuid);\n\nacce.on('identify', function(paired, callback) {\n  console.log(\"Identify!\");\n  callback(); // success\n});\n\nacce\n.addService(HomeKit.Service.Lightbulb, 'Yeelight')\n.getCharacteristic(HomeKit.Characteristic.On)\n.on('set', function(value, callback) {\n  light.set_power(value, callback);\n})\n\n// Publish the Accessory on the local network.\nacce.publish({\n  port    : 51826,\n  username: \"CC:22:3D:E3:CE:F6\",\n  pincode : \"031-45-154\"\n});\n```\n\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\nCopyright (c) 2016 Lsong \u0026lt;song940@gmail.com\u0026gt;\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-homekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Fnode-homekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Fnode-homekit/lists"}