govee-toolkit 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -0
- package/package.json +15 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# govee-toolkit (Node.js)
|
|
2
|
+
|
|
3
|
+
Node.js / TypeScript SDK. `lan` mode by default; `ble` and `cloud` modes are
|
|
4
|
+
opt-in, enabled per device by the user — see
|
|
5
|
+
[`../../docs/modes.md`](../../docs/modes.md). Also used by
|
|
6
|
+
`apps/playground`, `apps/desktop`, `packages/artnet-dmx-bridge` and
|
|
7
|
+
`integrations/homebridge`.
|
|
8
|
+
|
|
9
|
+
Reads the shared device database in [`../../devices/`](../../devices/).
|
|
10
|
+
|
|
11
|
+
<!-- TODO: install + usage once implemented -->
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// govee-toolkit — Node SDK entry point.
|
|
2
|
+
//
|
|
3
|
+
// TODO: public API. Planned modules:
|
|
4
|
+
// discovery.ts — multicast scan + persistent cache
|
|
5
|
+
// modes/lan.ts — reused UDP socket, fire-and-verify
|
|
6
|
+
// modes/ble.ts — BLE mode (opt-in)
|
|
7
|
+
// modes/cloud.ts — Cloud mode (opt-in, throttled)
|
|
8
|
+
// selector.ts — per-device enabled modes + preference order
|
|
9
|
+
// breaker.ts — per-device, per-mode circuit breaker
|
|
10
|
+
// registry.ts — loads devices/*.yaml
|
|
11
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comment": "TODO: fill in once the napi-rs binding is written.",
|
|
3
|
+
"name": "govee-toolkit",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Control Govee devices from your own network: undocumented LAN features, with BLE and Cloud modes when you need them.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": ["dist"],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc -p tsconfig.json",
|
|
13
|
+
"test": "node --test test/"
|
|
14
|
+
}
|
|
15
|
+
}
|