Guides
The usage dashboard
What you will learn: how to run the optional dashboard and connect your server to it.
The dashboard is a small app in the speeq repository (apps/platform). It shows anonymous counters: how many sessions and turns, which versions are running, which features are used, and error counts. It never sees conversation text. To read conversations, use your own audit viewer.
The dashboard is optional. speeq works fine without it.
Run it on your computer#
Start the apps from the repository root with pnpm dev, or only the dashboard with pnpm --filter @speeq/platform dev. Open /dashboard on port 3001.
- With no
DATABASE_URL, it uses a built-in database (PGlite) that needs no setup. - In development, the password is
admin. - To see sample data, stop the dashboard, run
pnpm --filter @speeq/platform seed, and start it again. Remove it later withseed:clear.
Connect your server#
- Open Projects, create a project, and copy its public key.
- Pass the key to
createSpeeqasprojectKey. - Set
SPEEQ_PLATFORM_URLin your server environment to the dashboard's address, for examplehttp://localhost:3001. - Send a message, then look at Installs and Overview.
Without a project key, counts still arrive, but they are not tied to a project.
Run it for real#
- Set
DATABASE_URLto a Postgres database. Runpnpm --filter @speeq/platform db:migratefirst. The dashboard does not migrate a remote database for you. - Set
ADMIN_PASSWORDand aSESSION_SECRETof at least 32 characters. Login is limited to a few tries. - Set
CRON_SECRETso the daily cleanup can run. Old data is deleted after 90 days by default (TELEMETRY_RETENTION_DAYS).
Limits#
The dashboard accepts up to 64 KiB per request, 10 batches per minute for each server, and 1,200 per minute in total. Someone who invents many fake server IDs can get around the per-server limit. The total limit and the cleanup job keep the damage small.