PRISM Node K1 Light Lab API

Community

Master K1 Light Lab's LED animation API.

Authorsynqing
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive, authoritative reference for interacting with the PRISM.node K1 Light Lab editor. It eliminates guesswork and ensures developers can correctly integrate with the node system, color transforms, and WebSocket protocol for 320-LED patterns, saving significant development time and reducing integration errors.

Core Features & Use Cases

  • Node System Architecture: Understand how graph-based animation nodes (generators, spatial, color, etc.) transform inputs to outputs.
  • Real-time LED Pattern Export: Learn the WebSocket TLV protocol to send 320-LED patterns to the K1 device.
  • Color Space Transforms: Implement accurate color manipulation using sRGB, Linear, OKLab, and OKLCH conversions.
  • Use Case: A developer building a custom control interface for the PRISM.node K1 Light Lab can use this API to programmatically generate and upload complex LED animation patterns, ensuring compatibility and correct behavior with the K1 hardware.

Quick Start

Example: Sending a simple pattern to the device

import { makePutPlan, sendPlanOverWs } from './transport/wsTlv';

const patternBytes = new Uint8Array(960); // 320 pixels * 3 bytes RGB8 // ... populate patternBytes with your desired RGB data ...

const plan = makePutPlan(patternBytes); console.log(dryRunReport(plan)); await sendPlanOverWs('ws://192.168.1.100:8080', plan);

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: PRISM Node K1 Light Lab API
Download link: https://github.com/synqing/PRISM.unified/archive/main.zip#prism-node-k1-light-lab-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository