# devartslab/sesame-voice-escort architecture

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

- Interactive diagram: https://gitdiagram.com/devartslab/sesame-voice-escort
- Repository: https://github.com/devartslab/sesame-voice-escort

## Overview

Sesame Voice Escort is a local web send box for recording or selecting audio, forwarding it to a Sesame Voice Capture device, and keeping a local sent-note history. The principal workflow runs from the browser UI through the loopback server, which validates and forwards audio using server-side credentials, then records send results for later playback. The README documents recording, uploads, retries, test pings, and history; the UI source was not sampled, so browser-to-server links rely on the documented endpoints and features.

Main entry points: [`server.py`](https://github.com/devartslab/sesame-voice-escort/blob/master/server.py) (HTTP handler), [`index.html`](https://github.com/devartslab/sesame-voice-escort/blob/master/index.html) (Record and upload UI), [`config.example.json`](https://github.com/devartslab/sesame-voice-escort/blob/master/config.example.json) (Device configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser client"]
  node_ui["Record and upload UI<br/>[index.html]"]
end

subgraph group_local["Local service"]
  node_server["HTTP handler<br/>[server.py]"]
  node_config["Device configuration"]
  node_history[("Sent notes and history<br/>[server.py]")]
end

subgraph group_remote["Sesame service"]
  node_device{{"Sesame device endpoint"}}
end

node_user(("Note sender"))

node_user -->|"records or selects"| node_ui
node_ui -->|"sends audio and requests"| node_server
node_server -->|"serves page and results"| node_ui
node_config -->|"configures credentials"| node_server
node_server -->|"forwards audio and test ping"| node_device
node_server -->|"saves send results"| node_history
node_server -->|"reads history and audio"| node_history
node_ui -->|"requests history and playback"| node_server

click node_ui "https://github.com/devartslab/sesame-voice-escort/blob/master/index.html"
click node_server "https://github.com/devartslab/sesame-voice-escort/blob/master/server.py"
click node_config "https://github.com/devartslab/sesame-voice-escort/blob/master/config.example.json"
click node_history "https://github.com/devartslab/sesame-voice-escort/blob/master/server.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_ui toneBlue
class node_server,node_config,node_history toneAmber
class node_device toneMint
class node_user toneIndigo
```

## Components

### Browser client

- [Record and upload UI](https://github.com/devartslab/sesame-voice-escort/blob/master/index.html): `index.html`

### Local service

- [HTTP handler](https://github.com/devartslab/sesame-voice-escort/blob/master/server.py): `server.py`
- [Device configuration](https://github.com/devartslab/sesame-voice-escort/blob/master/config.example.json): `config.example.json`
- [Sent notes and history](https://github.com/devartslab/sesame-voice-escort/blob/master/server.py): `server.py`

### Sesame service

- **Sesame device endpoint**

### Other components

- **Note sender**

## Connections

- Note sender → Record and upload UI: records or selects (evidence: `README.md`)
- Record and upload UI → HTTP handler: sends audio and requests (evidence: `server.py`)
- HTTP handler → Record and upload UI: serves page and results (evidence: `server.py`)
- Device configuration → HTTP handler: configures credentials (evidence: `README.md`)
- HTTP handler → Sesame device endpoint: forwards audio and test ping (evidence: `server.py`)
- HTTP handler → Sent notes and history: saves send results (evidence: `server.py`)
- HTTP handler → Sent notes and history: reads history and audio (evidence: `server.py`)
- Record and upload UI → HTTP handler: requests history and playback (evidence: `README.md`)
