Dataform DAG Explorer for VS Code
Explore a local Dataform project's dependency graph directly inside VS Code. The extension supports both a fast
A BigQuery connection is not required for graph rendering or local SQL compilation.
FeaturesParsed and Compiled graph modesUse the Graph selector in the top bar. Parsed
Compiled
Compiled SQL inside the graphSelect a node and choose Compiled SQL. The detail panel expands to show locally resolved SQL, including where available:
Controls:
The extension resolves Dataform constructs such as variables, Compilation cache and statusThe extension shows compilation state in the node detail UI:
Compilation output is cached and warmed in the background. Rapid file changes are debounced, and the extension avoids running multiple Dataform compilations concurrently. Relevant changes invalidate the cache, including:
Tag filteringOpen the Tags picker to select one or more tags. Examples:
The extension does not assign meaning to tags; they remain generic Dataform metadata. The picker supports:
A node is visible if it contains at least one selected tag. Dependency contextWhen a tag filter is active, enable Context to show one direct upstream/downstream boundary around matching nodes. Example:
Context is intentionally one hop only. Node searchUse Search nodes... to find a node by target name. Selecting a result:
Search operates on the currently visible graph. Graph diagnosticsThe extension can report structural issues while still rendering the DAG:
In Parsed mode, unresolved references should be treated as advisory because some dependencies may be generated by JavaScript and only become visible in Compiled mode. Live updatesSaving Dataform project files automatically refreshes the relevant graph/compile state. Parsed mode remains responsive and tolerant; Compiled mode refreshes through the debounced compilation pipeline. VS Code theme integrationThe graph UI follows VS Code light/dark theme colors for:
Node-type accent colors remain semantic and intentionally distinct. Getting started1. Open the extension for developmentOpen this folder in VS Code:
Press:
This opens an Extension Development Host. 2. Open a Dataform projectIn the Extension Development Host, open the root Dataform project folder. Typical structure:
3. Open the graphOpen the Command Palette:
or on macOS:
Run:
RequirementsParsed graph
Compiled graph / Compiled SQLAdditionally:
Example check from the project root:
If that command fails, Parsed mode can still remain useful. What "Compiled SQL" meansThe extension performs:
It does not perform:
Those operations require BigQuery and are outside the local preview feature. Node identityNodes are keyed by Dataform target name:
For example:
The graph node ID is:
not the Parsed-mode boundariesParsed mode intentionally uses lightweight source parsing. Compared with Compiled mode:
Use Compiled mode when you need Dataform's resolved graph. CommandsDataform DAG Explorer: Show GraphOpens or reveals the DAG panel. Dataform DAG Explorer: Show Compiled SQLCompiles the active The graph's Compiled SQL button instead shows the preview inline in the node detail panel. DevelopmentFrom the repository root:
If exported core types changed, Package the VS Code extensionFrom this directory:
The project bundles the extension and webview before creating the After packaging, manually smoke-test:
Architecture notesThe extension is one host for the shared Communication occurs through the shared Important constraints:
SourceRepository: |