A modular toolkit for Philips Hue. The same bridge calls and the same light state run in a browser, in Node.js, and in Bun.
@huxel/client and @huxel/app are published. @huxel/mcp is a package in this repo and is not on npm yet. The apps are private products built on the libraries.
npm · 0.2.0
One typed client for the Hue CLIP API v2.
- Send the HTTP calls and own the types, so the next app does not start from scratch.
- Mirror the official API. 10 of 46 resource types are supported, plus bridge discovery, link-button registration, and the event stream.
- Store nothing. The bridge address and the application key are passed in on each call.
npm · 0.1.0
Headless state for the lights, rooms, and zones in one home.
- Load them, then change power, brightness, color, and color temperature.
- Follow changes made somewhere else, such as the Hue app, a switch, or an automation.
- Hand the same state to Svelte 5 and React. Those adapters are optional.
The application key stays in memory for the life of the app. Saving it between launches belongs to the product that calls this package. @huxel/client does the HTTP.
Local MCP server for an agent on the same network. It speaks stdio and can report status, link a bridge, read the home, and set a light, a room, a zone, or a scene. The application key stays in a config file and is never returned by a tool.
Private design system. Tokens are the only source of color, type, spacing, and motion. Icons are one generated sprite. @huxel/ui is React components. The Storybook catalog runs with bun run storybook inside packages/ui. The Svelte screens and the terminal app read the same tokens.
Private. Svelte 5 product components shared by the web dashboard and the browser extension. It renders @huxel/app state and ships no UI of its own to npm.
Each app links to a bridge, keeps the application key, and talks to the lights through @huxel/app.
Web dashboard. List lights, rooms, and zones, then toggle, dim, and set color with live updates. Run it locally, or deploy it to a server.
Chromium toolbar popup for Arc and Chrome. Control the lights on the local network from the browser. Load a local build unpacked, or pack a Chrome Web Store zip with bun run pack in this app.
Terminal remote. Link a bridge, then toggle and dim lights, rooms, and zones, including the same presets as the web dashboard.
Requires Bun and Node.js ^22.18, ^24.11 or >=26 (CI uses .node-version). Tooling comes from Vite+: vp pack builds the libraries, vp test runs Vitest, and vp fmt formats the code.
bun install
bun run build
bun run check
bun run lint
bun run testRoot scripts run in every workspace in dependency order, so @huxel/client builds before @huxel/app, @huxel/app before @huxel/design-system, and all of them before the apps. Apps consume the libraries' dist/ builds. bun run dev in svelte-app and extension builds those libraries first. Build @huxel/client and @huxel/app before starting tui-app. Run a script in a single workspace with bunx vp run --filter <name> <script>.
Formatting settings are shared across the repository in the root vite.config.ts: bun run format.