Bruin Academy

Guide

Dashboards as Code with Bruin DAC

Go from an empty folder to a live, AI-editable analytics dashboard on localhost in under twenty minutes. Author dashboards as YAML, query a real DuckDB, and let the in-browser AI assistant build new charts for you.

What you'll build - the deployed dashboards list on localhost:8321

What

Build a local dashboards-as-code workspace with DAC, DuckDB, and YAML dashboards. You will define dashboards as text files, version-control them with the rest of your project, and serve them locally with live reload.

By the end, you will be able to:

  • Scaffold a DAC project and point it at a DuckDB file you already have
  • Author a dashboard with metrics, charts, and filters from YAML or TSX
  • Run dac serve and use the in-browser AI chat to add or modify charts

How

You will install DAC, initialize a starter project, connect the generated .bruin.yml to DuckDB, author your first dashboard, then run the local server and use the built-in AI assistant to edit dashboard files.

Before you start

  • macOS or Linux with a terminal
  • A code editor for the YAML or TSX dashboard files you'll edit (by hand or with the AI agent)
  • Optional - a .duckdb file with a table you want to chart; the starter ships with a sample DuckDB if you don't have one yet
  • Optional - an LLM provider configured locally if you want the in-browser AI chat to author dashboards for you

Get help & contribute

Sign up to our newsletter

Practical updates on open-source data pipelines, AI analysts, governance, and what we are shipping at Bruin.