# agramether/buffer-calculator architecture

> Architecture diagram of the GitHub repository agramether/buffer-calculator, 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/agramether/buffer-calculator
- Repository: https://github.com/agramether/buffer-calculator

## Overview

This is a small collection of standalone command-line buffer calculators. A user runs either script, chooses a buffer, and enters preparation parameters; the phosphate script prints reagent amounts and a procedure, while the acetate script calculates acid/base concentrations. The README describes automating buffer reagent calculations but documents no shared runtime or integrations. The graph reflects only the two supplied source excerpts.

Main entry points: [`phosphate buffer ver 1.py`](https://github.com/agramether/buffer-calculator/blob/main/phosphate%20buffer%20ver%201.py) (Phosphate calculator), [`acetate buffer using lists v2.py`](https://github.com/agramether/buffer-calculator/blob/main/acetate%20buffer%20using%20lists%20v2.py) (Acetate calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Lab user"))
node_phosphate["Phosphate calculator"]
node_acetate["Acetate calculator"]

node_user -->|"selects and enters"| node_phosphate
node_user -->|"selects and enters"| node_acetate

click node_phosphate "https://github.com/agramether/buffer-calculator/blob/main/phosphate%20buffer%20ver%201.py"
click node_acetate "https://github.com/agramether/buffer-calculator/blob/main/acetate%20buffer%20using%20lists%20v2.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_user toneBlue
class node_phosphate,node_acetate toneTeal
```

## Components

### Other components

- **Lab user**
- [Phosphate calculator](https://github.com/agramether/buffer-calculator/blob/main/phosphate%20buffer%20ver%201.py): `phosphate buffer ver 1.py`
- [Acetate calculator](https://github.com/agramether/buffer-calculator/blob/main/acetate%20buffer%20using%20lists%20v2.py): `acetate buffer using lists v2.py`

## Connections

- Lab user → Phosphate calculator: selects and enters (evidence: `phosphate buffer ver 1.py`)
- Lab user → Acetate calculator: selects and enters (evidence: `acetate buffer using lists v2.py`)
