# saheli1712/deckwright architecture

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

- Interactive diagram: https://gitdiagram.com/saheli1712/deckwright
- Repository: https://github.com/saheli1712/deckwright

## Overview

This repository appears to be a small web app for generating presentation decks with Claude. The visible backend accepts a prompt and optional images, validates the request, calls Anthropic, and returns either a deck or questions. The HTML frontend is present in the tree, but its contents were not provided, so its capabilities and connection to the endpoint cannot be verified; that link is shown as unverified.

Main entry points: [`api/generate.js`](https://github.com/saheli1712/deckwright/blob/main/api/generate.js) (Generate handler), [`Deckwright.html`](https://github.com/saheli1712/deckwright/blob/main/Deckwright.html) (Deckwright interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Deckwright app"]
  node_frontend["Deckwright interface<br/>[Deckwright.html]"]
end

subgraph group_generation["Deck generation"]
  node_handler["Generate handler<br/>[generate.js]"]
end

node_user(("User"))
node_anthropic["Anthropic API"]

node_user -->|"uses"| node_frontend
node_frontend -.->|"submits prompt"| node_handler
node_handler -->|"sends request"| node_anthropic
node_anthropic -->|"returns response"| node_handler

click node_frontend "https://github.com/saheli1712/deckwright/blob/main/Deckwright.html"
click node_handler "https://github.com/saheli1712/deckwright/blob/main/api/generate.js"

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_frontend,node_user toneBlue
class node_handler toneAmber
class node_anthropic toneMint
```

## Components

### Deckwright app

- [Deckwright interface](https://github.com/saheli1712/deckwright/blob/main/Deckwright.html): `Deckwright.html`

### Deck generation

- [Generate handler](https://github.com/saheli1712/deckwright/blob/main/api/generate.js): `api/generate.js`

### Other components

- **User**
- **Anthropic API**

## Connections

- User → Deckwright interface: uses
- Deckwright interface → Generate handler: submits prompt
- Generate handler → Anthropic API: sends request (evidence: `api/generate.js`)
- Anthropic API → Generate handler: returns response (evidence: `api/generate.js`)
