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/flagsjs
"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",});@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/clibash
# Authenticateluxkern auth login # Create a CronSafe monitorluxkern cronsafe create --name "nightly-backup" --schedule "0 2 * * *" # Push a log entryluxkern logdrain push --drain production-api --level info --message "Deploy complete" # Toggle a feature flagluxkern flags toggle dark-mode --env productionMCP 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_xxxAll SDKs are open source and published on npm. API Reference for the underlying REST endpoints.