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

  1. Create a free account on 7di.
  2. Add a SQL query widget.
  3. Write a query that returns the value you want (first column, first row).
  4. Enable Public embed and copy the iframe code.
Theme

Chart

Active users

1420

Table

userplansignupscountry
alice@example.comPro142US
bob@example.comEnterprise98DE
carol@example.comFree321FR
dan@example.comPro77UK
Embed a SQL query result · 7di Docs