In Hex
You're an analyst or data team exploring a warehouse in a collaborative notebook.
Comparison
Pick Hex if you're an analyst or data team that wants a collaborative SQL + Python notebook over your existing warehouse, with AI-written code, charts, and published data apps. Pick nlqdb if you're building a product or agent that needs English-to-SQL over a database it provisions — embeddable, API-first, with every write diff-previewed.
The same goal, two ways.
> monthly active users by signup cohort for the last 6 months
In Hex
You're an analyst or data team exploring a warehouse in a collaborative notebook.
In your HTML
<nlq-data goal="monthly active users by signup cohort for the last 6 months"></nlq-data> A grouped, time-bucketed query nlqdb answers as SQL over the database your app owns — the live data layer your product queries, not a notebook an analyst publishes.
What's different
| Dimension | nlqdb | Hex | Note |
|---|---|---|---|
| Owns the database (provisions + migrates) | Hex connects to your existing warehouse; it doesn't provision or own a database your app writes to. | ||
| Natural-language data questions | Both take English — Hex's Magic / Notebook Agent writes SQL & Python in a notebook, nlqdb compiles SQL against a Postgres it owns. | ||
| Embeddable answer element + SDK + API | Hex embeds published dashboards/apps (Enterprise); nlqdb ships `<nlq-data>`, an SDK, and an HTTP API to query a database your product owns. | ||
| MCP server (agent-callable) | Both expose MCP: Hex's Threads answers from a notebook/warehouse in Slack/Claude/Cursor; nlqdb's `nlqdb_query` materialises Postgres on first reference. |
| Dimension | nlqdb | Hex | Note |
|---|---|---|---|
| Charts, dashboards + published data apps | Hex builds charts, dashboards, and interactive published apps; nlqdb returns typed result rows you render in your own UI. | ||
| Python / R notebook cells | Hex is a mixed SQL + Python + R notebook; nlqdb's output contract is SQL plus rows, not a notebook runtime. | ||
| Real-time multi-user collaboration | Hex is Google-Docs-style collaborative editing; nlqdb is a backend data layer, not a shared editing surface. | ||
| Auto-migration via NL ('add a column for tags') | |||
| Destructive-op diff preview before apply | Hex queries and analyses; it doesn't manage your schema. nlqdb previews writes and DDL before applying. | ||
| Connects to many existing warehouses | Hex reads Snowflake/BigQuery/Databricks/Postgres and more; nlqdb provisions and queries its own Postgres rather than connecting to many warehouses. |
shipped · partial · not shipped
No sign-in. The anonymous database lasts 72 hours; adopt it with one click if you keep it.
Start with a goal →The error has been recorded. Reload to recover; if it persists, sign out and back in.