.github/workflows/manual-release-brew-and-scoop.yaml → .github/workflows/release-homebrew-tap.yamldbdev
dbdev
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | Next.js |
| Detected Frameworks | Next.js; React (Vite); React; TypeScript; Rust Cargo |
| Deployable Types | API; Frontend; Database |
| Technology Stack | JavaScript/TypeScript, CI/CD |
| Default Branch | master |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:12:30 AM |
| Source Repository | Open on GitHub |
supabase/dbdev — Pipeline Categories Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
.github/workflows/manual-release-brew-and-scoop.yaml → .github/workflows/release-scoop-bucket.yaml.github/workflows/release-cli.yaml → .github/workflows/release-homebrew-tap.yaml.github/workflows/release-cli.yaml → .github/workflows/release-scoop-bucket.yamlsupabase/dbdev — Module Architecture Tree
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: supabase/dbdev
Metadata
- SHA:
4528188cdbdf4f7715eb2912caa9f0e3eb040687 - Primary Ecosystem: JavaScript/TypeScript
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 1.41
- avg_cyclomatic_complexity: 2.26
- component_count: 26
- dead_code_count: 10
- dead_code_symbols: 10 entry(ies)
- duplication_pct: 59.16
- file_complexities: 25 entry(ies)
- files_analyzed: 119
- fitness_passed: False
- fitness_violation_count: 2
- framework: Next.js
- import_edges: 100 entry(ies)
- loc: 9753
- max_cognitive_complexity: 21
- max_cyclomatic_complexity: 27
- sloc: 8400
- test_file_count: 9
Architecture: supabase/dbdev
Context
- Repository:
supabase/dbdev - SHA:
4528188cdbdf4f7715eb2912caa9f0e3eb040687 - Ecosystem: JavaScript/TypeScript
- Framework: Next.js
Building Block View
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["supabase/dbdev (26 components)"]):::atlasRoot
subgraph sg_dir_0_cli["cli (14)"]
direction TB
dir_0_cli["cli (14)"]:::atlasCategory
sub_0_0_src["src (7)"]:::atlasWorkflow
dir_0_cli --> sub_0_0_src
sub_0_1_src_commands["src/commands (7)"]:::atlasWorkflow
dir_0_cli --> sub_0_1_src_commands
end
repo_root --> dir_0_cli
subgraph sg_dir_1_website["website (11)"]
direction TB
dir_1_website["website (11)"]:::atlasCategory
sub_1_0_components["components (5)"]:::atlasWorkflow
dir_1_website --> sub_1_0_components
sub_1_1_app["app (3)"]:::atlasWorkflow
dir_1_website --> sub_1_1_app
sub_1_2_lib["lib (2)"]:::atlasWorkflow
dir_1_website --> sub_1_2_lib
sub_1_more["+1 more submodules (1)"]:::atlasMore
dir_1_website --> sub_1_more
end
repo_root --> dir_1_website
dir_2__root_["(root) (1)"]:::atlasCategory
repo_root --> dir_2__root_
Component Details
- dbdev (
package.json): MODULE - dbdev-website (
website/package.json): MODULE - RootLayout (
website/app/layout.tsx): UI_COMPONENT - API_search_route (
website/app/api/search/route.ts): API_ROUTE - Layout (
website/app/docs/layout.tsx): UI_COMPONENT - FORM_ERROR (
website/components/forms/Form.tsx): UI_COMPONENT - LOCAL_STORAGE_KEY (
website/components/themes/ThemeContext.tsx): UI_COMPONENT - DEFAULT_THEME (
website/components/themes/ThemeContext.tsx): UI_COMPONENT - ThemeContextProvider (
website/components/themes/ThemeContext.tsx): UI_COMPONENT - Toaster (
website/components/ui/toaster.tsx): UI_COMPONENT - AuthContext (
website/lib/auth.tsx): UI_COMPONENT - AuthProvider (
website/lib/auth.tsx): UI_COMPONENT - client (
cli/src/client.rs): module - config (
cli/src/config.rs): module - credential_store (
cli/src/credential_store.rs): module - main (
cli/src/main.rs): module - models (
cli/src/models.rs): module - secret (
cli/src/secret.rs): module - util (
cli/src/util.rs): module - add (
cli/src/commands/add.rs): module - install (
cli/src/commands/install.rs): module - list (
cli/src/commands/list.rs): module - login (
cli/src/commands/login.rs): module - mod (
cli/src/commands/mod.rs): module - publish (
cli/src/commands/publish.rs): module - uninstall (
cli/src/commands/uninstall.rs): module
6-Dimension Repository Scorecard
- Overall Grade:
F(54.68/100) - Technical Debt Score: 45.32
- Estimated Remediation Effort: 61.66h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 37.00 | 0.20 | avg_cc=2.26, max_cc=27, duplication=59.16%, dead_code=10 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=1326, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | B | 86.50 | 0.15 | avg_cognitive=1.41, max_cognitive=21, fitness_violations=2, oversized_files=0 |
| Pipeline Health | F | 0.00 | 0.15 | workflows=10, operational_antipatterns=26, parallel_branches=True |
| Security | F | 44.00 | 0.20 | vulnerabilities=0, secrets=2, pipeline_security_findings=1 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
Architecture Fitness & Workspace Boundaries
- [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository duplication_pct (59.16) exceeds policy threshold (15.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (27.0) exceeds policy threshold (20.0).
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 1326 | Vulnerabilities: 0 | Secrets: 2
Secret Findings (Redacted)
- [HIGH]
ATRUSS-SEC-005atcli/src/config.rs:44(api_key: "eyJh***REDACTED***".to_string(),) - [HIGH]
ATRUSS-SEC-005atcli/src/config.rs:67(api_key: "eyJh***REDACTED***".to_string(),)
Inventory Sample
anyhow1.0.102(cargo,cli/Cargo.toml)clap4.6.1(cargo,cli/Cargo.toml)dirs7.0.0(cargo,cli/Cargo.toml)futures0.3.32(cargo,cli/Cargo.toml)postgrest1.6.0(cargo,cli/Cargo.toml)rand0.10.1(cargo,cli/Cargo.toml)regex1.12.3(cargo,cli/Cargo.toml)reqwest0.13.4(cargo,cli/Cargo.toml)rpassword7.5.4(cargo,cli/Cargo.toml)serde1.0.228(cargo,cli/Cargo.toml)serde_json1.0.150(cargo,cli/Cargo.toml)sqlx0.8.6(cargo,cli/Cargo.toml)tempfile3.27.0(cargo,cli/Cargo.toml)thiserror2.0.18(cargo,cli/Cargo.toml)tokio1.52.3(cargo,cli/Cargo.toml)toml1.1.2(cargo,cli/Cargo.toml)url2.5.8(cargo,cli/Cargo.toml)uuid1.23.2(cargo,cli/Cargo.toml)@heroicons/react2.2.0(npm,website/package.json)@heroicons/react2.2.0(npm,website/pnpm-lock.yaml)@hookform/resolvers5.2.2(npm,website/package.json)@hookform/resolvers5.2.2(npm,website/pnpm-lock.yaml)@radix-ui/react-avatar1.1.11(npm,website/package.json)@radix-ui/react-avatar1.1.11(npm,website/pnpm-lock.yaml)@radix-ui/react-dialog1.1.15(npm,website/package.json)@radix-ui/react-dialog1.1.15(npm,website/pnpm-lock.yaml)@radix-ui/react-dropdown-menu2.1.16(npm,website/package.json)@radix-ui/react-dropdown-menu2.1.16(npm,website/pnpm-lock.yaml)@radix-ui/react-label2.1.8(npm,website/package.json)@radix-ui/react-label2.1.8(npm,website/pnpm-lock.yaml)- … (+1296 more dependencies)
Section 7: Code-to-Cloud Deployment Traceability
flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_cli["cli"]:::atlasCategory
mod_website["website"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_cli_Cargo_toml["cli/Cargo.toml"]:::atlasWorkflow
art_website_coverage_lcov_info["website/coverage/lcov.info"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_cli_yaml_build["cli.yaml#build"]:::atlasJob
job_release_cli_yaml_build_linux["release-cli.yaml#build-linux"]:::atlasJob
job_release_cli_yaml_build_macos["release-cli.yaml#build-macos"]:::atlasJob
job_release_cli_yaml_build_windows["release-cli.yaml#build-windows"]:::atlasJob
job_release_cli_yaml_create_release["release-cli.yaml#create-release"]:::atlasJob
job_update_supabase_js_yml_update_supabase_js["update-supabase-js.yml#update-supabase-js"]:::atlasJob
job_website_tests_yaml_test["website-tests.yaml#test"]:::atlasJob
end
mod_cli -->|BUILT_BY| job_cli_yaml_build
mod_cli -->|DEPLOYED_BY| job_release_cli_yaml_build_linux
mod_cli -->|DEPLOYED_BY| job_release_cli_yaml_build_macos
mod_cli -->|DEPLOYED_BY| job_release_cli_yaml_build_windows
mod_cli -->|DEPLOYED_BY| job_release_cli_yaml_create_release
mod_cli -->|PACKAGED_BY| art_cli_Cargo_toml
mod_website -->|BUILT_BY| job_update_supabase_js_yml_update_supabase_js
mod_website -->|BUILT_BY| job_website_tests_yaml_test
mod_website -->|PACKAGED_BY| art_website_coverage_lcov_info
cli(code_module) —[BUILT_BY]—>cli.yaml#build(ci_job)cli(code_module) —[DEPLOYED_BY]—>release-cli.yaml#build-linux(ci_job)cli(code_module) —[DEPLOYED_BY]—>release-cli.yaml#build-macos(ci_job)cli(code_module) —[DEPLOYED_BY]—>release-cli.yaml#build-windows(ci_job)cli(code_module) —[DEPLOYED_BY]—>release-cli.yaml#create-release(ci_job)cli(code_module) —[PACKAGED_BY]—>cli/Cargo.toml(container)website(code_module) —[BUILT_BY]—>update-supabase-js.yml#update-supabase-js(ci_job)website(code_module) —[BUILT_BY]—>website-tests.yaml#test(ci_job)website(code_module) —[PACKAGED_BY]—>website/coverage/lcov.info(container)
CI/CD Pipeline Topology
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["supabase/dbdev (10 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (5 workflows · 5 jobs)"]
direction TB
subgraph sg_wf_0_CLI["CLI (1 jobs)"]
direction TB
wf_0_CLI(["Trigger: CLI"]):::atlasWorkflow
job_0_build["build"]:::atlasJob
wf_0_CLI --> job_0_build
end
pipeline_root --> wf_0_CLI
subgraph sg_wf_2_pgTAP_Tests["pgTAP Tests (1 jobs)"]
direction TB
wf_2_pgTAP_Tests(["Trigger: pgTAP Tests"]):::atlasWorkflow
job_2_build["build"]:::atlasJob
wf_2_pgTAP_Tests --> job_2_build
end
pipeline_root --> wf_2_pgTAP_Tests
subgraph sg_wf_3_pre_commit_hooks["pre-commit hooks (1 jobs)"]
direction TB
wf_3_pre_commit_hooks(["Trigger: pre-commit hooks"]):::atlasWorkflow
job_3_build["build"]:::atlasJob
wf_3_pre_commit_hooks --> job_3_build
end
pipeline_root --> wf_3_pre_commit_hooks
subgraph sg_wf_4_Check_Website_Code_Formatting_with_Prettier["Check Website Code Formatting with Prettier (1 jobs)"]
direction TB
wf_4_Check_Website_Code_Formatting_with_Prettier(["Trigger: Check Website Code Formatting with Prettier"]):::atlasWorkflow
job_4_check_prettier["check-prettier"]:::atlasJob
wf_4_Check_Website_Code_Formatting_with_Prettier --> job_4_check_prettier
end
pipeline_root --> wf_4_Check_Website_Code_Formatting_with_Prettier
subgraph sg_wf_9_Website_Tests["Website Tests (1 jobs)"]
direction TB
wf_9_Website_Tests(["Trigger: Website Tests"]):::atlasWorkflow
job_9_test["test"]:::atlasJob
wf_9_Website_Tests --> job_9_test
end
pipeline_root --> wf_9_Website_Tests
end
subgraph sg_grp_1_Release___Deploy["Release & Deploy (4 workflows · 10 jobs)"]
direction TB
subgraph sg_wf_1_Release_CLI_on_Homebrew_and_Scoop["Release CLI on Homebrew and Scoop (2 jobs)"]
direction TB
wf_1_Release_CLI_on_Homebrew_and_Scoop(["Trigger: Release CLI on Homebrew and Scoop"]):::atlasWorkflow
job_1_call_release_homebrew_tap["call-release-homebrew-tap"]:::atlasJob
job_1_call_release_scoop_bucket["call-release-scoop-bucket"]:::atlasJob
wf_1_Release_CLI_on_Homebrew_and_Scoop --> job_1_call_release_homebrew_tap
wf_1_Release_CLI_on_Homebrew_and_Scoop --> job_1_call_release_scoop_bucket
end
pipeline_root --> wf_1_Release_CLI_on_Homebrew_and_Scoop
subgraph sg_wf_5_Release_CLI["Release CLI (6 jobs)"]
direction TB
wf_5_Release_CLI(["Trigger: Release CLI"]):::atlasWorkflow
job_5_create_release["create-release"]:::atlasJob
job_5_build_linux["build-linux"]:::atlasJob
job_5_build_macos["build-macos"]:::atlasJob
wf_5_Release_CLI --> job_5_create_release
job_5_create_release --> job_5_build_linux
job_5_create_release --> job_5_build_macos
end
pipeline_root --> wf_5_Release_CLI
subgraph sg_wf_6_Release_Homebrew_Tap["Release Homebrew Tap (1 jobs)"]
direction TB
wf_6_Release_Homebrew_Tap(["Trigger: Release Homebrew Tap"]):::atlasWorkflow
job_6_release["release"]:::atlasJob
wf_6_Release_Homebrew_Tap --> job_6_release
end
pipeline_root --> wf_6_Release_Homebrew_Tap
subgraph sg_wf_7_Release_Scoop_Bucket["Release Scoop Bucket (1 jobs)"]
direction TB
wf_7_Release_Scoop_Bucket(["Trigger: Release Scoop Bucket"]):::atlasWorkflow
job_7_release["release"]:::atlasJob
wf_7_Release_Scoop_Bucket --> job_7_release
end
pipeline_root --> wf_7_Release_Scoop_Bucket
end
subgraph sg_grp_2_Scheduled___Manual["Scheduled & Manual (1 workflows · 1 jobs)"]
direction TB
subgraph sg_wf_8_Update__supabase_supabase_js["Update @supabase/supabase-js (1 jobs)"]
direction TB
wf_8_Update__supabase_supabase_js(["Trigger: Update @supabase/supabase-js"]):::atlasWorkflow
job_8_update_supabase_js["update-supabase-js"]:::atlasJob
wf_8_Update__supabase_supabase_js --> job_8_update_supabase_js
end
pipeline_root --> wf_8_Update__supabase_supabase_js
end6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=2.26, max_cc=27, duplication=59.16%, dead_code=10
Security
Weight 20%vulnerabilities=0, secrets=2, pipeline_security_findings=1
Maintainability
Weight 15%avg_cognitive=1.41, max_cognitive=21, fitness_violations=2, oversized_files=0
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%dependencies=1326, outdated=0, vulnerable=0, has_lockfile=True
Pipeline Health
Weight 15%workflows=10, operational_antipatterns=26, parallel_branches=True
Module Complexity & Quality Heatmap
Unreferenced / Dead Code Symbols Preview (10)
awebsite/components/ui/markdown.tsx:51pwebsite/components/ui/markdown.tsx:54liwebsite/components/ui/markdown.tsx:57strongwebsite/components/ui/markdown.tsx:60h1website/components/ui/markdown.tsx:63h2website/components/ui/markdown.tsx:66h3website/components/ui/markdown.tsx:69observewebsite/vitest.setup.ts:20unobservewebsite/vitest.setup.ts:21disconnectwebsite/vitest.setup.ts:22Architectural Fitness Rules
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDwebsite/pages/[handle]/_/edit.tsx:1Repository duplication_pct (59.16) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDwebsite/pages/[handle]/_/edit.tsx:1Repository max_cyclomatic_complexity (27.0) exceeds policy threshold (20.0).
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 1326 parsed dependencies.
Redacted Secret Findings
ATRUSS-SEC-005cli/src/config.rs:44High-entropy credential candidate (H=5.49 > 4.5) detected.
api_key: "eyJh***REDACTED***".to_string(),ATRUSS-SEC-005cli/src/config.rs:67High-entropy credential candidate (H=5.52 > 4.5) detected.
api_key: "eyJh***REDACTED***".to_string(),Code-to-Cloud & Workspace Packages
Workspace Packages
Single-package repository or no monorepo workspace manifests.