Embedding
Embed a SQL query result
Run a query against your PostgreSQL database and embed the live result on any website. Show a user count, revenue total, active subscriptions, or any metric your database holds, updating automatically.
Use cases
- Live user count on a SaaS landing page
- Revenue or MRR counter on a public dashboard
- Active session count on an internal ops board
- Error rate from your database logs
How to embed
- Create a free account on 7di.
- Add a SQL query widget.
- Write a query that returns the value you want (first column, first row).
- Enable Public embed and copy the iframe code.
Theme
Chart
Active users
1420
09:18 PM · 1h·SQL Query
Table
| user | plan | signups | country |
|---|---|---|---|
| alice@example.com | Pro | 142 | US |
| bob@example.com | Enterprise | 98 | DE |
| carol@example.com | Free | 321 | FR |
| dan@example.com | Pro | 77 | UK |
09:18 PM · 1h·Users by plan·SQL Query