Schema viewer
An entity-relationship diagram of the document: its tables, their columns and the references between them, with the schema as text for an AI.
Add it to a document
In Grist, add a widget, choose Custom, then Enter Custom URL and paste:
https://gristwidgets.com/widgets/schema-viewer/v0/It takes every v0.x release, fixes and new features; a breaking change comes as a new major version, at a URL of its own. The same widget is also served at https://arthurblanchon.github.io/grist-widget-sdk/widgets/schema-viewer/v0/.
What it does
People who build or inherit a Grist document, and the AI that helps them write its formulas and widgets, need to see how it is put together: its tables, their columns and types, which are formulas, and which columns refer to which tables. The widget draws the document as an entity-relationship diagram, can narrow it to a table and its neighbours, and gives the same schema as text: Markdown for an AI, or Mermaid for the Mermaid diagram widget.
Grist's Raw data page lists the tables, but not their columns side by side or the references between them.
Columns
None: the widget reads the whole document, whatever its section shows.
Access
full: the columns, their types and formulas are in Grist's metadata tables, which a widget reads with full access. It writes nothing.
Changes
0.2.2 · 2026-11-28
- No warning that its section follows no other: the schema is the whole document's, so the widget needs no link, and the alert showed for nothing.
0.2.1 · 2026-11-21
- The widget loads again: Grist started serving its plugin script as a development build that this widget's security policy refuses, which left every copy on "The Grist plugin did not load". The widget now ships its own copy of Grist's plugin script, a fixed version without that problem, and runs no script from anywhere else.
0.2.0 · 2026-11-16
- "Report a problem": when a change fails to save, or if the widget ever stops working, a link opens this widget's bug form, filled in with its name and version. Nothing is sent from your document: you write what you choose.
- If the widget stops working, it says so, with a button to reload it, instead of showing an empty panel.
0.1.1 · 2026-11-15
- The widget's page carries a Content Security Policy: only its own code and Grist's plugin API run in it, which keeps a document's content from running anything there.
0.1.0 · 2026-11-15
First release. An entity-relationship diagram of the document: its tables, their columns and the references between them, with the schema as text for an AI.