This library is not, in any way, affiliated or related to Lifi Labs, Inc.. Use at your own risk.
Thin wrapper of the Lifx HTTP protocol.
Makes use of native Fetch API's and pure Typescript ES Modules so it's perfect for a server side framework like Deno or for a client side application (like this one that I've built using Svelte).
import { lifxClient } from "https://deno.land/x/lifxhttp/mod.ts";
const client = new lifxClient({
token: "<Your LIFX API Token>",
});
console.log(await client.getLights("all"));