{"id":16993770,"url":"https://github.com/rwv/tplink-ac-clients","last_synced_at":"2025-03-22T05:23:57.001Z","repository":{"id":217270076,"uuid":"742220014","full_name":"rwv/tplink-ac-clients","owner":"rwv","description":"🛜 对 TP-Link AC 无线控制器的客户端列表的再包装，变得更加好看。同时识别出设备 Mac 对应的厂商。","archived":false,"fork":false,"pushed_at":"2025-03-17T09:50:48.000Z","size":707,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T10:43:33.438Z","etag":null,"topics":["tplink","wifi"],"latest_commit_sha":null,"homepage":"https://tplink-ac-clients.rwv.dev","language":"TypeScript","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/rwv.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T02:01:50.000Z","updated_at":"2025-03-17T09:50:46.000Z","dependencies_parsed_at":"2024-05-13T10:53:16.127Z","dependency_job_id":"159ec186-1c2b-4e15-a04d-5b35f3a2a116","html_url":"https://github.com/rwv/tplink-ac-clients","commit_stats":null,"previous_names":["rwv/tplink-ac-clients"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwv%2Ftplink-ac-clients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwv%2Ftplink-ac-clients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwv%2Ftplink-ac-clients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwv%2Ftplink-ac-clients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwv","download_url":"https://codeload.github.com/rwv/tplink-ac-clients/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244910012,"owners_count":20530309,"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":["tplink","wifi"],"created_at":"2024-10-14T03:43:59.950Z","updated_at":"2025-03-22T05:23:56.978Z","avatar_url":"https://github.com/rwv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TP-Link AC 客户端列表\n\n对 TP-Link AC 无线控制器的客户端列表的再包装，变得更加好看。同时识别出设备 Mac 对应的厂商。在 TL-AC100 上测试成功。\n\n[tplink-ac-clients.rwv.dev](https://tplink-ac-clients.rwv.dev)\n\n## 截图\n\n![截图](https://raw.githubusercontent.com/rwv/tplink-ac-clients/main/screenshot.png)\n\n## 使用方法\n\n需要有后台服务器反代 TP-Link AC 无线控制器的管理页面并正确设置 CORS，以 Caddy 为例：\n\n```\nac.example.com {\n    encode zstd gzip\n\n    @options method OPTIONS\n    handle @options {\n        header Access-Control-Allow-Origin *\n        header Access-Control-Allow-Methods *\n        header Access-Control-Allow-Headers *\n        header Access-Control-Allow-Credentials true\n        respond \"\" 204\n    }\n\n    reverse_proxy * {\n        to http://192.168.1.100\n        header_down Access-Control-Allow-Origin *\n        header_down Access-Control-Allow-Methods *\n        header_down Access-Control-Allow-Headers *\n        header_down Access-Control-Allow-Credentials true\n    }\n\n    tls {\n        dns cloudflare {env.CLOUDFLARE_API_TOKEN}\n    }\n}\n```\n\n然后在设置界面填入对应的地址、账号、密码即可。全前端所以无需担心账号密码泄露。\n\n不过用 Caddy 的话就涉及到 HTTPS 证书和域名的问题，目前我是使用 dns 的方式给内网 Caddy 服务器颁发证书。当然也可以使用全 HTTP 的方式，但我懒得写了。\n\n还有一个办法是反代 https://tplink-ac-clients.rwv.dev 并将 AC 控制器反代到 `/api` 下，也可以规避掉 CORS 的问题。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwv%2Ftplink-ac-clients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwv%2Ftplink-ac-clients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwv%2Ftplink-ac-clients/lists"}