Skip to content

Lumen YAML Specifications

Build powerful data dashboards using YAML configuration filesβ€”no Python coding required.

About Lumen specs and Lumen AI

Lumen AI runs on Lumen specs under the hood. When you use Lumen AI to create dashboards, it generates these YAML specifications automatically. Reports created with Lumen AI are fully reproducible using the generated specs.

Historically, users wrote these specs manually before LLMs became capable. Now, Lumen AI can generate them for you through natural language conversation. However, understanding specs is still valuable for:

  • Customizing AI-generated dashboards beyond what the AI created
  • Building dashboards programmatically without the AI interface
  • Version control and reproducibility of your dashboard configurations
  • Advanced features not yet supported by the AI

Choose your approach:

  • Want AI to build it for you? β†’ Use Lumen AI
  • Want to learn the underlying system? β†’ Continue reading this guide
  • Want to customize an AI-generated dashboard? β†’ Learn specs, then edit the YAML

What are Lumen specs?

Lumen specifications let you build interactive data dashboards by writing YAML configuration instead of code. Define your data sources, transformations, and visualizations declaratively, then deploy with a single command.

Why use specs?

Benefit Description
No coding required Build dashboards using simple YAML syntax
Fast iteration Edit YAML, refresh browserβ€”see changes instantly
Version control friendly Track dashboard changes like any text file
Reproducible Share exact dashboard configuration with others
Extensible Add Python when you need custom behavior
AI-transparent Understand and modify what Lumen AI generates

Quick navigation

Choose your path based on experience level:

🎯 New to Lumen specs?

Start with the tutorial to build your first dashboard in 15 minutes:

Build Dashboard with Spec - Complete hands-on tutorial

Then understand the concepts:

  1. Core Concepts - Understand how Lumen specs work
  2. Loading Data - Connect to your data sources

πŸ’ͺ Building dashboards?

Guides for common dashboard tasks:

Task Guide
Load data from files Loading Data
Filter and transform data Transforming Data
Create plots and tables Visualizing Data
Use variables and references Variables & References
Enable data downloads Data Downloads

πŸš€ Advanced features?

Extend Lumen with custom functionality:

πŸ› οΈ Ready to deploy?

Launch your dashboard:

  • Deployment - Serve dashboards and validate configurations

How Lumen works

Lumen follows a simple three-stage workflow:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Sources  β”‚ ──> β”‚ Pipelines β”‚ ──> β”‚ Views  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜
    β”‚                 β”‚                  β”‚
    β”‚                 β”‚                  β”‚
Load data      Filter/transform     Visualize
  1. Sources load data from files, databases, or APIs
  2. Pipelines filter and transform the data
  3. Views display the results as plots, tables, or other visualizations

Example dashboard

Here's a complete dashboard specification:

config:
  title: Sales Dashboard
  theme: dark

sources:
  sales_data:
    type: file
    tables:
      sales: data/sales.csv

pipelines:
  filtered_sales:
    source: sales_data
    table: sales
    filters:
      - type: widget
        field: region
      - type: widget
        field: product

layouts:
  - title: Sales Overview
    pipeline: filtered_sales
    views:
      - type: hvplot
        kind: line
        x: date
        y: revenue
      - type: table
        page_size: 20

Deploy with one command:

lumen serve dashboard.yaml --show

YAML vs Python

Lumen offers two approaches to building dashboards:

Aspect YAML Python
Syntax Simple configuration Python code
Learning curve Beginner-friendly Requires Python knowledge
Flexibility Good for common patterns Full programmatic control
Best for Standard dashboards Complex custom applications
Documentation This guide Python API Guide

Most users start with YAML and add Python only when needed.

Getting help

Next steps

New to specs? Start with the Build Dashboard with Spec tutorial to create your first dashboard in 15 minutes.

Returning users? Jump to the guide that matches your current task using the navigation above.