# kushankurdas10/sightline architecture

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

- Interactive diagram: https://gitdiagram.com/kushankurdas10/sightline
- Repository: https://github.com/kushankurdas10/sightline

## Overview

SightLine is an accessibility and repository inspector. Its apparent user-to-result workflow accepts a website or GitHub repository target, captures or fetches target data, runs measured checks, optionally produces and verifies AI findings, and aggregates an analysis result. A web interface and background-job layer provide a second entry surface alongside the CLI. The available README contains only the product name, and most implementation excerpts are docstrings; dashed links mark inferred, unverified relationships rather than inspected calls.

Main entry points: [`sightline/pipeline.py`](https://github.com/kushankurdas10/sightline/blob/main/sightline/pipeline.py) (Analysis pipelines), [`sightline/gemma_review.py`](https://github.com/kushankurdas10/sightline/blob/main/sightline/gemma_review.py) (AI review), [`sightline/cli.py`](https://github.com/kushankurdas10/sightline/blob/main/sightline/cli.py) (CLI), [`web/app.py`](https://github.com/kushankurdas10/sightline/blob/main/web/app.py) (Web server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_cli["CLI<br/>[cli.py]"]
  node_webapp["Web server<br/>[app.py]"]
  node_jobs["Background jobs<br/>[jobs.py]"]
end

subgraph group_site["Website analysis"]
  node_capture["Page capture<br/>[capture.py]"]
  node_sitechecks["Site checks<br/>[checks.py]"]
  node_marks["Image annotations<br/>[marks.py]"]
  node_verify["Evidence verification<br/>[verify.py]"]
end

subgraph group_repo["Repository analysis"]
  node_github["GitHub fetch<br/>[github.py]"]
  node_repochecks["Repository checks<br/>[checks.py]"]
end

subgraph group_review["Findings and review"]
  node_gemma["Gemma client<br/>[gemma.py]"]
  node_reviewgen["AI review<br/>[gemma_review.py]"]
  node_issues["Issue handling<br/>[issues.py]"]
  node_merge["Finding aggregation<br/>[merge.py]"]
end

subgraph group_core["Shared analysis core"]
  node_pipeline["Analysis pipelines<br/>[pipeline.py]"]
  node_config["Settings<br/>[config.py]"]
  node_models["Analysis models<br/>[models.py]"]
  node_result["Analysis result<br/>[models.py]"]
end

node_user(("User"))
node_target(("Website or repository"))

node_user -.->|"submits target"| node_cli
node_user -.->|"submits target"| node_webapp
node_webapp -.->|"starts job"| node_jobs
node_cli -.->|"runs analysis"| node_pipeline
node_jobs -.->|"runs analysis"| node_pipeline
node_pipeline -.->|"uses settings"| node_config
node_pipeline -.->|"captures pages"| node_capture
node_capture -.->|"reads pages"| node_target
node_pipeline -.->|"checks pages"| node_sitechecks
node_pipeline -.->|"annotates images"| node_marks
node_pipeline -.->|"fetches repository"| node_github
node_github -.->|"reads repository"| node_target
node_pipeline -.->|"checks repository"| node_repochecks
node_pipeline -.->|"generates review"| node_reviewgen
node_reviewgen -.->|"uses model"| node_gemma
node_reviewgen -.->|"verifies evidence"| node_verify
node_pipeline -.->|"handles issues"| node_issues
node_pipeline -.->|"combines findings"| node_merge
node_pipeline -.->|"uses data models"| node_models
node_pipeline -.->|"produces result"| node_result
node_result -.->|"returns findings"| node_user

click node_cli "https://github.com/kushankurdas10/sightline/blob/main/sightline/cli.py"
click node_webapp "https://github.com/kushankurdas10/sightline/blob/main/web/app.py"
click node_jobs "https://github.com/kushankurdas10/sightline/blob/main/web/jobs.py"
click node_pipeline "https://github.com/kushankurdas10/sightline/blob/main/sightline/pipeline.py"
click node_config "https://github.com/kushankurdas10/sightline/blob/main/sightline/config.py"
click node_models "https://github.com/kushankurdas10/sightline/blob/main/sightline/models.py"
click node_capture "https://github.com/kushankurdas10/sightline/blob/main/sightline/site/capture.py"
click node_sitechecks "https://github.com/kushankurdas10/sightline/blob/main/sightline/site/checks.py"
click node_marks "https://github.com/kushankurdas10/sightline/blob/main/sightline/site/marks.py"
click node_verify "https://github.com/kushankurdas10/sightline/blob/main/sightline/site/verify.py"
click node_github "https://github.com/kushankurdas10/sightline/blob/main/sightline/repo/github.py"
click node_repochecks "https://github.com/kushankurdas10/sightline/blob/main/sightline/repo/checks.py"
click node_gemma "https://github.com/kushankurdas10/sightline/blob/main/sightline/gemma.py"
click node_reviewgen "https://github.com/kushankurdas10/sightline/blob/main/sightline/gemma_review.py"
click node_issues "https://github.com/kushankurdas10/sightline/blob/main/sightline/issues.py"
click node_merge "https://github.com/kushankurdas10/sightline/blob/main/sightline/merge.py"
click node_result "https://github.com/kushankurdas10/sightline/blob/main/sightline/models.py"

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_cli,node_webapp,node_jobs,node_user toneBlue
class node_capture,node_sitechecks,node_marks,node_verify toneAmber
class node_github,node_repochecks toneMint
class node_gemma,node_reviewgen,node_issues,node_merge toneRose
class node_pipeline,node_config,node_models,node_result,node_target toneIndigo
```

## Components

### User interfaces

- [CLI](https://github.com/kushankurdas10/sightline/blob/main/sightline/cli.py): `sightline/cli.py`
- [Web server](https://github.com/kushankurdas10/sightline/blob/main/web/app.py): `web/app.py`
- [Background jobs](https://github.com/kushankurdas10/sightline/blob/main/web/jobs.py): `web/jobs.py`

### Website analysis

- [Page capture](https://github.com/kushankurdas10/sightline/blob/main/sightline/site/capture.py): `sightline/site/capture.py`
- [Site checks](https://github.com/kushankurdas10/sightline/blob/main/sightline/site/checks.py): `sightline/site/checks.py`
- [Image annotations](https://github.com/kushankurdas10/sightline/blob/main/sightline/site/marks.py): `sightline/site/marks.py`
- [Evidence verification](https://github.com/kushankurdas10/sightline/blob/main/sightline/site/verify.py): `sightline/site/verify.py`

### Repository analysis

- [GitHub fetch](https://github.com/kushankurdas10/sightline/blob/main/sightline/repo/github.py): `sightline/repo/github.py`
- [Repository checks](https://github.com/kushankurdas10/sightline/blob/main/sightline/repo/checks.py): `sightline/repo/checks.py`

### Findings and review

- [Gemma client](https://github.com/kushankurdas10/sightline/blob/main/sightline/gemma.py): `sightline/gemma.py`
- [AI review](https://github.com/kushankurdas10/sightline/blob/main/sightline/gemma_review.py): `sightline/gemma_review.py`
- [Issue handling](https://github.com/kushankurdas10/sightline/blob/main/sightline/issues.py): `sightline/issues.py`
- [Finding aggregation](https://github.com/kushankurdas10/sightline/blob/main/sightline/merge.py): `sightline/merge.py`

### Shared analysis core

- [Analysis pipelines](https://github.com/kushankurdas10/sightline/blob/main/sightline/pipeline.py): `sightline/pipeline.py`
- [Settings](https://github.com/kushankurdas10/sightline/blob/main/sightline/config.py): `sightline/config.py`
- [Analysis models](https://github.com/kushankurdas10/sightline/blob/main/sightline/models.py): `sightline/models.py`
- [Analysis result](https://github.com/kushankurdas10/sightline/blob/main/sightline/models.py): `sightline/models.py`

### Other components

- **User**
- **Website or repository**

## Connections

- User → CLI: submits target
- User → Web server: submits target
- Web server → Background jobs: starts job
- CLI → Analysis pipelines: runs analysis
- Background jobs → Analysis pipelines: runs analysis
- Analysis pipelines → Settings: uses settings
- Analysis pipelines → Page capture: captures pages
- Page capture → Website or repository: reads pages
- Analysis pipelines → Site checks: checks pages
- Analysis pipelines → Image annotations: annotates images
- Analysis pipelines → GitHub fetch: fetches repository
- GitHub fetch → Website or repository: reads repository
- Analysis pipelines → Repository checks: checks repository
- Analysis pipelines → AI review: generates review
- AI review → Gemma client: uses model
- AI review → Evidence verification: verifies evidence
- Analysis pipelines → Issue handling: handles issues
- Analysis pipelines → Finding aggregation: combines findings
- Analysis pipelines → Analysis models: uses data models
- Analysis pipelines → Analysis result: produces result
- Analysis result → User: returns findings
