Topbase user guide

New to Topbase? Build your first sales dashboard with six sample orders, then explore a feature below.

Getting started

Build your first sales dashboard

Which channel brought in the most paid sales? Start with six simulated orders, answer the question in the visual query editor, then put the chart on a dashboard. The finished chart has three bars. Web leads with 300. The steps and screenshots were checked in Topbase 0.2.6.

Install and run Topbase

Choose Docker Compose to run the published image with PostgreSQL, or build the Go server to run it directly. On first launch, open Topbase in a browser and create the administrator account. You can then build your first dashboard using six sample orders.

Set your profile, language and sign-in methods

Open the account menu at the bottom of the sidebar and choose My account. Changes here apply to your own account. For example, you can work in English while a colleague reads the same dashboard in Chinese.

Connect and explore data

Connect a database and inspect its tables

Connect the database that holds the records you want to analyze. An administrator sets up the connection. Analysts then open it under Source data. You can practice with the downloadable SQLite file or use an existing database account with read access to the required tables.

Upload and preview an Excel worksheet

Use the local warehouse to keep a copy of a spreadsheet and inspect its records in Topbase. Try it with orders.xlsx. The example worksheet contains six simulated orders and five fields.

Browse tables and export results

Use the table browser when you want to see the records behind a number. You can inspect a source, narrow the result to a few orders and save the query for a repeatable CSV export.

Describe tables and fields in the data model

A reader seeing amount needs to know whether a refunded order is included. An administrator can add a business definition, a readable field name and a semantic type in Topbase. These settings help people interpret the source data when building a query.

Analyze and visualize

Build a visual analysis

How much did each channel earn from paid orders? Use the visual query editor to answer that question, check the total, and save a reusable analysis. Follow along with the six-row orders table from Getting started.

Run a SQL analysis with parameters

Write a read-only SQL query when you want to control the calculation or let a reader choose a value at run time. This example starts with a fixed channel report and adds an optional channel selector to the saved analysis.

Choose and configure a chart

The same query can answer different questions depending on how you display it. A column chart shows which channel leads. A donut shows its share of the total. Start with the three rows in Sales by channel.

Organize and share

Organize, find and recover analyses

Use a personal group to organize reports you own, or a team project when several people need different roles. This example places the channel sales analysis into a monthly reporting group and shows how a colleague can find it.

Build an orders dashboard

Choose Dashboards → New dashboard. Topbase creates a dashboard in your personal data group, gives it a timestamped name and opens the empty canvas in editing mode. On an existing dashboard, choose Edit. You need permission to edit the dashboard and access to the saved analyses you plan to add.

Publish or embed a dashboard

Use Share at the top of an open dashboard to give guests a read-only view. Start by opening the dashboard as a member and checking which cards and data will be visible. For example, an external partner reviewing channel totals should see only the analyses you intend to publish.

Scheduled work

Refresh a saved analysis into a warehouse table

Use Materializations (/warehouse/) to store the output of an analysis and refresh it on a schedule. An administrator maintains these datasets. If other charts reuse the same channel summary, they can read the saved three-row table between refreshes.

Send a daily report or check for results

A dashboard subscription delivers a scheduled report to a webhook channel. A result alert checks a saved analysis for returned rows and uses the Topbase inbox. Choose a subscription for a morning channel report. Choose a result alert for a question such as “Are there any unpaid orders?”

Workspace administration

Configure your workspace and public address

The first administrator creates the workspace. Administrators can then set its name, time zone, external address and sharing policy under Administration → Settings. These settings govern the instance your team signs into.

Give a team access to its dashboards

A permission group contains people. A team data group contains content such as analyses and dashboards. To give sales staff access to a dashboard, add the staff to a permission group, set its capabilities, then give it a role in the data group that holds the dashboard.

Query Topbase from an AI client or the CLI

Connect your AI client through MCP, or run the CLI yourself to inspect each step. Both use the Topbase HTTP API with the permissions of the person who created the key. This example uses the SQLite connection from the first dashboard tutorial.

On this page

Build your first dashboard.

Follow six sample orders from a database to a sales dashboard on your own server.