Skip to content

BI Components vs nao

nao is an open-source analytics agent: people ask questions about the data of their company, in a chat, in Slack or in Claude, and an agent answers with figures, charts and "stories", its name for dashboards. It calls itself an agentic BI builder.

nao and BI Components meet at one point, the moment a language model answers with a dashboard. They are not the same kind of thing:

  • nao is the whole product. The agent, the context it reads (your tables, your dbt project, your rules), the chat, the bots, the dashboards, the sharing, the tests that tell you whether the agent is right. A data team sets it up for the people of its company.
  • BI Components is one layer. It is what a model's answer is made of, and where it runs: HTML tags, a sandbox, queries your application checks. It has no agent, no chat and no model. You bring those, in your own product.

If you want an analytics agent for your company, nao is one, and BI Components is not. If you are building an agent into your product, BI Components is a part you would otherwise write, and nao's source shows it: for its most ambitious dashboards, nao built the same sandbox.

Choose nao Choose BI Components
You want An analytics agent, ready to use Dashboards in the answers of your own agent, or in your own pages
Who reads the dashboards The people of your company, in nao The users of your product, in your product
The agent nao's, on the model of your choice Yours
What tells the agent about the data A context layer nao builds from your warehouse and dbt Your system prompt
Who runs the queries nao's server, on your warehouse Your backend
You get A product to set up A library to build with

This page was written in December 2026, from the source of nao 0.4.11 and its documentation. nao releases several times a week: check its documentation for what changed since.

What the model writes

A user asks for revenue by month and by country. In both, the model answers with a short text made of tags.

## Revenue

<grid widths="1,1">
<chart query_id="query_f0ac20cd" chart_type="line"
  x_axis_key="month" x_axis_type="date" title="Monthly revenue"
  series='[{"data_key": "revenue", "value_format": {"d3_format": ",.0f", "prefix": "€"}}]' />
<chart query_id="query_70cfcc4e" chart_type="bar"
  x_axis_key="country" title="Revenue by country"
  series='[{"data_key": "revenue"}]' />
</grid>

A "classic" story: Markdown with nao's tags. Before writing it, the agent ran two SQL queries with its execute_sql tool. The story names their results, query_f0ac20cd and query_70cfcc4e, kept by nao's server.

<h2>Revenue</h2>

<div class="grid grid-cols-2 gap-4">
  <line-chart measure="revenue" granularity="month" title="Monthly revenue"></line-chart>
  <bar-chart measure="revenue" by="country" title="Revenue by country"></bar-chart>
</div>

HTML with BI Components tags. The model ran nothing: each tag is the query. Your server computes revenue when the dashboard is displayed, for the person looking at it.

The two formats look alike and work in opposite ways. A nao tag draws a result that exists; a BI Components tag asks a question. The rest of this page follows from that.

What each one does

nao BI Components
An agent Yes: tools for SQL, charts, stories, files, MCP, code No
What the agent knows of the data A context layer: a folder of files synced from the warehouse, dbt, Notion, plus your rules What you put in your prompt
Is the agent right? nao test: questions with the SQL you expect, scored. Replay of chats, feedback, suggested fixes Not its subject
Where people ask Web app, Slack, Teams, WhatsApp, Claude and other MCP clients In your application
A dashboard is Markdown with tags, on stored query results. In beta: a React or HTML application written by the agent HTML with custom elements
Charts 15 types: bars (stacked, 100%, horizontal), line, areas, mixed, pie, donut, scatter, radar, key figure, maps Bar, line, pie, doughnut. Others with your own ECharts code
Filters Select, text, search, date range: the agent writes them into the SQL of each query Period, select, buttons, toggle: they apply to every component
Click on a chart to filter the page In the beta applications, when the agent codes it Built in, on every chart and table
Data in a dashboard A snapshot. Live on a schedule, or when opened Always live
Queries run as The owner of the story; again for a viewer with restricted rows The viewer
Named measures dbt MetricFlow, optional. Otherwise the agent writes SQL Yours. The model never writes a statement
Share and export With people and groups of the project. PDF, HTML, Markdown, scheduled e-mails What your application does
Show it in your product No embedding for a product: nao is the application Its purpose
Rights per viewer Row-level security, single sign-on: Enterprise license Those of your application
Without a model No Yes: a page you write
Price Open source: free. Cloud: $50 per user and month, free up to 3 Free

When to use which

