Dashboard →

SDKs

Official libraries and tools for integrating with Luxkern.

@luxkern/flags

TypeScript SDK for evaluating feature flags on the server or edge. Supports caching, streaming updates, and React Server Components.

bash
npm install @luxkern/flags
js
"text-[var(--color-info)] font-medium">import { LuxkernFlags } "text-[var(--color-info)] font-medium">from "@luxkern/flags";
 
"text-[var(--color-info)] font-medium">const flags = "text-[var(--color-info)] font-medium">new LuxkernFlags({
apiKey: process.env.LUXKERN_API_KEY,
});
 
"text-[var(--color-info)] font-medium">const enabled = "text-[var(--color-info)] font-medium">await flags.isEnabled("dark-mode", {
userId: "usr_123",
});

FeatureFlags tool reference

@luxkern/cli

Command-line interface for managing Luxkern resources. Create monitors, push logs, toggle flags, and more from your terminal or CI/CD pipeline.

bash
npm install -g @luxkern/cli
bash
# Authenticate
luxkern auth login
 
# Create a CronSafe monitor
luxkern cronsafe create --name "nightly-backup" --schedule "0 2 * * *"
 
# Push a log entry
luxkern logdrain push --drain production-api --level info --message "Deploy complete"
 
# Toggle a feature flag
luxkern flags toggle dark-mode --env production

MCP Server

The Luxkern MCP (Model Context Protocol) server allows AI assistants and code editors to interact with your Luxkern account. Query monitors, search logs, and evaluate flags from your AI workflow.

bash
npx @luxkern/mcp-server --api-key lxk_live_xxx

All SDKs are open source and published on npm. API Reference for the underlying REST endpoints.