# alomnsh/frictionless-notes architecture

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

- Interactive diagram: https://gitdiagram.com/alomnsh/frictionless-notes
- Repository: https://github.com/alomnsh/frictionless-notes

## Overview

Frictionless Notes is a browser-based lecture note tool: the user records speech, reviews the live transcript, requests an AI summary with key points, and can copy the result. The main runtime is in app.js, which connects browser speech recognition, transcript state, the remote summarization request, output formatting, and clipboard copying. The README provides no further capability details, and index.html is present but not excerpted, so relationships to the page are not independently verified.

Main entry points: [`app.js`](https://github.com/alomnsh/frictionless-notes/blob/main/app.js) (Summary request)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Recording and transcript"]
  node_controls["Recording controls<br/>[app.js]"]
  node_speech["Speech recognition<br/>[app.js]"]
  node_transcript["Transcript buffer and view<br/>[app.js]"]
end

subgraph group_summary["Summary and export"]
  node_summary_request["Summary request<br/>[app.js]"]
  node_nomic["Nomic service"]
  node_formatter["Summary formatter<br/>[app.js]"]
  node_output["Summary output<br/>[app.js]"]
  node_clipboard["Clipboard"]
end

node_user(("User"))

node_user -.->|"uses"| node_controls
node_controls -->|"starts or stops"| node_speech
node_speech -->|"provides results"| node_transcript
node_controls -->|"clears"| node_transcript
node_controls -->|"requests summary"| node_summary_request
node_transcript -->|"supplies text"| node_summary_request
node_summary_request -->|"posts prompt"| node_nomic
node_nomic -->|"returns response"| node_summary_request
node_summary_request -->|"passes response"| node_formatter
node_formatter -->|"renders HTML"| node_output
node_output -->|"copies text"| node_clipboard

click node_controls "https://github.com/alomnsh/frictionless-notes/blob/main/app.js"
click node_speech "https://github.com/alomnsh/frictionless-notes/blob/main/app.js"
click node_transcript "https://github.com/alomnsh/frictionless-notes/blob/main/app.js"
click node_summary_request "https://github.com/alomnsh/frictionless-notes/blob/main/app.js"
click node_formatter "https://github.com/alomnsh/frictionless-notes/blob/main/app.js"
click node_output "https://github.com/alomnsh/frictionless-notes/blob/main/app.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_controls,node_speech,node_transcript,node_user toneBlue
class node_summary_request,node_nomic,node_formatter,node_output,node_clipboard toneAmber
```

## Components

### Recording and transcript

- [Recording controls](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`
- [Speech recognition](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`
- [Transcript buffer and view](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`

### Summary and export

- [Summary request](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`
- **Nomic service**
- [Summary formatter](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`
- [Summary output](https://github.com/alomnsh/frictionless-notes/blob/main/app.js): `app.js`
- **Clipboard**

### Other components

- **User**

## Connections

- User → Recording controls: uses
- Recording controls → Speech recognition: starts or stops (evidence: `app.js`)
- Speech recognition → Transcript buffer and view: provides results (evidence: `app.js`)
- Recording controls → Transcript buffer and view: clears (evidence: `app.js`)
- Recording controls → Summary request: requests summary (evidence: `app.js`)
- Transcript buffer and view → Summary request: supplies text (evidence: `app.js`)
- Summary request → Nomic service: posts prompt (evidence: `app.js`)
- Nomic service → Summary request: returns response (evidence: `app.js`)
- Summary request → Summary formatter: passes response (evidence: `app.js`)
- Summary formatter → Summary output: renders HTML (evidence: `app.js`)
- Summary output → Clipboard: copies text (evidence: `app.js`)
