Hex notebooks, on live views.
Add Basalt as a data connection in Hex. SQL cells query views directly, and scheduled runs always see the latest rows.
Add Basalt as a data connection in Hex. SQL cells query views directly, and scheduled runs always see the latest rows.
Hex connects to Basalt with its native connector over the Postgres wire protocol. Schemas appear in the Hex data browser, and query results can feed Python cells as DataFrames without a copy.
In Hex, add a Basalt connection and paste a service token. Schemas and views show up in the data browser right away.
# create a service token for Hex basalt connect hex --workspace acme --role analyst
Write plain SQL over the source. Basalt keeps the view current with every record and tracks lineage back to the topic, partition and offset.
CREATE MATERIALIZED VIEW revenue_by_min AS SELECT date_trunc('minute', ts) AS minute, currency, sum(amount) AS revenue, count(*) AS payments FROM payments WHERE status = 'captured' GROUP BY 1, 2;
Every view is an endpoint the moment it exists. Call it over REST, connect with any Postgres client, or use the SDK from your app.
curl https://api.basalt.dev/v1/views/revenue_by_min?limit=5 \ -H "Authorization: Bearer $BASALT_TOKEN"
Pick Basalt from the Hex connection list. No driver or JDBC setup.
Views, columns and types appear in the Hex sidebar with descriptions.
Scheduled apps and notebooks query live views, not a stale extract.
SQL cell results pass to Python cells as pandas DataFrames.