DashLyrics SDK
A lightweight, type-safe client for submitting structured data to your DashLyrics project
Installation
Install the SDK using npm
npm install dashlyrics
Quick Start
Initialize the SDK and start sending data
1. Initialize the client
import { DashLyrics } from "dashlyrics";
const dash = new DashLyrics({
apiKey: "your-api-key-here",
projectKey: "your-project-key-here",
});2. Submit data
const data = {
salesperson: "Mike",
region: "East",
sales: 7000,
month: "January",
};
dash.submit(data);API Reference
Complete reference for the DashLyrics SDK
Constructor
new DashLyrics(options: DashLyricsOptions)
apiKey(string) Your API key from the dashboardprojectKey(string) Your project identifierMethods
dash.submit(data: object): Promise<Response>
Submit structured data to your DashLyrics project. Returns a promise with the server response.