# fish2018/yprompt architecture

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

- Interactive diagram: https://gitdiagram.com/fish2018/yprompt
- Repository: https://github.com/fish2018/yprompt

## Overview

YPrompt is a prompt-engineering application whose main workflow uses AI-guided conversation to elicit requirements and generate a professional system prompt, then supports optimization, comparison, version history, and interactive practice. A documented experimental image workflow covers conversational image creation and editing, prompt translation and optimization, and image analysis. The visible tree contains no application source files, so component paths and implementation-level call relationships cannot be verified; the graph reflects only capabilities and relationships stated in the README.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prompt_workflow["Prompt workflow"]
  node_needs_dialogue["Needs dialogue"]
  node_prompt_generation["Prompt generation"]
  node_prompt_optimization["Prompt optimization"]
  node_prompt_comparison["Effect comparison"]
  node_prompt_versions["Prompt versions"]
  node_practice["Prompt playground"]
end

subgraph group_image_workflow["Image workflow"]
  node_image_conversation["Image conversation"]
  node_image_upload["Image attachments"]
  node_image_results["Image results"]
  node_prompt_translation["Prompt translation"]
  node_image_analysis["Image analysis"]
  node_image_prompt_tools["Image prompt tools"]
end

subgraph group_accounts_data["Accounts and data"]
  node_auth["Authentication"]
  node_local_credentials["Local credentials"]
  node_database[("SQLite / MySQL")]
end

subgraph group_product_experience["Product experience"]
  node_responsive_ui["Responsive interface"]
end

node_user(("User"))
node_ai(("AI service"))
node_oauth_providers["OAuth providers"]

node_user -->|"describes needs"| node_needs_dialogue
node_needs_dialogue -->|"elicits requirements"| node_ai
node_ai -->|"generates prompt"| node_prompt_generation
node_user -->|"requests optimization"| node_prompt_optimization
node_user -->|"compares results"| node_prompt_comparison
node_user -->|"manages history"| node_prompt_versions
node_user -->|"practices prompts"| node_practice
node_user -->|"creates or edits"| node_image_conversation
node_image_conversation -->|"generates images"| node_ai
node_user -->|"uploads images"| node_image_upload
node_user -->|"reviews results"| node_image_results
node_user -->|"translates prompts"| node_prompt_translation
node_user -->|"analyzes images"| node_image_analysis
node_user -->|"optimizes prompts"| node_image_prompt_tools
node_user -->|"signs in"| node_auth
node_auth -->|"supports OAuth"| node_oauth_providers
node_auth -->|"supports login"| node_local_credentials
node_user -->|"uses interface"| node_responsive_ui

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_needs_dialogue,node_prompt_generation,node_prompt_optimization,node_prompt_comparison,node_prompt_versions,node_practice,node_user toneBlue
class node_image_conversation,node_image_upload,node_image_results,node_prompt_translation,node_image_analysis,node_image_prompt_tools toneAmber
class node_auth,node_local_credentials,node_database toneMint
class node_responsive_ui toneRose
class node_ai,node_oauth_providers toneIndigo
```

## Components

### Prompt workflow

- **Needs dialogue**
- **Prompt generation**
- **Prompt optimization**
- **Effect comparison**
- **Prompt versions**
- **Prompt playground**

### Image workflow

- **Image conversation**
- **Image attachments**
- **Image results**
- **Prompt translation**
- **Image analysis**
- **Image prompt tools**

### Accounts and data

- **Authentication**
- **Local credentials**
- **SQLite / MySQL**

### Product experience

- **Responsive interface**

### Other components

- **User**
- **AI service**
- **OAuth providers**

## Connections

- User → Needs dialogue: describes needs (evidence: `README.md`)
- Needs dialogue → AI service: elicits requirements (evidence: `README.md`)
- AI service → Prompt generation: generates prompt (evidence: `README.md`)
- User → Prompt optimization: requests optimization (evidence: `README.md`)
- User → Effect comparison: compares results (evidence: `README.md`)
- User → Prompt versions: manages history (evidence: `README.md`)
- User → Prompt playground: practices prompts (evidence: `README.md`)
- User → Image conversation: creates or edits (evidence: `README.md`)
- Image conversation → AI service: generates images (evidence: `README.md`)
- User → Image attachments: uploads images (evidence: `README.md`)
- User → Image results: reviews results (evidence: `README.md`)
- User → Prompt translation: translates prompts (evidence: `README.md`)
- User → Image analysis: analyzes images (evidence: `README.md`)
- User → Image prompt tools: optimizes prompts (evidence: `README.md`)
- User → Authentication: signs in (evidence: `README.md`)
- Authentication → OAuth providers: supports OAuth (evidence: `README.md`)
- Authentication → Local credentials: supports login (evidence: `README.md`)
- User → Responsive interface: uses interface (evidence: `README.md`)
