# danishashko/geo-aeo-tracker architecture

> Architecture diagram of the GitHub repository danishashko/geo-aeo-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/danishashko/geo-aeo-tracker
- Repository: https://github.com/danishashko/geo-aeo-tracker

## Overview

1. **Overall shape**
   This is a Next.js 16 app-router repository for an AI visibility dashboard. The architecture is split into a browser-first UI, a set of server API routes, and a small server/client library layer that isolates persistence and vendor integrations.

2. **User-facing shell**
   `app/page.tsx` renders the main dashboard, `app/demo/page.tsx` renders a standalone demo experience, and `components/sovereign-dashboard.tsx` acts as the primary shell that coordinates global app state, workspace selection, and tab navigation. The UI is organized into 13 feature tabs under `components/dashboard/tabs`.

3. **Dashboard feature boundaries**
   Each tab maps to a distinct product function: project settings, prompt management, persona fan-out, niche discovery, response browsing, analytics, citations, citation opportunities, competitor battlecards, AEO audit, SRO analysis, automation, and documentation. This is a single-product dashboard with multiple specialized analytical workflows rather than a generic CRUD app.

4. **Client-side data model and local-first storage**
   The client state model lives in `components/dashboard/types.ts` and is persisted through `lib/client/sovereign-store.ts`. The default storage path is IndexedDB, with localStorage used as a lightweight cache. This makes the app usable offline and keeps data on-device by default.

5. **Optional cloud sync boundary**
   Cloud persistence is not direct-to-Supabase from the browser. When enabled, the client calls `GET/PUT/DELETE /api/state`, and the server route proxies to Supabase using a service-role key. The `supabase/migrations/001_kv_store.sql` migration creates the backing `kv_store` table. This keeps the Supabase credential entirely server-side and makes cloud sync an opt-in extension of the local store.

6. **AI response collection pipeline**
   The main tracking workflow starts in the browser, then posts prompts to `/api/scrape`, which uses Bright Data AI Scraper datasets to query multiple AI providers. The README identifies six tracked models: ChatGPT, Perplexity, Gemini, Copilot, Google AI Overview, and Grok. The result is normalized response data used for visibility scoring and response browsing.

7. **Analysis and synthesis routes**
   `/api/analyze` performs OpenRouter-backed LLM analysis and is the only route explicitly marked Edge runtime, which reduces latency for lighter inference tasks. `/api/sro-analyze` performs the final SRO synthesis step, combining collected evidence into scores and recommendations. `/api/site-context` provides homepage context extraction for analysis workflows, also backed by OpenRouter.

8. **SRO pipeline as a multi-stage server workflow**
   The SRO feature is the most complex subsystem. It chains external data sources and internal synthesis: Gemini Grounding for search-based grounding, Bright Data SERP for search results, Bright Data Web Unlocker for page retrieval, site context extraction, and then a final LLM analysis step. Supporting code lives in `lib/server/gemini-grounding.ts`, `serp.ts`, `unlocker.ts`, `brightdata-platforms.ts`, and `openrouter-sro.ts`, with type definitions in `sro-types.ts`.

9. **AEO audit and competitive intelligence**
   `/api/audit` checks site readiness signals such as `llms.txt`, schema, BLUF density, and heading structure. Separate routes and tabs support competitor-focused outputs like battlecards, citation opportunities, and platform citation polling. These features share a pattern: server-side collection, client-side comparison/visualization, and AI-generated summaries.

10. **Runtime and deployment boundaries**
   The codebase distinguishes between Node and Edge execution where it matters: most scraping and storage routes run on Node, while `/api/analyze` is Edge for faster global inference. Deployment targets Vercel, and `vercel.json` plus `proxy.ts` indicate production routing/custom request handling. The app is designed to work in demo-only mode or full live mode via environment variables.

11. **External services that define the architecture**
   Bright Data is the primary data acquisition layer for AI scrapers, SERP, and unlocker workflows. OpenRouter provides general LLM inference, Google Gemini powers grounding, and Supabase is only an optional persistence backend. These services are not interchangeable details; they define the app’s data flow and cost model.

