BD

bruin-data/dac

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

805 stars 质量 66 趋势 69AGPL-3.0

DaC是一个仪表板-一码工具. 使用YAML和JSX构建交互式仪表板. 内建语义层. 让你的特工们来建造标准化的可审查的仪表板.

概览

DAC是一个Dashboard-as-Code工具,用于定义,验证,并服务来自YAML和TSX的仪表板. - 动态图表、标签、环路和带有TSX的条件。 - 支持所有主要数据库:Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks, 并通过 Bruin - 构建语义层:在语义中定义一次的度量和维度, 从任何部件中引用它们 。 DAC生成 SQL. 它是为AI代理以可靠和可审查的方式建造仪表板而建造的. 导出默认值( < Dashboard name = "Simple Dashboard" connection = "my db" > < Row> < Metric name = "总收入" col={4} sql="SELECT SUM( mount) 从销售值" = 字段 :"值",类型:"数",格式:"$,2f" }}/ > </Row> </Dashboard>) 名称:销售概况 连接:仓库 行: - 部件: - 名称: 收入类型: 平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平方平.

概述(AI 翻译)

DAC是一个Dashboard-as-Code工具,用于定义,验证,并服务来自YAML和TSX的仪表板.

  • 动态图表、标签、环路和带有TSX的条件。
  • 支持所有主要数据库:Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks, 更多通过 Bruin
  • 内置语义层:在semantic/中定义一次度量和维度,从任何部件中引用。 DAC生成 SQL.

它是为AI代理以可靠和可审查的方式建造仪表板而建造的.

图十 也门

导出默认值( E) 存档副本. < Row和gt; 缓冲 lt; 计量( L) 名称=“总收入” {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你来干什么? sql=“SELECT SUM(数额) 销售价值” 数值 : “值”,类型 : “数”,格式 : “$, 2.f” 。 / & gt; (gt;) (美国英语). 打开 存档副本 (中文(简体) ).

名称: 销售概况 连接:仓库

行数 :

  • 部件 :
  • 名称:收入 类型: 度量 sql: SELECT SUM( 数额) 销售价值 值 : 字段:数值 类型:数量 格式: “$, 2.f” 科尔: 4

□ 安装

安装最新的稳定 DAC 发布 :

从 [[T1] 安装最新边框:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

DAC

DAC is a Dashboard-as-Code tool for defining, validating, and serving dashboards from YAML and TSX.

  • Dynamic charts, tabs, loops and conditionals with TSX.
  • Supports all the major databases: Postgres, MySQL, Snowflake, BigQuery, Redshift, Databricks, and more via Bruin
  • Built-in semantic layer: define metrics and dimensions once in semantic/, reference them from any widget. DAC generates the SQL.

It is built for AI agents to build dashboards in a reliable and reviewable way.

Install

Install the latest stable DAC release:

curl -LsSf https://getbruin.com/install/dac | sh

Install the latest edge build from main:

curl -LsSf https://getbruin.com/install/dac | sh -s -- --channel edge

DAC uses your existing Bruin connections and currently shells out to bruin query for query execution. The install script installs the Bruin CLI first when bruin is not already available on your PATH.

Quickstart

Create a new starter project:

dac init my-dashboards
cd my-dashboards
dac validate --dir .
dac validate --dir . --with-database
dac serve --dir . --open

The starter includes a SQL-backed YAML dashboard, a semantic YAML dashboard, and a semantic model under semantic/.

dac init also installs DAC’s bundled dashboard authoring skill for Claude and Codex:

ls .claude/skills/create-dashboard/SKILL.md
ls .codex/skills/create-dashboard

For existing projects, run dac skills install --dir ..

If you cloned the repository and have dac installed, you can also run one of the bundled example projects:

dac serve --dir examples/basic-yaml

Examples

The repository includes four self-contained example projects under examples/:

Example What it shows
examples/basic-yaml Standard YAML dashboards with filters, SQL queries, and a self-contained Vega-Lite layered-chart demo.
examples/basic-tsx A TSX dashboard that uses load-time queries to generate layout from the database.
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add bruin-data/dac
新手?先看 mcpskill.org 教程 →