# plasticrake/tplink-smarthome-api

TP-Link Smarthome WiFi API

Repository: https://github.com/plasticrake/tplink-smarthome-api
Canonical: https://ross.abutalabs.com/products/tplink-smarthome-api
Language: TypeScript
License: MIT
License Family: permissive
Topics: tplink, smarthome, smartplug, smartbulb, kasa
Last push: 2023-11-15T17:17:52+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3704, "days_push": 1022, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1055, forks 142 (observed 2026-08-28T04:03:24.263624+00:00)

## What it is
A Node.js library and CLI for controlling TP-Link Kasa Smarthome devices (smart plugs, switches, and bulbs) over the local network. It supports device discovery, power control, and querying device info via TCP/UDP.

## Use cases
- control kasa smart plugs from node.js
- discover tplink smarthome devices on my network
- turn smart bulbs on and off programmatically
- automate kasa devices in home automation scripts
- get energy usage from hs110 smart plug
- cli to control tplink smart home devices

## When to choose
- you want to control TP-Link Kasa plugs, switches, or bulbs from JavaScript/TypeScript
- you need local-network device discovery and control without the cloud
- you're building a Homebridge plugin or similar integration

## When to avoid
- you own TP-Link Tapo devices, which are not supported
- you need cloud-based control or non-Node.js languages
- you need actively developed features - the project is in maintenance mode

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, http-client, developer-tools
- domain: iot, developer-tools
- platform: cli, cross-platform
- tags: tplink, kasa, smart-plug, smart-bulb, home-automation, device-discovery, typescript, automation, nodejs

## Member repositories
- plasticrake/tplink-smarthome-api (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.263624+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:58:40.246287+00:00, confidence not recorded.
  - readme: https://github.com/plasticrake/tplink-smarthome-api (fetched 2026-08-28T04:03:24.263624+00:00, sha 66ac703c405a)
  - registry_npm: https://registry.npmjs.org/tplink-smarthome-api (fetched 2026-08-29T13:00:19.537547+00:00, sha e5744cb7a284)
- Data as of 2026-08-30T08:39:29.467469+00:00.