12. **Supporting tooling**
   `scripts/test-scraper.js` and `scripts/test-pillar.js` provide validation for data collection and feature behavior. `lib/demo-data.ts` supplies deterministic sample content for the demo path. Together with the README’s env-based setup, this shows a project built around reproducible local development with optional production integrations.

Main entry points: [`components/sovereign-dashboard.tsx`](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/sovereign-dashboard.tsx) (Dashboard shell), [`app/api/sro-analyze/route.ts`](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/sro-analyze/route.ts) (SRO synth), [`lib/server/openrouter-sro.ts`](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/openrouter-sro.ts) (SRO LLM), [`app/demo/page.tsx`](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/demo/page.tsx) (Demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["UI shell"]
  node_app_page["Home<br/>next page<br/>[page.tsx]"]
  node_app_demo_page["Demo<br/>next page<br/>[page.tsx]"]
  node_sovereign_dashboard["Dashboard shell<br/>client shell"]
  node_dashboard_types["Dashboard types<br/>client model<br/>[types.ts]"]
end

subgraph group_features["Dashboard features"]
  node_project_settings_tab["Project settings<br/>feature tab"]
  node_prompt_hub_tab["Prompt hub<br/>feature tab<br/>[prompt-hub-tab.tsx]"]
  node_fan_out_tab["Fan-out<br/>feature tab<br/>[fan-out-tab.tsx]"]
  node_visibility_analytics_tab["Analytics<br/>feature tab"]
  node_aeo_audit_tab["AEO audit<br/>feature tab<br/>[aeo-audit-tab.tsx]"]
  node_sro_analysis_tab["SRO analysis<br/>feature tab"]
  node_battlecards_tab["Battlecards<br/>feature tab"]
  node_citation_opportunities_tab["Citations<br/>feature tab"]
  node_automation_tab["Automation<br/>feature tab"]
  node_documentation_tab["Docs<br/>feature tab"]
end

subgraph group_api["Server API"]
  node_state_api["State API<br/>route handler<br/>[route.ts]"]
  node_scrape_api["Scrape API<br/>route handler<br/>[route.ts]"]
  node_analyze_api["Analyze API<br/>edge route<br/>[route.ts]"]
  node_site_context_api["Site context<br/>route handler<br/>[route.ts]"]
  node_sro_analyze_api["SRO synth<br/>route handler<br/>[route.ts]"]
  node_audit_api["Audit API<br/>route handler<br/>[route.ts]"]
  node_serp_api["SERP API<br/>route handler<br/>[route.ts]"]
  node_unlocker_api["Unlocker API<br/>route handler<br/>[route.ts]"]
  node_brightdata_platforms_api["Platforms API<br/>route handler<br/>[route.ts]"]
end

subgraph group_server["Server libs"]
  node_kv_store[("KV store<br/>persistence adapter<br/>[kv-store.ts]")]
  node_supabase[("Supabase<br/>external db<br/>[supabase.ts]")]
  node_sovereign_store[("Local store<br/>client persistence<br/>[sovereign-store.ts]")]
  node_cloud_mode["Cloud mode<br/>client bridge<br/>[cloud-mode.ts]"]
  node_brightdata_scraper["Scraper<br/>server integration"]
  node_brightdata_platforms["Platforms<br/>server integration"]
  node_gemini_grounding["Grounding<br/>server integration"]
  node_openrouter_sro["SRO LLM<br/>server integration<br/>[openrouter-sro.ts]"]
  node_serp["SERP utils<br/>server integration<br/>[serp.ts]"]
  node_unlocker["Unlocker utils<br/>server integration<br/>[unlocker.ts]"]
  node_sro_types["SRO types<br/>server types<br/>[sro-types.ts]"]
end

node_app_page -->|"renders"| node_sovereign_dashboard
node_app_demo_page -->|"renders"| node_sovereign_dashboard
node_app_demo_page -->|"uses model"| node_dashboard_types
node_sovereign_dashboard -->|"reads state"| node_dashboard_types
node_sovereign_dashboard -->|"navigates"| node_project_settings_tab
node_sovereign_dashboard -->|"navigates"| node_prompt_hub_tab
node_sovereign_dashboard -->|"navigates"| node_fan_out_tab
node_sovereign_dashboard -->|"navigates"| node_visibility_analytics_tab
node_sovereign_dashboard -->|"navigates"| node_aeo_audit_tab
node_sovereign_dashboard -->|"navigates"| node_sro_analysis_tab
node_sovereign_dashboard -->|"navigates"| node_battlecards_tab
node_sovereign_dashboard -->|"navigates"| node_citation_opportunities_tab
node_sovereign_dashboard -->|"navigates"| node_automation_tab
node_sovereign_dashboard -->|"navigates"| node_documentation_tab
node_cloud_mode -->|"syncs"| node_sovereign_store
node_cloud_mode -->|"calls"| node_state_api
node_state_api -->|"persists"| node_kv_store
node_kv_store -->|"backs"| node_supabase
node_scrape_api -->|"collects"| node_brightdata_scraper
node_brightdata_scraper -->|"uses"| node_brightdata_platforms
node_analyze_api -->|"analyzes"| node_openrouter_sro
node_site_context_api -->|"extracts"| node_openrouter_sro
node_sro_analyze_api -->|"grounds"| node_gemini_grounding
node_sro_analyze_api -->|"queries"| node_serp
node_sro_analyze_api -->|"retrieves"| node_unlocker
node_sro_analyze_api -->|"enriches"| node_site_context_api
node_sro_analyze_api -->|"synthesizes"| node_openrouter_sro
node_sro_analyze_api -->|"types"| node_sro_types
node_audit_api -->|"summarizes"| node_openrouter_sro
node_serp_api -->|"serves"| node_serp
node_unlocker_api -->|"serves"| node_unlocker
node_brightdata_platforms_api -->|"serves"| node_brightdata_platforms

click node_app_page "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/page.tsx"
click node_app_demo_page "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/demo/page.tsx"
click node_sovereign_dashboard "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/sovereign-dashboard.tsx"
click node_dashboard_types "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/types.ts"
click node_project_settings_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/project-settings-tab.tsx"
click node_prompt_hub_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/prompt-hub-tab.tsx"
click node_fan_out_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/fan-out-tab.tsx"
click node_visibility_analytics_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/visibility-analytics-tab.tsx"
click node_aeo_audit_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/aeo-audit-tab.tsx"
click node_sro_analysis_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/sro-analysis-tab.tsx"
click node_battlecards_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/battlecards-tab.tsx"
click node_citation_opportunities_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/citation-opportunities-tab.tsx"
click node_automation_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/automation-tab-v2.tsx"
click node_documentation_tab "https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/documentation-tab.tsx"
click node_state_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/state/route.ts"
click node_scrape_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/scrape/route.ts"
click node_analyze_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/analyze/route.ts"
click node_site_context_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/site-context/route.ts"
click node_sro_analyze_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/sro-analyze/route.ts"
click node_audit_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/audit/route.ts"
click node_serp_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/serp/route.ts"
click node_unlocker_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/unlocker/route.ts"
click node_brightdata_platforms_api "https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/brightdata-platforms/route.ts"
click node_kv_store "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/kv-store.ts"
click node_supabase "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/supabase.ts"
click node_sovereign_store "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/client/sovereign-store.ts"
click node_cloud_mode "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/client/cloud-mode.ts"
click node_brightdata_scraper "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/brightdata-scraper.ts"
click node_brightdata_platforms "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/brightdata-platforms.ts"
click node_gemini_grounding "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/gemini-grounding.ts"
click node_openrouter_sro "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/openrouter-sro.ts"
click node_serp "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/serp.ts"
click node_unlocker "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/unlocker.ts"
click node_sro_types "https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/sro-types.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_page,node_app_demo_page,node_sovereign_dashboard,node_dashboard_types toneBlue
class node_project_settings_tab,node_prompt_hub_tab,node_fan_out_tab,node_visibility_analytics_tab,node_aeo_audit_tab,node_sro_analysis_tab,node_battlecards_tab,node_citation_opportunities_tab,node_automation_tab,node_documentation_tab toneAmber
class node_state_api,node_scrape_api,node_analyze_api,node_site_context_api,node_sro_analyze_api,node_audit_api,node_serp_api,node_unlocker_api,node_brightdata_platforms_api toneMint
class node_kv_store,node_supabase,node_sovereign_store,node_cloud_mode,node_brightdata_scraper,node_brightdata_platforms,node_gemini_grounding,node_openrouter_sro,node_serp,node_unlocker,node_sro_types toneRose
```

## Components

### UI shell

Browser-first app entry points and dashboard coordination.

- [Home](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/page.tsx): next page · Main dashboard entry point. · `app/page.tsx`
- [Demo](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/demo/page.tsx): next page · Standalone demo experience. · `app/demo/page.tsx`
- [Dashboard shell](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/sovereign-dashboard.tsx): client shell · Coordinates workspace state, tab navigation, and app-level UX. · `components/sovereign-dashboard.tsx`
- [Dashboard types](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/types.ts): client model · Shared client-side state and domain types. · `components/dashboard/types.ts`

### Dashboard features

Major analytical workflows exposed as tabs.

- [Project settings](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/project-settings-tab.tsx): feature tab · Workspace and configuration controls. · `components/dashboard/tabs/project-settings-tab.tsx`
- [Prompt hub](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/prompt-hub-tab.tsx): feature tab · Prompt management and orchestration. · `components/dashboard/tabs/prompt-hub-tab.tsx`
- [Fan-out](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/fan-out-tab.tsx): feature tab · Persona and response fan-out workflow. · `components/dashboard/tabs/fan-out-tab.tsx`
- [Analytics](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/visibility-analytics-tab.tsx): feature tab · Visibility scoring and trends. · `components/dashboard/tabs/visibility-analytics-tab.tsx`
- [AEO audit](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/aeo-audit-tab.tsx): feature tab · Readiness checks for AI exposure. · `components/dashboard/tabs/aeo-audit-tab.tsx`
- [SRO analysis](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/sro-analysis-tab.tsx): feature tab · Synthesis and recommendation workflow. · `components/dashboard/tabs/sro-analysis-tab.tsx`
- [Battlecards](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/battlecards-tab.tsx): feature tab · Competitor comparison outputs. · `components/dashboard/tabs/battlecards-tab.tsx`
- [Citations](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/citation-opportunities-tab.tsx): feature tab · Citation opportunity discovery. · `components/dashboard/tabs/citation-opportunities-tab.tsx`
- [Automation](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/automation-tab-v2.tsx): feature tab · Scheduled and repeated workflows. · `components/dashboard/tabs/automation-tab-v2.tsx`
- [Docs](https://github.com/danishashko/geo-aeo-tracker/blob/main/components/dashboard/tabs/documentation-tab.tsx): feature tab · Product guidance and usage docs. · `components/dashboard/tabs/documentation-tab.tsx`

### Server API

Route handlers for collection, analysis, and state sync.

- [State API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/state/route.ts): route handler · Optional cloud sync for local state. · `app/api/state/route.ts`
- [Scrape API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/scrape/route.ts): route handler · Collects tracked model responses from external providers. · `app/api/scrape/route.ts`
- [Analyze API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/analyze/route.ts): edge route · Fast OpenRouter-backed analysis step. · `app/api/analyze/route.ts`
- [Site context](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/site-context/route.ts): route handler · Extracts homepage context for analysis. · `app/api/site-context/route.ts`
- [SRO synth](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/sro-analyze/route.ts): route handler · Final synthesis for SRO scoring and recommendations. · `app/api/sro-analyze/route.ts`
- [Audit API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/audit/route.ts): route handler · Checks schema, headings, BLUF, and llms.txt signals. · `app/api/audit/route.ts`
- [SERP API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/serp/route.ts): route handler · Search results collection for grounding workflows. · `app/api/serp/route.ts`
- [Unlocker API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/unlocker/route.ts): route handler · Retrieves web pages for evidence gathering. · `app/api/unlocker/route.ts`
- [Platforms API](https://github.com/danishashko/geo-aeo-tracker/blob/main/app/api/brightdata-platforms/route.ts): route handler · Bright Data platform lookups and polling. · `app/api/brightdata-platforms/route.ts`

### Server libs

Persistence, scraping, synthesis, and vendor integration code.

- [KV store](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/kv-store.ts): persistence adapter · Server-side backing store for optional synced state. · `lib/server/kv-store.ts`
- [Supabase](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/supabase.ts): external db · Optional cloud persistence backend. · `lib/server/supabase.ts`
- [Local store](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/client/sovereign-store.ts): client persistence · IndexedDB-first local state with localStorage cache. · `lib/client/sovereign-store.ts`
- [Cloud mode](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/client/cloud-mode.ts): client bridge · Client-side toggle and sync control for cloud persistence. · `lib/client/cloud-mode.ts`
- [Scraper](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/brightdata-scraper.ts): server integration · Bright Data AI Scraper dataset integration. · `lib/server/brightdata-scraper.ts`
- [Platforms](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/brightdata-platforms.ts): server integration · Bright Data platform utilities and shared config. · `lib/server/brightdata-platforms.ts`
- [Grounding](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/gemini-grounding.ts): server integration · Gemini search-grounding workflow. · `lib/server/gemini-grounding.ts`
- [SRO LLM](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/openrouter-sro.ts): server integration · OpenRouter-backed synthesis and analysis helpers. · `lib/server/openrouter-sro.ts`
- [SERP utils](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/serp.ts): server integration · Search result fetching and normalization helpers. · `lib/server/serp.ts`
- [Unlocker utils](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/unlocker.ts): server integration · Web unlock and page retrieval helpers. · `lib/server/unlocker.ts`
- [SRO types](https://github.com/danishashko/geo-aeo-tracker/blob/main/lib/server/sro-types.ts): server types · Shared types for the SRO pipeline. · `lib/server/sro-types.ts`

## Connections

- Home → Dashboard shell: renders · Main app mounts the dashboard shell.
- Demo → Dashboard shell: renders · Demo path reuses the same shell.
- Demo → Dashboard types: uses model · Demo experience is driven by the same domain state.
- Dashboard shell → Dashboard types: reads state · Shell coordinates workspace and tab state.
- Dashboard shell → Project settings: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Prompt hub: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Fan-out: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Analytics: navigates · Primary shell switches among feature tabs.
- Dashboard shell → AEO audit: navigates · Primary shell switches among feature tabs.
- Dashboard shell → SRO analysis: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Battlecards: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Citations: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Automation: navigates · Primary shell switches among feature tabs.
- Dashboard shell → Docs: navigates · Primary shell switches among feature tabs.
- Cloud mode → Local store: syncs · Cloud mode extends the local-first store.
- Cloud mode → State API: calls · Browser sync goes through the server route.
- State API → KV store: persists · Server route reads and writes stored state.
- KV store → Supabase: backs · Supabase is the optional persistence backend.
- Scrape API → Scraper: collects · Scrape route delegates external model collection.
- Scraper → Platforms: uses · Scraper depends on shared Bright Data platform utilities.
- Analyze API → SRO LLM: analyzes · Edge analysis uses OpenRouter helpers.
- Site context → SRO LLM: extracts · Context extraction is backed by the same LLM stack.
- SRO synth → Grounding: grounds · SRO synthesis starts with search grounding.
- SRO synth → SERP utils: queries · Search results are part of the evidence chain.
- SRO synth → Unlocker utils: retrieves · Page retrieval feeds the final synthesis.
- SRO synth → Site context: enriches · Context extraction is folded into the SRO pipeline.
- SRO synth → SRO LLM: synthesizes · Final scoring and recommendations are LLM-driven.
- SRO synth → SRO types: types · Shared pipeline contracts shape the workflow.
- Audit API → SRO LLM: summarizes · Audit output can be summarized with LLM support.
- SERP API → SERP utils: serves · API route exposes search collection helpers.
- Unlocker API → Unlocker utils: serves · API route exposes page retrieval helpers.
- Platforms API → Platforms: serves · API route exposes platform polling helpers.
