The interface registry, generated and checked discovery, typed dispatch with automatic error answers, message builders, proactive events and typed helpers for every error type; the 1.x API is kept and the examples of 1.5.2 run unchanged. docs/wire-changes.md lists what a 1.x caller can observe. On 2026-09-28 a real Alexa account drove 33 test devices on this API through the public Alex2MQTT service: Alexa accepted the discovery of all of them, 50 of 58 cases passed, 4 had no action in the control call and 4 failed on what the check could see, none on an answer of the library. The readme table names the interfaces that run covered. Voice commands were not tested yet. 307 tests. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
67 lines
1.6 KiB
JSON
67 lines
1.6 KiB
JSON
{
|
|
"name": "alex2node",
|
|
"version": "2.0.0",
|
|
"description": "Alexa smart home devices in Node.js over MQTT, through the Alex2MQTT service: declare a device, answer its directives, report its state.",
|
|
"type": "commonjs",
|
|
"main": "./dist/cjs/index.js",
|
|
"module": "./dist/esm/index.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"default": "./dist/cjs/index.js"
|
|
}
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/build.mjs",
|
|
"check": "tsc --noEmit && tsc -p test/fixtures/tsconfig.json",
|
|
"docs": "node scripts/capability-table.js",
|
|
"prepare": "npm run build",
|
|
"test": "node --test test/*.test.js test/*.test.mjs test/*/*.test.js"
|
|
},
|
|
"keywords": [
|
|
"alexa",
|
|
"mqtt",
|
|
"smart-home",
|
|
"iot",
|
|
"home-automation",
|
|
"amazon-alexa",
|
|
"alexa-smart-home",
|
|
"alex2mqtt"
|
|
],
|
|
"author": "user511",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.stormysdream.club/apps/Alex2Node.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.stormysdream.club/apps/Alex2Node/issues"
|
|
},
|
|
"homepage": "https://git.stormysdream.club/apps/Alex2Node#readme",
|
|
"devDependencies": {
|
|
"@types/node": "^18.19.130",
|
|
"aedes": "^0.51.3",
|
|
"dotenv": "^16.5.0",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"dependencies": {
|
|
"mqtt": "^5.10.3"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"readme.md",
|
|
"CHANGELOG.md"
|
|
]
|
|
}
|