The people of your company should be able to ask the data. Use nao. It is a finished product for this: connect the warehouse, write the rules, invite people. Building it with BI Components means writing the agent, the chat, the context, the bots and the sharing. Nothing in BI Components makes a model right about your data.

Your data team wants to control and test what the agent answers. Use nao. Its context layer is a folder of files in Git, and nao test scores the agent on your key questions before a change ships. BI Components has no equivalent, and no opinion.

You want the agent in Slack, in Teams, in Claude. Use nao.

Your product has a chat, and your customers ask it for figures. Use BI Components. nao is an application for the members of a project: it has no way to place its chat or its stories in the pages of another product, for people who are not its users. BI Components has nothing else to do: embedDashboard shows the answer of your model in your page, and its queries go to your API with the session of your customer.

You are building your own agent. Use BI Components for what it shows. You keep your model, your prompts, your tools and your interface; you do not write the components, the sandbox, or the validation of the queries.

A dashboard must show each reader their own data, now. Use BI Components. A nao story is first a snapshot of what its author saw. It can be made live, and its queries then run as its owner; nao rebuilds it for a reader whose rows are restricted. A BI Components dashboard holds no data: every display asks again, as the reader.

You want dashboards with no model at all. Use BI Components: the same tags make a static page or a page on your backend.

You need a deck of slides, a PDF sent every Monday, a what-if simulator. Use nao. Its stories do this.

Technical choices

A result or a question

In nao, the agent queries first. execute_sql runs a statement and returns a query_id; the model sees the first 40 rows, and decides what to draw. A chart is then a tool call, or a tag in a story, that names the result and says which columns go where. Nothing in a classic story is code: nao parses its tags and draws them with its own React components and Recharts.

This has real advantages. The model saw the figures before writing, so it can comment on them: a nao story has a narrative, and the text is about the data. And a result that exists can be frozen, exported to a PDF, or drawn as an image for Slack.

BI Components has no result to name. A tag is a query: measure="revenue" by="country". The model sees no data unless your agent gives it some, and what it writes can be shown to anyone, at any time, with other filters. The dashboard is a text with no state behind it: no stored query, no identifier that only one server knows. The same HTML works in the chat, in an e-mail to a colleague who opens it in your application, or saved as a page.

Filters show the difference best. A nao filter is a tag, and a block the agent writes in the SQL of each query it must reach:

select country, sum(amount) as revenue from orders
where 1=1 {% filter country %} and country in ({{ filters.country.sql }}) {% endfilter %}
group by country

In BI Components the page owns the selection, and every component receives it. The model writes <ui-filter dimension="country"> and nothing else. For the same reason, a click on a bar can filter the other charts: they are questions that can be asked again, not results.

Who writes SQL

In nao the model writes SQL statements, on the warehouse. This is the usual design of an analytics agent, and nao guards it in its server: a statement must be a select; tables outside the context can be refused; rules per group add conditions to the query (row-level security, in the Enterprise license). With dbt MetricFlow, the agent can be limited to named metrics, and then writes no SQL at all.

In BI Components the model writes no statement, in any setup. With named measures, it writes names your server defines. With SQL expressions, it writes one expression per attribute (sum(revenue)), checked before your server sees it: no statement, no sub-query, a list of safe functions. A query is a small object your server can read, compare with a dictionary, and complete with the rights of the viewer. Parsing SQL to make it safe is not needed, because there is no SQL to parse.

The price is expressiveness. nao's agent can join five tables and write a window function for one question. A BI Components dashboard asks for measures by dimensions: what the question needs must exist on your server, as a measure or a table.

The sandbox

nao has a second format, in beta and off by default when you host it yourself: the custom story. The agent writes a React application, or an HTML page, with nao's kit of components. nao's server builds it, and the browser runs it in a frame. This is where the two projects made the same choices:

nao, custom stories BI Components
The frame <iframe sandbox="allow-scripts">, written with srcdoc The same
Its policy default-src 'none', connect-src 'none', form-action 'none' The same
Scripts allowed nao's runtime and the built application, by hash and origin. Imports limited to a list: React, Recharts, Leaflet, nao's kit bi-components.js and the files the page names. Inline scripts of the dashboard
Data Messages to the page around it, which calls the server with the viewer's session The same
What the frame can ask A stored query by its id, or a SQL statement of its own, run as the viewer and read-only A description of a query: names or expressions, never a statement
The code is Built on the server, before it is published Run as written: nothing to build
Leaving with the data A navigation of the frame is detected, and the channel closed A second frame, whose policy forbids navigation

