# Metabase or code your dashboards? The chart is the cheap part

> A decision guide: when Metabase is the right call, when React, a notebook or an agent-built dashboard wins, and what a coded dashboard needs once it leaves localhost (credentials, access, row scope, refresh, alerts).

Source: https://vibedasher.com/blog/metabase-or-code-your-dashboards

[Back to blog](https://vibedasher.com/blog)

November 16, 2026Engineering9 min read

# Metabase or code your dashboards? The chart is the cheap part

Metabase wins on maturity, on being open source and free, and when no AI may build your dashboards. Code wins when the dashboard is a product surface.

V

Vibedasher Team

Engineering Team

# Metabase or code your dashboards? The chart is the cheap part

If the dashboard is a product surface, meaning customers see it, it has to look like your app, or it needs an interaction no chart menu offers, write it as code: React, typed by hand or by a coding agent. If you want the mature option, use Metabase: it has years in production, a large community, a permissions model many teams have already tested, and an open-source edition that is free to self-host. Use it too when no AI may build your dashboards, because without one a coded dashboard needs an engineer. If you are one analyst answering one question, use a notebook and do not call the result a dashboard.

One familiar reason is missing from that answer on purpose: "the people who need the charts do not write code". It used to settle the question, and it no longer does: someone who has never written React can describe a dashboard to Claude Code, Codex or Cursor and get one back.

That is the decision for most teams, and it has little to do with charts. Drawing a bar chart costs about the same in every tool, and with a coding agent it costs close to nothing: Claude Code, Codex or Cursor will write a working React dashboard over your data in one sitting. What separates the options is everything that happens after the chart exists: who can open it, which rows each person gets, where the database password lives, whether Monday's numbers are Monday's, and who hears about it when a number goes wrong.

Metabase answers those questions for dashboards built in Metabase. A coded dashboard answers none of them until somebody builds the answers or rents them. We make vibedasher, which is one way to rent them, so read the last section knowing that. The sections before it would say the same thing if we sold nothing.

## When Metabase is the right call

**You want the mature option.** Metabase has run in production at a great many companies for years. Its failure modes are known, its upgrades are documented, somebody has usually asked your question on its forum already, and its official, partner and community drivers reach most databases you will meet. A dashboard your agent wrote last week has none of that history. If "known quantity" is first on your list, the comparison ends here.

**You do not want an AI building your dashboards.** Policy forbids it, or the team would rather build by hand. Not having a coding agent of your own is a weaker reason than it sounds, because a hosted product can supply the AI: ours has an assistant in the app that writes the React. But when no AI may do the building, a coded dashboard goes back to costing engineering time, and every new question is a ticket. Metabase asks for a person, a browser and its query builder.

**Open source and free matter to you.** Metabase publishes its open-source edition under the AGPL and documents a Docker install. As of November 2026 its [pricing page](https://www.metabase.com/pricing) lists that edition as free to self-host. You can read the code, fork it and run it with no vendor relationship at all. vibedasher is proprietary, so on this point we have no answer.

**The questions are many and open-ended.** Internal analytics is mostly a long tail: hundreds of saved questions, each read by three people. A saved question is the right size for those. A component each is too much to keep, whoever wrote it.

**You are governing a shared estate.** Collections, groups and permissions over one company-wide set of dashboards, with curated models and metrics on top, is the problem Metabase is built for.

**Standard charts in an iframe are enough for your customers.** As of November 2026, Metabase's documentation describes [guest embeds](https://www.metabase.com/docs/latest/embedding/guest-embedding) as available on every edition, including the open-source one, where they carry a "Powered by Metabase" banner. Its React embedding SDK and its [row and column security](https://www.metabase.com/docs/latest/permissions/row-and-column-security) are documented as Pro and Enterprise features. Check their pricing page for what each plan includes today.

It also covers the after-the-chart list: [alerts](https://www.metabase.com/docs/latest/questions/alerts) on a saved question and [dashboard subscriptions](https://www.metabase.com/docs/latest/dashboards/subscriptions) by email or Slack.

One reason is not on this list: that Metabase is the easy path for people who do not code. Building a dashboard in Metabase is not programming, but it is real work. You learn the query builder, shape models so the tables make sense to other people, connect every dashboard filter to a column on each card, and move cards around a grid until the page reads well. At the end you have what the chart menu offers. With a coding agent, a person who cannot write React describes the dashboard in sentences and gets React back, and they check the numbers afterwards exactly as they would in Metabase. So "we do not code" has stopped being a reason to choose a BI tool. The reasons above still are.

If they describe you, install Metabase. You would otherwise be trading a tool with years of answers behind it for code that nobody has run in production yet.

Where it stops fitting is structural. A Metabase dashboard is a set of Metabase objects that you configure. When what you need is outside the configuration, you are negotiating with a tool. When the dashboard is code, you edit the code.

## When code wins

**React, when the dashboard is part of the product.** It ships to customers inside your app, uses your components and your design tokens, gets reviewed in a pull request and tested in CI like the rest of the codebase. A click on a bar can open your own order page. A filter can be the account switcher your app already has.

**A notebook, when the work is finding the answer.** Cells, prose and a dataframe are the fastest way to go from a question to a result you trust. More on where that ends below.

**An agent-built dashboard, when you know what you want and can say it.** This is why the question is being asked now. A custom dashboard used to cost a sprint, so a BI tool won by default for anything short of a flagship feature. Today the same dashboard is an afternoon of prompting against a real dataset. The trade used to be configuration against engineering time. It is now configuration against code you have to put somewhere.

Here is what that code looks like when the data question is solved. The query is plain SQL over a dataset alias:

`SELECT region,        SUM(sales)               AS revenue,       SUM(profit) / SUM(sales) AS margin FROM sample_superstore GROUP BY region ORDER BY revenue DESC`

And the component that runs it:

``import React, { useEffect, useState } from 'react' type Row = { region: string; revenue: number; margin: number } type QueryClient = {   query(args: { sql: string }): Promise<{ rows: Record<string, unknown>[] }> } const SQL = `   SELECT region,         SUM(sales)               AS revenue,         SUM(profit) / SUM(sales) AS margin  FROM sample_superstore  GROUP BY region  ORDER BY revenue DESC` export default function App({ client }: { client: QueryClient }) {   const [rows, setRows] = useState<Row[]>([])  const [error, setError] = useState<string | null>(null)   useEffect(() => {    let cancelled = false    client      .query({ sql: SQL })      .then((result) => {        if (!cancelled) setRows(result.rows as Row[])      })      .catch((e) => {        if (!cancelled) setError(String(e))      })    return () => {      cancelled = true    }  }, [client])   if (error) return <p role="alert">{error}</p>   return (    <table>      <thead>        <tr><th>Region</th><th>Revenue</th><th>Margin</th></tr>      </thead>      <tbody>        {rows.map((r) => (          <tr key={r.region}>            <td>{r.region}</td>            <td>{r.revenue.toLocaleString('en-US', { style: 'currency', currency: 'USD' })}</td>            <td>{(r.margin * 100).toFixed(1)}%</td>          </tr>        ))}      </tbody>    </table>  ) }``

About fifty lines, and an agent writes them faster than you read them. Notice what the component does not contain: a URL, a key, a user. It receives a `client` and asks it a question. Everything hard about dashboards is hiding inside that one prop.

## Where a notebook stops

The notebook version of the same chart is shorter still:

`import os import pandas as pd import sqlalchemy as sa engine = sa.create_engine(os.environ["WAREHOUSE_URL"])  # your own credentials df = pd.read_sql(     "SELECT region, SUM(sales) AS revenue FROM orders GROUP BY region",    engine, ) df.plot.bar(x="region", y="revenue")`

For you, on your machine, this is the best tool on this page. The trouble starts with the second reader.

Send the `.ipynb` file or an HTML export and they get a recording: the output of the last time you pressed run. They cannot change the date range, and next week the numbers are a week old with nothing on the page saying so.

Serve it live and each reader needs a Python kernel running somewhere, and that kernel connects with `WAREHOUSE_URL`. That is your credential. Every reader now sees exactly what you are allowed to see, and there is no place in the notebook to say "this person, only their region".

Then there is state. A notebook's output depends on the order its cells were run in, which is why careful teams restart and run everything before sharing. A dashboard that has to be right every morning cannot depend on that habit.

So a notebook is the right place for the analysis that comes before a dashboard, and for a report that is read once. It is the wrong container for something other people open every day.

## What breaks when a coded dashboard leaves localhost

The first version an agent writes usually fetches data like this:

``// Runs on localhost. Must never be deployed. const res = await fetch('https://warehouse.example.com/query', {   method: 'POST',  headers: { Authorization: `Bearer ${import.meta.env.VITE_WAREHOUSE_KEY}` },  body: JSON.stringify({ sql }), })``

It works, the charts fill in, and the demo goes well. Then someone asks for the link, and five problems arrive in order.

**1\. The credential is in the browser.** Vite compiles every `VITE_`\-prefixed variable into the bundle it serves. Anyone who opens the page can read that key in the network tab and run their own SQL with it. The fix is a server between the browser and the data, which means you now operate a service.

**2\. Somebody has to decide who may open the URL.** Sign-in, sessions, invitations, groups, and removing access the day a person leaves. For customers, a different mechanism again, because they will never have an account in your internal tool.

**3\. Different people must get different rows.** This is the one that gets shipped wrong. A filter in the React tree changes what is drawn, never what was delivered. A `region` parameter read from the query string is a suggestion the viewer can edit. The restriction has to be attached on the server, from the viewer's verified identity, to every query the page can send, including the ones you add next month.

**4\. The data was a snapshot.** The agent built against a CSV export or a query it ran once. Keeping it current needs a schedule, incremental loads once the table is large, and a way to learn that last night's run failed before the CFO does.

**5\. Nobody is watching it.** An alert needs a clock, a place to remember whether the condition was already true (or it mails you every five minutes), and a delivery channel.

None of the five is hard to describe. Each is a small service with its own failure modes, and together they are most of what a BI tool is. That is the actual build-or-buy in this decision.

## Keep the code, rent the five services

This is the option we build. Your agent writes the dashboard as React and SQL, as above. vibedasher hosts that code and supplies the five things around it.

The agent works [over MCP](https://docs.vibedasher.com/guides/build-with-your-agent): `pip install vibedasher-mcp`, `vibedasher login`, and it can read your schemas, run SQL, push the React tree, build it and publish it. The component from earlier runs as written, because the host hands it `client`. There is no key in the bundle to leak. If you have no agent of your own, the assistant in the app builds the same React from a request in its chat, and publishes only after you confirm.

For members of your account, [row rules live on the dataset](https://docs.vibedasher.com/guides/who-can-see-what) and are matched against whoever is asking:

`{   "rowPolicy": {    "rules": [      { "column": "tenant" },      { "column": "sales_rep_email", "attribute": "$email" }    ],    "fallback": "deny"  } }`

The second rule reads "rows where `sales_rep_email` is the person reading". The dashboard code does not change, and a query added next month is covered without anyone remembering to cover it.

For customers, who have no account, your backend [mints a short-lived token](https://docs.vibedasher.com/api/embedding-the-share-iframe) that carries their filter:

`import { Vibedasher } from '@vibedasher/client' const client = new Vibedasher({ apiKey: process.env.VIBEDASHER_API_KEY! }) const { token } = await client.embedTokens.create({   vizId: 1234,  filters: { region: 'EMEA' },  ttlSeconds: 600, })`

The filter comes from the verified token and is applied on the server to every query, so the page cannot widen it.

[Scheduled refresh](https://docs.vibedasher.com/guides/keep-your-data-fresh) is platform state that keeps running after the agent session ends. The fifth service is a watcher: a trigger, a condition, and the actions to run when the condition is met.

``await client.watchers.create({   name: 'Margin watch',  title: 'Profit margin',  triggers: [{ kind: 'schedule', params: { cron: '0 7 * * *', timezone: 'Europe/London' } }],  check: {    sql: `SELECT SUM(profit) / SUM(sales) FROM sample_superstore          WHERE order_date >= {{window_start}} AND order_date < {{window_end}}`,    datasetIds: [42],    window: '28d',    render: 'percent',  },  condition: { kind: 'threshold', params: { comparator: 'lt', value: 0.1, edge: 'enter' } },  actions: [    { id: 'a1', kind: 'run_agent', params: { mode: 'investigate' } },    { id: 'a2', kind: 'notify', params: { to: [{ member: '<user id>' }], message: '{{a1.report.headline}}' } },  ], })``

Every morning at seven the check computes one number. With `edge: 'enter'` the actions run once, when margin first drops below 10%, and not again on every run while it stays there. The `run_agent` action is the part a cron job and a mail server cannot give you: an agent investigates why the number moved, with a query behind every figure it reports, and the notification carries its headline.

And because the dashboard was code from the start, you can [eject it](https://docs.vibedasher.com/guides/eject-your-dashboard) into your own repository and render it in your own app. The [eject demo](https://vibedasher.com/eject-demo) on this site is a dashboard running as the page's own components, with the SQL behind each view one click away. The rest is on the [features page](https://vibedasher.com/features), and the row-by-row comparison is at [vibedasher vs Metabase](https://vibedasher.com/compare/metabase).

## The decision

Your situation

Use

You want the known quantity: years in production, a large community, a tested permissions model

Metabase

No AI may build your dashboards, by policy or by preference

Metabase

Open source and free to self-host is a requirement

Metabase

A long tail of internal questions over one governed set of data

Metabase

One analyst, one question, a result to explain once

A notebook

The dashboard ships inside your product and must look and behave like it

React, by hand or by agent

Someone who does not write React has a coding agent and can describe the dashboard they want

React, written by the agent

An agent already wrote the dashboard and you need to put it in front of people

Code, on a host that supplies access, refresh and watchers

Internal self-service and a customer-facing product dashboard

Both: Metabase inside, code outside, reading the same warehouse

The last row is more common than either camp admits. The two tools do different jobs, and neither needs to own the other's artifact.

Whichever way you go, price the right thing: what it costs to keep the dashboard private, scoped, current and watched for the next three years.

### Share this article

[](https://twitter.com/intent/tweet?text=Metabase%20or%20code%20your%20dashboards%3F%20The%20chart%20is%20the%20cheap%20part&url=)[](https://www.linkedin.com/sharing/share-offsite/?url=)
