---
title: "SDK benefits | Grafana Labs"
description: "How strong typing and option builders prevent configuration errors"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## Main benefits of the Foundation SDK

Using the Foundation SDK provides two main benefits: strong typing and builder blocks.

## Catch errors early with strong typing

The Foundation SDK is strongly typed, so the compiler can check your dashboard as you write it. Instead of discovering a broken dashboard after deployment, you see problems while you’re still writing code:

- **Invalid unit values**: You catch invalid units during development, before they reach production dashboards.
- **Wrong data types for fields**: If a field expects one type and gets another, the compiler fails fast with a clear error.
- **Missing required configuration**: Required settings are enforced up front, so incomplete panel definitions do not ship.

## Use option builders for complex settings

An option builder is a typed helper the SDK provides to configure one nested part of a panel or dashboard.

When configuration gets nested, option builders provide typed helpers for those subsections. They keep complex configuration readable while still giving you typed validation:

| Option builder        | Controls                                                      |
|-----------------------|---------------------------------------------------------------|
| **ReduceDataOptions** | How to reduce time series into single values (last, avg, sum) |
| **VizLegendOptions**  | Legend display mode, placement, values shown                  |
| **ThresholdsConfig**  | Color-coded value thresholds                                  |
| **FieldConfig**       | Per-field display overrides                                   |
