# storytold/photocraft-corpus architecture

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

- Interactive diagram: https://gitdiagram.com/storytold/photocraft-corpus
- Repository: https://github.com/storytold/photocraft-corpus

## Overview

PhotoCraft Corpus is a collection of Photoshop-authored PSD oracles, not an application runtime. Its main workflow is for PhotoCraft to fetch a pinned snapshot, verify its files against SHA256SUMS, then compare its PSD rendering and export behavior with the Photoshop-rendered composites. The README documents the corpus categories and consumer workflow; the generator excerpt shows Photoshop-based authoring, but its omitted sections limit claims about internal generation steps.

Main entry points: [`tools/photoshop-oracles/generate.jsx`](https://github.com/storytold/photocraft-corpus/blob/main/tools/photoshop-oracles/generate.jsx) (PSD generator), [`photoshop/adjustments`](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/adjustments) (Adjustments), [`photoshop/effects`](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/effects) (Layer effects), [`photoshop/smart-filters`](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/smart-filters) (Smart filters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Oracle authoring"]
  node_generator["PSD generator<br/>[generate.jsx]"]
end

subgraph group_assets["PSD oracle sets"]
  node_adjustments["Adjustments"]
  node_effects["Layer effects"]
  node_smartfilters["Smart filters"]
  node_text["Text cases"]
end

subgraph group_consumption["Consumer verification"]
  node_manifest["SHA256 manifest"]
  node_localcopy["Corpus copy"]
  node_comparison["Oracle comparisons"]
end

node_photoshop(("Adobe Photoshop"))
node_photocraft(("PhotoCraft"))

node_generator -->|"runs in"| node_photoshop
node_generator -->|"authors"| node_adjustments
node_generator -->|"authors"| node_effects
node_generator -->|"authors"| node_smartfilters
node_generator -->|"authors"| node_text
node_photocraft -->|"fetches pinned"| node_adjustments
node_photocraft -->|"fetches pinned"| node_effects
node_photocraft -->|"fetches pinned"| node_smartfilters
node_photocraft -->|"fetches pinned"| node_text
node_photocraft -->|"verifies against"| node_manifest
node_adjustments -->|"copied into"| node_localcopy
node_effects -->|"copied into"| node_localcopy
node_smartfilters -->|"copied into"| node_localcopy
node_text -->|"copied into"| node_localcopy
node_localcopy -->|"supplies PSDs"| node_comparison
node_photocraft -->|"compares renders"| node_comparison

click node_generator "https://github.com/storytold/photocraft-corpus/blob/main/tools/photoshop-oracles/generate.jsx"
click node_adjustments "https://github.com/storytold/photocraft-corpus/tree/main/photoshop/adjustments"
click node_effects "https://github.com/storytold/photocraft-corpus/tree/main/photoshop/effects"
click node_smartfilters "https://github.com/storytold/photocraft-corpus/tree/main/photoshop/smart-filters"
click node_text "https://github.com/storytold/photocraft-corpus/tree/main/photoshop/text"
click node_manifest "https://github.com/storytold/photocraft-corpus/blob/main/SHA256SUMS"

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_generator toneBlue
class node_adjustments,node_effects,node_smartfilters,node_text toneAmber
class node_manifest,node_localcopy,node_comparison toneMint
class node_photoshop,node_photocraft toneIndigo
```

## Components

### Oracle authoring

- [PSD generator](https://github.com/storytold/photocraft-corpus/blob/main/tools/photoshop-oracles/generate.jsx): `tools/photoshop-oracles/generate.jsx`

### PSD oracle sets

- [Adjustments](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/adjustments): `photoshop/adjustments`
- [Layer effects](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/effects): `photoshop/effects`
- [Smart filters](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/smart-filters): `photoshop/smart-filters`
- [Text cases](https://github.com/storytold/photocraft-corpus/tree/main/photoshop/text): `photoshop/text`

### Consumer verification

- [SHA256 manifest](https://github.com/storytold/photocraft-corpus/blob/main/SHA256SUMS): `SHA256SUMS`
- **Corpus copy**
- **Oracle comparisons**

### Other components

- **Adobe Photoshop**
- **PhotoCraft**

## Connections

- PSD generator → Adobe Photoshop: runs in (evidence: `README.md`)
- PSD generator → Adjustments: authors (evidence: `README.md`)
- PSD generator → Layer effects: authors (evidence: `README.md`)
- PSD generator → Smart filters: authors (evidence: `README.md`)
- PSD generator → Text cases: authors (evidence: `README.md`)
- PhotoCraft → Adjustments: fetches pinned (evidence: `README.md`)
- PhotoCraft → Layer effects: fetches pinned (evidence: `README.md`)
- PhotoCraft → Smart filters: fetches pinned (evidence: `README.md`)
- PhotoCraft → Text cases: fetches pinned (evidence: `README.md`)
- PhotoCraft → SHA256 manifest: verifies against (evidence: `README.md`)
- Adjustments → Corpus copy: copied into (evidence: `README.md`)
- Layer effects → Corpus copy: copied into (evidence: `README.md`)
- Smart filters → Corpus copy: copied into (evidence: `README.md`)
- Text cases → Corpus copy: copied into (evidence: `README.md`)
- Corpus copy → Oracle comparisons: supplies PSDs (evidence: `README.md`)
- PhotoCraft → Oracle comparisons: compares renders (evidence: `README.md`)
