# DAC

> Dashboard-as-Code tool for defining, validating, and serving interactive dashboards from YAML and TSX with a built-in AI agent and semantic layer.

DAC is a Dashboard-as-Code tool that lets you define, validate, and serve dashboards using YAML or TSX. It includes a built-in AI agent via Codex so you can chat with your dashboard live and get it updated in real time. DAC supports all major databases including Postgres, MySQL, Snowflake, BigQuery, Redshift, and Databricks via Bruin. It is designed for AI agents to build dashboards in a reliable and reviewable way.

- **YAML and TSX authoring** — *define dashboards in plain YAML or use TSX for dynamic charts, tabs, loops, and conditionals*
- **Built-in AI agent** — *chat with your dashboard live via Codex integration and receive instant updates*
- **Semantic layer** — *define metrics and dimensions once in `semantic/`, reference them from any widget, and let DAC generate the SQL automatically*
- **Multi-database support** — *connects to Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks, and more through Bruin*
- **CLI-first workflow** — *use `dac init`, `dac validate`, and `dac serve` to scaffold, check, and run dashboards from the command line*
- **Agent skill bundles** — *`dac init` installs bundled dashboard authoring skills for Claude and Codex under `.claude/skills/` and `.codex/skills/`*
- **Example projects** — *four self-contained examples cover basic YAML, TSX, semantic YAML, and semantic TSX dashboards*
- **Telemetry controls** — *anonymous usage telemetry is opt-out via `TELEMETRY_OPTOUT=1` or `DO_NOT_TRACK=1`*
- **Open source** — *licensed under AGPL-3.0; install via a single `curl` command or build from source with `make build`*

## Features
- Dashboard-as-Code via YAML and TSX
- Built-in AI agent via Codex
- Semantic layer with auto SQL generation
- Multi-database support (Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks)
- CLI commands: init, validate, serve
- Dynamic charts, tabs, loops, and conditionals in TSX
- Agent skill bundles for Claude and Codex
- Embedded React frontend in binary
- Anonymous telemetry with opt-out support

## Integrations
Bruin, Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks, Claude, Codex

## Platforms
LINUX, WEB, API, CLI

## Pricing
Open Source

## Version
v0.1.0

## Links
- Website: https://getbruin.com/docs/dac/
- Documentation: https://getbruin.com/docs/dac/
- Repository: https://github.com/bruin-data/dac
- EveryDev.ai: https://www.everydev.ai/tools/dac
