# engmujakata/spark-pos architecture

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

- Interactive diagram: https://gitdiagram.com/engmujakata/spark-pos
- Repository: https://github.com/engmujakata/spark-pos

## Overview

This repository packages the existing Spark POS web page as an Android app using Capacitor. The user installs and opens the APK, which presents the page as the app’s content. The README explicitly describes this wrapping relationship; the native Android project and page internals are not present in the supplied source excerpts, so the graph does not infer additional runtime stages or POS behavior.

Main entry points: [`capacitor.config.json`](https://github.com/engmujakata/spark-pos/blob/main/capacitor.config.json) (Capacitor Android app), [`www/index.html`](https://github.com/engmujakata/spark-pos/blob/main/www/index.html) (Spark POS page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_android_wrapper["Android wrapper"]
  node_capacitor_app["Capacitor Android app"]
  node_pos_page["Spark POS page<br/>[index.html]"]
end

node_user(("Phone user"))

node_user -->|"opens"| node_capacitor_app
node_capacitor_app -->|"wraps"| node_pos_page

click node_capacitor_app "https://github.com/engmujakata/spark-pos/blob/main/capacitor.config.json"
click node_pos_page "https://github.com/engmujakata/spark-pos/blob/main/www/index.html"

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_capacitor_app,node_pos_page,node_user toneBlue
```

## Components

### Android wrapper

- [Capacitor Android app](https://github.com/engmujakata/spark-pos/blob/main/capacitor.config.json): `capacitor.config.json`
- [Spark POS page](https://github.com/engmujakata/spark-pos/blob/main/www/index.html): `www/index.html`

### Other components

- **Phone user**

## Connections

- Phone user → Capacitor Android app: opens (evidence: `README.txt`)
- Capacitor Android app → Spark POS page: wraps (evidence: `README.txt`)
