projectalby last reviewed 2026-05-21

Graphify audit โ€” alby-studio (Phase 3 expansion #1)

Context

First Phase 3 expansion of the graphify quarterly audit pattern adopted in graphify-trial-2026-05-20. alby-studio was the priority target (62 source files, the auth + storefront + Stripe Connect coupling that benefits from graph analysis).

Detail

Run summary

MetricValue
Files extracted149
Words analyzed~54,076
Nodes783
Edges1,427
Communities53 (40 shown, 13 thin omitted)
Extraction quality100% extracted / 0% inferred / 0% ambiguous
Token cost$0 (AST-only)
Wall-clock time<10 sec
Output (gitignored)alby-studio/graphify-out/{graph.json, graph.html, GRAPH_REPORT.md}

Top god-nodes

#SymbolEdgesSignificance
1cn()88Tailwind class merger โ€” every shadcn-style component touches it. Class-merging refactor impact map.
2Button()34Heavily reused UI primitive
3authOptions30NextAuth config โ€” auth surface centralization
4Card() / CardContent() / CardHeader() / CardTitle()29 / 29 / 26 / 26shadcn Card composition
5getVendorBySlug()21THE storefront domain spine โ€” vendor lookup central
6Input()20Form input primitive
7env16Env-var access pattern

New cross-coupling facts (gate: โ‰ฅ2 needed)

  1. โœ… NEW โ€” cn() god-utility with 88 call sites. Any move away from shadcn-style class merging would touch 88 places. Quantifies refactor cost.
  1. โœ… NEW โ€” getVendorBySlug() is the storefront's spine (21 edges). Vendor-lookup-by-slug is central to alby-studio's domain. Worth a typed query interface (TS generics) so route handlers don't re-derive the lookup pattern.
  1. โœ… NEW โ€” authOptions has 30 edges โ€” NextAuth config is centralized (good) but refactor blast radius is real. Affects ~30 places if migrating to a different auth strategy (e.g., Aspire Hub OIDC consumer).
  1. ๐ŸŸก Expected: shadcn Card components dominate UI (Card + Content + Header + Title all 26-29 edges)
  1. ๐ŸŸก Expected: nanoid usage across services for IDs

Verdict

Phase 3 expansion confirms graphify's value. 3 of 5 findings genuinely new (gate โ‰ฅ2). Continue with the quarterly audit pattern.

Actionable follow-ups from this audit

Next Phase 3 targets

RepoSource filesPriority
zinga-pms31๐ŸŸก small but PMS is the largest Zinga product
MCP servers batch 1varies๐ŸŸก group of 5-8 servers for cross-server pattern detection
alby-placevaries๐ŸŸข if it's the WP storefront, may not be Python/TS-heavy enough
Aspire LLM Gateway codebase~10 files๐Ÿ”ด too small, skip

Related

๐Ÿ”— Relationships

graph LR graphify_audit_2026_05_21["graphify-audit-2026-05-21"]:::self graphify_audit_2026_05_21 --> graphify_trial_2026_05_20["graphify-trial-2026-05-20"] graphify_audit_2026_05_21 --> aios_workflow["aios-workflow"] classDef self fill:#715EE3,color:#fff,stroke:#291F50;