lifx-http

Lifx Http

A thin wrapper around the Lifx HTTP protocol. Built in Deno.

lifx-http

This library is not, in any way, affiliated or related to Lifi Labs, Inc.. Use at your own risk.

✨ Features

  • 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).

📦 Importing

import { lifxClient } from "https://deno.land/x/lifxhttp/mod.ts";

📖 Example Usage

const client = new lifxClient({
  token: "<Your LIFX API Token>",
});

console.log(await client.getLights("all"));

Top categories

Loading Svelte Themes