# Bird · No-code dashboard builder

> Analytics where customers pick their own metrics: compose a query field by field, render it as a chart, table or KPI, arrange it by drag and drop. In production for enterprise customers on datasets of 1M+ records.

Case study · Vinícius Albuquerque · Frontend Engineer at Bird · Apr 2024 – Jun 2026 · https://www.vinicius-albuquerque.com.br/en

- Status: Shipped at Bird
- Case study (HTML): https://www.vinicius-albuquerque.com.br/en/projeto/bird-dashboard-builder

## Problem

Bird's customers wanted analytics on their own data, and every new chart meant a request to engineering. The answer had to be self-serve, and it had to stay usable for enterprise accounts whose datasets run past 1M records.

## What I built

- Field-by-field query composition on Malloy: users add and remove fields instead of writing queries or filing a request with engineering
- One rendering path from a Malloy result to a Vega spec, covering line, bar, doughnut and funnel charts, tables and KPIs
- Drag-and-drop layout with inline edit, clone and delete for every widget
- TanStack Query as the server-state layer, caching and deduplicating widget queries
- Shipped dark behind organization-scoped feature flags and rolled out gradually, with Vitest, React Testing Library and Playwright coverage

## Hard part: Staying interactive on 1M+ records

The builder never ships raw rows to the browser. Each widget is a Malloy query, so filtering and aggregation run in the database and the client only receives the small result set a chart, table or KPI needs. TanStack Query sits between the widgets and the API as the server-state layer: results are cached per query, so rearranging the layout does not refetch what is already on screen.

## Result

In production for enterprise customers on datasets of 1M+ records. Customers build the dashboard they need without waiting on an engineer, and every release reached them gradually behind feature flags.

## Architecture

Field picker (Add and remove fields) → Malloy query (Aggregated in the database) → TanStack Query (Cached server state) → Vega spec (Line, bar, doughnut, funnel) → Widget (Chart, table or KPI; Drag-and-drop grid)

SolidJS UI · shipped dark behind organization-scoped feature flags

## Overview

Bird is an Amsterdam-based cloud communications platform (SMS, WhatsApp, email, marketing and sales). In its analytics product I architected the no-code dashboard builder. Users compose a query by adding and removing fields, then render it as a line, bar, doughnut or funnel chart, a table or a KPI. Widgets sit on a drag-and-drop layout and can be edited inline, cloned or deleted. Every widget is a Malloy query whose result feeds a Vega spec; the UI is SolidJS, with TanStack Query as the server-state layer. All of it went to production dark behind organization-scoped feature flags, was tested in our own workspace and then rolled out gradually, covered by Vitest, React Testing Library and Playwright. Bird's UI is under NDA, so this page shows the architecture instead of screenshots.

## Technologies

SolidJS, Malloy, Vega, TanStack Query, TypeScript, Radix UI, Tailwind CSS, Vitest, Playwright
