{"_id":"@altara/mqtt","_rev":"4-675d31ddec65a8f9434547ad0b821b69","name":"@altara/mqtt","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@altara/mqtt","version":"0.1.0","keywords":["react","mqtt","iot","telemetry","real-time","websocket","broker","altara"],"author":{"name":"Jaya Sai Kishan Chapparam"},"license":"MIT","_id":"@altara/mqtt@0.1.0","maintainers":[{"name":"jayachapparam","email":"cjskishan@gmail.com"}],"homepage":"https://github.com/JayaSaiKishanChapparam/altara/tree/main/packages/mqtt#readme","bugs":{"url":"https://github.com/JayaSaiKishanChapparam/altara/issues"},"dist":{"shasum":"5effe8dc307faa79d7fd8b45bdcf0a88a9b3c6da","tarball":"https://registry.npmjs.org/@altara/mqtt/-/mqtt-0.1.0.tgz","fileCount":9,"integrity":"sha512-XSYW5LdKJD/kkM3YZd/7+BeJZugvy6jyRNthTY5J/sNK7O2rnERc/iWkVZ91SCIz2QhFC/OuLR1dmzHYL5MKsg==","signatures":[{"sig":"MEUCIQDkHhu/9dr/3Hm0u0z7NhfXQjyVo8eJ4AfyltkHDdU6DwIgSV3T+m6lJcNpA/jVgffiAFp2sJskLH6sVMut8sgVGtY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5114},"main":"./dist/index.js","_from":"file:altara-mqtt-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"jayachapparam","email":"cjskishan@gmail.com"},"_resolved":"/tmp/654072c2510ba73b1cb980818cc9cbed/altara-mqtt-0.1.0.tgz","_integrity":"sha512-XSYW5LdKJD/kkM3YZd/7+BeJZugvy6jyRNthTY5J/sNK7O2rnERc/iWkVZ91SCIz2QhFC/OuLR1dmzHYL5MKsg==","repository":{"url":"git+https://github.com/JayaSaiKishanChapparam/altara.git","type":"git","directory":"packages/mqtt"},"_npmVersion":"10.8.2","description":"MQTT-over-WebSocket adapter for Altara — typed factory for piping MQTT broker topics into Altara components.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","react":"^18.3.0","vitest":"^1.5.0","typescript":"^5.4.0","@altara/core":"0.0.2","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18.0.0","@altara/core":"0.0.2"},"peerDependenciesMeta":{"mqtt":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mqtt_0.1.0_1778171075427_0.9745848189792998","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@altara/mqtt","version":"0.1.1","keywords":["react","mqtt","mqtt-react","mqtt-dashboard","iot","iiot","industrial-iot","smart-home","home-automation","scada","hmi","telemetry","real-time","websocket","pub-sub","broker","paho-mqtt","dashboard","monitoring","altara"],"author":{"name":"Jaya Sai Kishan Chapparam"},"license":"MIT","_id":"@altara/mqtt@0.1.1","maintainers":[{"name":"jayachapparam","email":"cjskishan@gmail.com"}],"homepage":"https://github.com/JayaSaiKishanChapparam/altara/tree/main/packages/mqtt#readme","bugs":{"url":"https://github.com/JayaSaiKishanChapparam/altara/issues"},"dist":{"shasum":"db87f99fe435227b99f0536fc30911e4592f6a30","tarball":"https://registry.npmjs.org/@altara/mqtt/-/mqtt-0.1.1.tgz","fileCount":9,"integrity":"sha512-zUZj0GNnZ6toAfBfMZy0l1O+VLhK92d/4KWOKQveTxs9FxFw/YR40kc9r3uGSvK0VjuxpZ5Gk94z9U3phk5iJA==","signatures":[{"sig":"MEUCIQDhjn7Z4ziO7PuIgZ8MncOQLTXPRpr1DB0ikYioxL8fVAIgP6r+yxJL0LNPfjJUfIXBvXmyYYphuz0AtqPxHvfxsvA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7873},"main":"./dist/index.js","_from":"file:altara-mqtt-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"jayachapparam","email":"cjskishan@gmail.com"},"_resolved":"/tmp/fa0ed5204f21fd7c95e33272c4c8e1d6/altara-mqtt-0.1.1.tgz","_integrity":"sha512-zUZj0GNnZ6toAfBfMZy0l1O+VLhK92d/4KWOKQveTxs9FxFw/YR40kc9r3uGSvK0VjuxpZ5Gk94z9U3phk5iJA==","repository":{"url":"git+https://github.com/JayaSaiKishanChapparam/altara.git","type":"git","directory":"packages/mqtt"},"_npmVersion":"10.8.2","description":"MQTT-over-WebSocket adapter for React — subscribe to MQTT broker topics (sensors, IoT state, telemetry) and pipe live samples into real-time Altara dashboards. JSON / string / binary payloads, topic wildcards, auto-decode.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","react":"^18.3.0","vitest":"^1.5.0","typescript":"^5.4.0","@altara/core":"0.1.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18.0.0","@altara/core":"^0.1.0"},"peerDependenciesMeta":{"mqtt":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mqtt_0.1.1_1781725216476_0.8164886673631142","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@altara/mqtt","version":"0.1.2","keywords":["react","mqtt","mqtt-react","mqtt-dashboard","iot","iiot","industrial-iot","smart-home","home-automation","scada","hmi","telemetry","real-time","websocket","pub-sub","broker","paho-mqtt","dashboard","monitoring","altara"],"author":{"name":"Jaya Sai Kishan Chapparam"},"license":"MIT","_id":"@altara/mqtt@0.1.2","maintainers":[{"name":"jayachapparam","email":"cjskishan@gmail.com"}],"homepage":"https://github.com/JayaSaiKishanChapparam/altara/tree/main/packages/mqtt#readme","bugs":{"url":"https://github.com/JayaSaiKishanChapparam/altara/issues"},"dist":{"shasum":"567582181d1949d35c92cba2e338939d7e9e43c3","tarball":"https://registry.npmjs.org/@altara/mqtt/-/mqtt-0.1.2.tgz","fileCount":9,"integrity":"sha512-/HJs2+RWoJIuyUxzTFKAQ+eQmUSLUvJOYy0sGLn7/jokigUVhwKT3ZCvYrbDz5asDkE/9acK3ayfxCU6xTF9DQ==","signatures":[{"sig":"MEUCIA4fbIvMIe7aWoAbBfTdY5zQFVAR+GgrtD2rWQk+t2rqAiEAjfDwbbwI9EDO9oi9+683HRgt+yqxPiS4EvAc6cBkLLk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7873},"main":"./dist/index.js","_from":"file:altara-mqtt-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint src --ext .ts,.tsx","test":"vitest run --passWithNoTests","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"jayachapparam","email":"cjskishan@gmail.com"},"_resolved":"/tmp/37ceb21d2e2dc4415e4284cde0434cc9/altara-mqtt-0.1.2.tgz","_integrity":"sha512-/HJs2+RWoJIuyUxzTFKAQ+eQmUSLUvJOYy0sGLn7/jokigUVhwKT3ZCvYrbDz5asDkE/9acK3ayfxCU6xTF9DQ==","repository":{"url":"git+https://github.com/JayaSaiKishanChapparam/altara.git","type":"git","directory":"packages/mqtt"},"_npmVersion":"10.8.2","description":"MQTT-over-WebSocket adapter for React — subscribe to MQTT broker topics (sensors, IoT state, telemetry) and pipe live samples into real-time Altara dashboards. JSON / string / binary payloads, topic wildcards, auto-decode.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","react":"^18.3.0","vitest":"^1.5.0","typescript":"^5.4.0","@altara/core":"0.2.0","@types/react":"^18.3.0"},"peerDependencies":{"react":">=18.0.0","@altara/core":"^0.2.0"},"peerDependenciesMeta":{"mqtt":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/mqtt_0.1.2_1781816833222_0.06485924187860403","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@altara/mqtt","version":"0.1.3","description":"MQTT-over-WebSocket adapter for React — subscribe to MQTT broker topics (sensors, IoT state, telemetry) and pipe live samples into real-time Altara dashboards. JSON / string / binary payloads, topic wildcards, auto-decode.","license":"MIT","type":"commonjs","author":{"name":"Jaya Sai Kishan Chapparam"},"homepage":"https://github.com/JayaSaiKishanChapparam/altara/tree/main/packages/mqtt#readme","repository":{"type":"git","url":"git+https://github.com/JayaSaiKishanChapparam/altara.git","directory":"packages/mqtt"},"bugs":{"url":"https://github.com/JayaSaiKishanChapparam/altara/issues"},"keywords":["react","mqtt","mqtt-react","mqtt-dashboard","iot","iiot","industrial-iot","smart-home","home-automation","scada","hmi","telemetry","real-time","websocket","pub-sub","broker","paho-mqtt","dashboard","monitoring","altara"],"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"sideEffects":false,"peerDependencies":{"@altara/core":"^0.2.0","react":">=18.0.0"},"peerDependenciesMeta":{"mqtt":{"optional":true}},"devDependencies":{"@types/react":"^18.3.0","react":"^18.3.0","tsup":"^8.0.0","typescript":"^5.4.0","vitest":"^1.5.0","@altara/core":"0.2.2"},"engines":{"node":">=20"},"scripts":{"build":"tsup && node ../../scripts/add-use-client.mjs","test":"vitest run --passWithNoTests","lint":"eslint src --ext .ts,.tsx","typecheck":"tsc --noEmit"},"_id":"@altara/mqtt@0.1.3","_integrity":"sha512-OjGNOGWeq3IagUD4pDK2lL6jqOImdOt9VA8n2mWOak56iIYBnNuhm/DvWl/lJlTGHVqlaMbPV+JkVhRIJiHNbQ==","_resolved":"/tmp/a3f075b4ccee1450e34b8c67dfa22bfc/altara-mqtt-0.1.3.tgz","_from":"file:altara-mqtt-0.1.3.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OjGNOGWeq3IagUD4pDK2lL6jqOImdOt9VA8n2mWOak56iIYBnNuhm/DvWl/lJlTGHVqlaMbPV+JkVhRIJiHNbQ==","shasum":"44931d8c050dfc19148ca3cd7fa693a21c6e4469","tarball":"https://registry.npmjs.org/@altara/mqtt/-/mqtt-0.1.3.tgz","fileCount":10,"unpackedSize":15170,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDm3nNjCHE1fhg22AI2zUpiO4klEoDnAdDN2iBXtHUTOwIhAP7xyZwKDRDU7lLbDLqO/sX7s2U9ns/19XEjbd/FXc5R"}]},"_npmUser":{"name":"jayachapparam","email":"cjskishan@gmail.com"},"directories":{},"maintainers":[{"name":"jayachapparam","email":"cjskishan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mqtt_0.1.3_1787090496759_0.020774509778933137"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T16:24:35.316Z","modified":"2026-08-18T22:01:37.064Z","0.1.0":"2026-05-07T16:24:35.573Z","0.1.1":"2026-06-17T19:40:16.627Z","0.1.2":"2026-06-18T21:07:13.354Z","0.1.3":"2026-08-18T22:01:36.914Z"},"bugs":{"url":"https://github.com/JayaSaiKishanChapparam/altara/issues"},"author":{"name":"Jaya Sai Kishan Chapparam"},"license":"MIT","homepage":"https://github.com/JayaSaiKishanChapparam/altara/tree/main/packages/mqtt#readme","keywords":["react","mqtt","mqtt-react","mqtt-dashboard","iot","iiot","industrial-iot","smart-home","home-automation","scada","hmi","telemetry","real-time","websocket","pub-sub","broker","paho-mqtt","dashboard","monitoring","altara"],"repository":{"type":"git","url":"git+https://github.com/JayaSaiKishanChapparam/altara.git","directory":"packages/mqtt"},"description":"MQTT-over-WebSocket adapter for React — subscribe to MQTT broker topics (sensors, IoT state, telemetry) and pipe live samples into real-time Altara dashboards. JSON / string / binary payloads, topic wildcards, auto-decode.","maintainers":[{"name":"jayachapparam","email":"cjskishan@gmail.com"}],"readme":"# @altara/mqtt\n\n**MQTT-over-WebSocket adapter for Altara.** Subscribe to an MQTT broker topic from React in one line and pipe live samples (sensor values, IoT state, telemetry) into any [`@altara/core`](https://www.npmjs.com/package/@altara/core) component. Built for industrial-IoT dashboards, smart-building monitors, and home-automation HMIs.\n\n[![npm version](https://img.shields.io/npm/v/@altara/mqtt?color=A06CD5&label=npm)](https://www.npmjs.com/package/@altara/mqtt)\n[![bundle size](https://img.shields.io/bundlephobia/minzip/@altara/mqtt?color=378ADD&label=gzip)](https://bundlephobia.com/package/@altara/mqtt)\n[![types included](https://img.shields.io/badge/types-included-1D9E75)](https://www.npmjs.com/package/@altara/mqtt)\n[![license](https://img.shields.io/npm/l/@altara/mqtt?color=888780)](https://github.com/JayaSaiKishanChapparam/altara/blob/main/LICENSE)\n\n## Install\n\n```bash\nnpm install @altara/core @altara/mqtt mqtt\n```\n\n`mqtt` is an optional peer dependency — install it only if you actually use MQTT. The browser build connects via `ws://` or `wss://`.\n\n## Quick start\n\n```tsx\nimport { AltaraProvider, TimeSeries } from '@altara/core';\nimport { createMqttAdapter } from '@altara/mqtt';\n\nconst source = createMqttAdapter({\n  url: 'ws://broker.local:8083/mqtt',\n  topic: 'sensors/temp/room1',\n  // Pull a number out of each decoded message.\n  valueExtractor: (payload) => (payload as { celsius: number }).celsius,\n});\n\nexport function App() {\n  return (\n    <AltaraProvider theme=\"dark\">\n      <TimeSeries dataSource={source} height={240} />\n    </AltaraProvider>\n  );\n}\n```\n\n**See it live:** [Website](https://www.usealtara.dev/) · [Live demo](https://jayasaikishanchapparam.github.io/altara/demo/) · [Storybook](https://jayasaikishanchapparam.github.io/altara/storybook/)\n\n## What you get\n\n- **`createMqttAdapter`** — typed factory that returns an `AltaraDataSource`. Auto-decodes JSON / string / binary payloads; supports MQTT topic wildcards (`+`, `#`).\n- **`MqttAdapterOptions` / `MqttClientLike`** — the option bag and the minimal client interface, exported for advanced custom-transport scenarios.\n\n## Relationship to `@altara/core`\n\nThe implementation lives in `@altara/core` and is also exported from there. `@altara/mqtt` is a thin specialised re-export that mirrors `@altara/ros` — pulling it into a project is a clear signal that the app talks to an MQTT broker, and keeps the installation surface symmetrical across telemetry transports.\n\nIf you already depend on `@altara/core`, you can `import { createMqttAdapter } from '@altara/core'` directly with no behavioral difference.\n\n## Documentation\n\n- **[📚 Connecting MQTT guide (live Storybook)](https://jayasaikishanchapparam.github.io/altara/storybook/?path=/docs/guides-connecting-mqtt--api-reference)** — broker setup, topic-wildcard routing, JSON vs binary payload handling, throttling, reconnection.\n- **[🛰️ Live demo dashboard](https://jayasaikishanchapparam.github.io/altara/demo/)** — IoT-style components an MQTT feed would drive.\n\nOr run Storybook locally:\n\n```bash\ngit clone https://github.com/JayaSaiKishanChapparam/altara.git\ncd altara\npnpm install\npnpm --filter @altara/storybook storybook\n```\n\nThen open **Guides → Connecting MQTT**.\n\n## Sibling packages\n\n| Package | What it does |\n| --- | --- |\n| [`@altara/core`](https://www.npmjs.com/package/@altara/core) | Components, hooks, MQTT/mock adapters, design tokens. The starting point. |\n| [`@altara/aerospace`](https://www.npmjs.com/package/@altara/aerospace) | Flight instruments — PFD, HSI, altimeter, airspeed, VSI, engine cluster, TCAS, TAWS, FMA, fuel gauge, radio altimeter. |\n| [`@altara/ros`](https://www.npmjs.com/package/@altara/ros) | ROS2 / rosbridge adapter + typed factories for common `sensor_msgs/*` message types. |\n\n## Links\n\n- [Storybook (live)](https://jayasaikishanchapparam.github.io/altara/storybook/) · [Demo dashboard (live)](https://jayasaikishanchapparam.github.io/altara/demo/)\n- [GitHub repository](https://github.com/JayaSaiKishanChapparam/altara)\n- [Issue tracker](https://github.com/JayaSaiKishanChapparam/altara/issues)\n- [Discussions](https://github.com/JayaSaiKishanChapparam/altara/discussions)\n- [`mqtt` package](https://www.npmjs.com/package/mqtt) — the browser/Node MQTT client used under the hood\n\n## Stability\n\n**Pre-1.0.** Every package is below `1.0.0`, and until one reaches it the public\nAPI is not considered stable:\n\n- **Patch** (`0.2.1` -> `0.2.2`) — bug fixes, docs, packaging. Safe.\n- **Minor** (`0.2.x` -> `0.3.0`) — new features, and **may include breaking\n  changes**. This is the pre-1.0 semver allowance, not an accident. Pin the\n  minor (`~0.2.0`) if you need that not to happen.\n- Breaking changes are always described in the package's\n  [CHANGELOG](CHANGELOG.md); anything spanning packages also lands in\n  [MIGRATION.md](https://github.com/JayaSaiKishanChapparam/altara/blob/main/MIGRATION.md).\n\nIn practice the component APIs have been stable since `0.1.0` and every break so\nfar has been in the adapter layer. That is a track record, not a guarantee.\n\n## License\n\nMIT — see [LICENSE](https://github.com/JayaSaiKishanChapparam/altara/blob/main/LICENSE).\n","readmeFilename":"README.md"}