{"id":21927763,"url":"https://github.com/tuyaapi/link","last_synced_at":"2025-06-19T19:36:02.424Z","repository":{"id":45195883,"uuid":"134466502","full_name":"TuyaAPI/link","owner":"TuyaAPI","description":"📡 Effortlessly connect devices to WiFi and the cloud. Documentation: https://tuyaapi.github.io/link.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:13:08.000Z","size":1375,"stargazers_count":17,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-21T01:51:29.740Z","etag":null,"topics":["iot","nodejs","udp"],"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/TuyaAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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":["codetheweb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-05-22T19:35:22.000Z","updated_at":"2024-11-20T00:48:42.000Z","dependencies_parsed_at":"2024-06-18T22:53:21.770Z","dependency_job_id":"cd7fba78-0950-4dc1-b6c9-d23d9fd158af","html_url":"https://github.com/TuyaAPI/link","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/TuyaAPI/link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuyaAPI%2Flink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuyaAPI%2Flink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuyaAPI%2Flink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuyaAPI%2Flink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TuyaAPI","download_url":"https://codeload.github.com/TuyaAPI/link/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuyaAPI%2Flink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260816708,"owners_count":23067357,"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":["iot","nodejs","udp"],"created_at":"2024-11-28T22:17:31.487Z","updated_at":"2025-06-19T19:35:57.408Z","avatar_url":"https://github.com/TuyaAPI.png","language":"JavaScript","funding_links":["https://github.com/sponsors/codetheweb"],"categories":[],"sub_categories":[],"readme":"tuyapi/link [![Build Status](https://travis-ci.org/TuyaAPI/link.svg?branch=master)](https://travis-ci.org/TuyaAPI/link) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n==============\n\nA package for connecting a Tuya device to WiFi and the cloud. This package is split up into two sub-modules:\n- **`(@tuyapi/link).manual`**: a low-level interface for linking devices.\n- **`(@tuyapi/link).wizard`**: a wrapper that combines `(@tuyapi/link).manual` and `@tuya/tuya-connector-nodejs`, making it super easy to link devices. It Just Works™️.\n\n## Installation\n`npm i @tuyapi/link`\n\n## Usage\n```javascript\nconst TuyaLink = require('@tuyapi/link');\n\nconst register = new TuyaLink.wizard({apiKey: '01010101010101010101',\n                                      apiSecret: '01010101010101010101010101010101',\n                                      email: 'example@example.com', password: 'example-password'});\n\nregister.init().then(async () =\u003e {\n  let devices = await register.linkDevice({ssid: 'Example-SSID', wifiPassword: 'examplepassword'});\n  console.log(devices);\n});\n```\n\n[Documentation](https://tuyaapi.github.io/link/)\n\n## Development\n1. After cloning, run `npm i`.\n2. Create a file called `dev.js` as a playground. Since `dev.js` is in `.gitignore`, it won't be committed.\n3. To run tests, run `npm test`.\n4. To build documentation, run `npm run document`.\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)](https://forthebadge.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuyaapi%2Flink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuyaapi%2Flink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuyaapi%2Flink/lists"}