Mosaic connects charts, tables, and input widgets to a backing database so you can explore very large datasets interactively in notebooks or web apps.
Overview
Mosaic is an architecture for linking data visualizations, tables, input widgets, and other data-driven UI pieces. A coordinator manages declarative queries from those components, optimizes them, and supports cross-filtering while proxying access to DuckDB for scalable processing of static and interactive views.
You can build data-driven web applications or work with data in Jupyter notebooks. The stack includes a visualization grammar (vgplot), SQL query helpers, standalone inputs such as menus and searchable tables, and JSON or YAML specifications that generate dashboards. DuckDB runs server-side and in the browser via WebAssembly so computation stays close to the data.
Optional DuckDB server packages support deployments that need a dedicated query backend. A Jupyter widget can render web-based visualizations from specifications while using DuckDB in the kernel against Pandas, Polars, or DuckDB connections. Example projects show integration with web frameworks and Vega-Lite for cross-view linking.
Interface components publish their data needs as declarative queries rather than each view fetching data in isolation. That design targets interactive exploration when record counts reach millions or billions.
Key features
- DuckDB-backed query coordination
- Cross-linked charts and widgets
- vgplot visualization grammar
- Declarative JSON or YAML app specs
- Jupyter widget with kernel DuckDB
- WebAssembly DuckDB in the browser
- Optional DuckDB HTTP servers
- mosaic-sql query construction API
Use cases
- Large dataset dashboards in the browser
- Interactive analysis in Jupyter
- Linked brushing across views
- Observable Framework data apps
- Custom Mosaic UI components