This repo contains a minimal example demonstrating:
- Creating Tinybird Charts from the UI
- Integrating Tinybird Charts into a Next.js frontend
You can read more about Tinybird Charts in the documentation, and there is a full end-to-end guide covering this example.
- Node.js >= v18
- A free Tinybird account
- Deploy the Tinybird resources to a Tinybird Workspace
Install app dependencies. From the root of the repo:
pnpm install
First create a new file .env.local
cp .env.example .env.local
From the Tinybird UI, copy the read Token for the charts (if you deployed the resources from this repo, it will be called CHART_READ_TOKEN
). Paste the Token into the .env.local
file in your directory:
NEXT_PUBLIC_TINYBIRD_STATIC_READ_TOKEN="STATIC READ TOKEN"
Run it locally:
pnpm run dev
Then open http://localhost:3000 with your browser.