Skip to Content
ToDiagram

Supabase

Connect a Supabase account to open table data as a diagram and draw your database schema.

The Supabase integration reads tables from your Supabase projects. Use it to look at rows as a diagram, or to draw the tables of a schema and the references between them.

You need a ToDiagram account and a Supabase account.

Connect

  1. In the editor, open the menu at the top left and choose Apps and integrations > Supabase. Sign in to ToDiagram if you are asked to.
  2. Click Connect to Supabase.
  3. Approve the access on Supabase's page. You come back to the editor when it is done.

Open Apps and integrations > Supabase again. The dialog now lists your account under Connected Account. Pick it there each time you open the dialog. The red button next to a picked account disconnects it, and the plug button at the bottom of the dialog connects another account.

Open table data

  1. In the Supabase Integration dialog, choose Table Data.
  2. Pick a Connected Account, a Project and a Table.
  3. For a large table, pick a Page. Each page holds 350 rows.
  4. Optional: turn on Resolve references to include the rows a row points to as nested objects. Only references to tables in the public schema are included.
  5. Click Load Table Data.

The rows open in the current tab as JSON, named after the table. From there you can use everything a JSON document offers, such as the table view and charts and search.

Loading replaces the content of the current tab. Open a new tab first if you want to keep what is in it.

Draw a schema

  1. In the dialog, choose Schema ERD.
  2. Pick a Connected Account, a Project and the Tables to include.
  3. Click Generate Schema Diagram.

The result opens in the current tab as a ToDiagram document: one node per table with its columns, and an edge for each reference between tables. You can rearrange and edit it like any other diagram.

Good to know

  • Loaded data is a copy. Changing it in the editor does not change your database.
  • The data is not saved to ToDiagram unless you save the document.

On this page