@sbtools/plugin-depgraph

Generate interactive HTML and Mermaid graphs of Supabase database object dependencies.

3|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/bazokhan/supabase-tools --skill sbtools-plugin-depgraph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: @sbtools/plugin-depgraph
Source: https://github.com/bazokhan/supabase-tools/tree/main/packages/plugin-depgraph
Command: npx skills add https://github.com/bazokhan/supabase-tools --skill sbtools-plugin-depgraph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This tool helps developers understand complex backend dependencies in Supabase projects by turning object relationships into a clear, navigable graph that maps tables, functions, triggers, policies, views, enums, and types.

Core Features & Use Cases

  • Interactive HTML dependency graph for exploring relationships across database objects
  • Mermaid diagram export for documentation and sharing
  • Atlas data integration to surface accurate edges and node counts
  • Dashboard-ready insights with quick relationship counts and summaries
  • Works locally with atlas data generated by sbt generate-atlas (no running database required)

Quick Start

Install the plugin, generate atlas data with sbt generate-atlas, then run sbt depgraph to produce HTML and Mermaid graphs.

Frequently Asked Questions about @sbtools/plugin-depgraph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize Supabase database dependencies in a navigable graph?

You can visualize Supabase database dependencies by mapping tables, functions, triggers, policies, views, enums, and types into an interactive HTML graph and Mermaid diagram using generated atlas data.

What is the best way to map backend object relationships for Supabase projects?

Mapping backend object relationships for Supabase projects is best handled by generating atlas data locally and converting foreign keys, usage, and references into navigable Mermaid diagrams and interactive HTML graphs.

Do I need a running database to generate a Supabase dependency graph?

You do not need a running database to generate a Supabase dependency graph; the visualization works locally using atlas data produced by the sbt generate-atlas command.

Can I export Supabase dependency graphs as Mermaid diagrams for documentation?

You can export Supabase dependency graphs as Mermaid diagrams for documentation and sharing, alongside an interactive HTML graph that maps database objects and their relationship counts.

How does atlas data establish foreign key relationships in a Supabase dependency graph?

Atlas data establishes foreign key relationships in a Supabase dependency graph by extracting object usage and references, optionally including TypeScript type references, to build accurate edges and node counts.