Two teams that let a model write what a browser runs came to the same frame, the same policy and the same messages. It is good evidence that this is the right design.

The difference is in what crosses the border. A nao application can send SQL, and nao's server makes it safe. A BI Components dashboard cannot: the page that holds it rebuilds each query from a strict schema, then your server checks it. They also serve different places: nao's sandbox is part of nao's application, where embedDashboard is a function to call in yours.

Outside custom stories, nao has no code to isolate, with one exception: chart types a project adds (agent/charts/*.js) are loaded in nao's page itself. They are written by the data team, not by the model.

Live, and as whom

A nao story keeps the results of its queries. That is what makes it a document: it shows what its author saw, it has versions, and it opens instantly. A story can be set live, on a schedule or at each opening. Its queries then run as its owner, and everyone sees the same figures. When a reader has restricted rows, nao runs the story again for that reader and keeps a copy.

BI Components keeps nothing. Each display sends the queries, as the person looking. There is no owner, no copy per reader, and no schedule, and also no snapshot: a dashboard cannot show what the figures were last Tuesday, unless your server can answer that.

Running it

nao is an application to host: one container (a Bun server, a Python process that runs the SQL, a SQLite or Postgres database), or nao Cloud. Its core is open source (Apache 2.0); single sign-on with Entra or OIDC, row-level security, identity passthrough to the warehouse and budgets per user need its Enterprise license.

BI Components is a JavaScript file and an endpoint you write. There is nothing to host that you do not already have.

What nao has that BI Components does not

Not counting the agent and everything around it (the context layer, the chat, the bots, the tests of the agent, sharing), which are nao's product and not the job of a component library. The list below is what BI Components could take from the way nao shows data.

Charts

  • Areas, bars stacked to 100%, scatter, radar.
  • A mixed chart: bars and lines, on two axes, several measures.
  • Maps: points, bubbles, regions.
  • A total series, data labels, bounds and labels of the axes, a color per series.
  • Chart types a project adds, then used by name like the others. BI Components has a script per dashboard.

Tables and figures

  • Conditional formats in a table.
  • A format per series: prefix, suffix, compact numbers.

Filters

  • A text search, and a search in a long list.
  • Filters that depend on each other.
  • A parameter that changes the measure or the time grain of a chart: a "revenue / orders / margin" switch above a chart. BI Components has it for the grain, not for the measure.

A dashboard as a document

  • A snapshot: a dashboard frozen with its data, to show what was seen.
  • Versions, and going back to one.
  • Tabs.
  • Slides: a deck of pages in 16:9, one per page of a PDF.
  • Export to PDF, and to a self-contained HTML file.
  • A chart drawn as an image on the server, for an e-mail or a Slack message.
  • Text that follows the data: figures in a sentence, written again when the data changes.

In a sandbox

  • A state kept for the viewer, and a state shared by everyone: the last position of a slider, a comment.
  • A call to a language model from the dashboard, as the viewer, with a budget.
  • A table exported from the frame, and links opened by the page after a click.
  • Errors returned to the model before the dashboard is shown: nao builds the application and gives the agent the build errors. BI Components shows errors at display.

For the application around it

  • A dashboard inside Claude or ChatGPT: nao serves its charts and stories as MCP Apps, drawn in the client. A kit to do the same with a BI Components dashboard does not exist.
  • A semantic layer ready to connect: nao compiles dbt MetricFlow queries. BI Components documents the endpoint, and leaves every engine to write.
  • Row-level security written once, as rules per group that a server adds to each query.
  • A test bench for a prompt: questions, expected results, a score. Useful to anyone who writes the system prompt of a dashboard model.

What BI Components has that nao does not

  • It goes in your product. Dashboards in your pages, for your users, with your sign-in.
  • It works with your agent, your model and your prompts, or with none.
  • A dashboard is a self-contained text: no stored query, no identifier a server must remember. It can be saved, sent and shown elsewhere.
  • The model writes no SQL statement. Queries are names and expressions, checked against what the viewer may see.
  • Always live, always as the viewer. No owner, no copy per reader.
  • Click to filter, and filters for the whole page, with nothing for the model to wire.
  • One format for a quick chart, a full dashboard and a custom chart: HTML, with a script when needed, always in the sandbox.
  • No server of its own, and a static page with no server at all.