# reztdev/risena-generate-invoice-app architecture

> Architecture diagram of the GitHub repository reztdev/risena-generate-invoice-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/reztdev/risena-generate-invoice-app
- Repository: https://github.com/reztdev/risena-generate-invoice-app

## Overview

Risena Generate Invoice is a local-first invoicing app for small businesses, delivered as a web page and an Android app. The user opens the app, creates an invoice, and can save or share its PDF; invoices and expenses can then be reviewed, searched, and summarized in reports. The README also documents PIN/biometric access, reminders, themes, signatures, and Excel/JSON backup. The tree has one application source file, but its implementation was not excerpted, so the component boundaries and relationships below follow documented capabilities rather than inspected call sites.

Main entry points: [`www/index.html`](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html) (Invoice form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_invoice["Invoice workflow"]
  node_app["Invoice app<br/>[index.html]"]
  node_invoice_form["Invoice form<br/>[index.html]"]
  node_customer_suggestions["Customer suggestions<br/>[index.html]"]
  node_item_suggestions["Item suggestions<br/>[index.html]"]
  node_signature["Signature capture<br/>[index.html]"]
  node_invoice_document["A4 invoice PDF<br/>[index.html]"]
end

subgraph group_records["Records and insights"]
  node_invoice_history[("Invoice history<br/>[index.html]")]
  node_expense_records[("Expense records<br/>[index.html]")]
  node_reports["Sales and profit reports<br/>[index.html]"]
  node_backup["Excel and JSON backup<br/>[index.html]"]
  node_home["Home dashboard<br/>[index.html]"]
end

subgraph group_access["Access and preferences"]
  node_lock["PIN and biometric lock<br/>[index.html]"]
  node_preferences["Theme preferences<br/>[index.html]"]
end

subgraph group_platform["Device features"]
  node_reminders["Daily reminders<br/>[index.html]"]
end

node_user(("Business owner"))
node_device(("Android device"))

node_user -->|"opens"| node_app
node_app -->|"creates invoice"| node_invoice_form
node_invoice_form -->|"suggests customers"| node_customer_suggestions
node_invoice_form -->|"suggests items"| node_item_suggestions
node_invoice_form -->|"captures signature"| node_signature
node_invoice_form -->|"renders PDF"| node_invoice_document
node_invoice_form -->|"saves invoice"| node_invoice_history
node_invoice_history -->|"saves or shares"| node_invoice_document
node_invoice_history -->|"duplicates invoice"| node_invoice_form
node_user -->|"records expenses"| node_expense_records
node_invoice_history -->|"summarizes sales"| node_reports
node_expense_records -->|"contributes expenses"| node_reports
node_reports -->|"shows totals"| node_home
node_invoice_history -->|"exports and imports"| node_backup
node_expense_records -->|"backs up JSON"| node_backup
node_user -->|"sets access"| node_lock
node_user -->|"chooses theme"| node_preferences
node_user -->|"configures reminders"| node_reminders
node_reminders -->|"schedules notifications"| node_device

click node_app "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_invoice_form "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_customer_suggestions "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_item_suggestions "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_signature "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_invoice_document "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_invoice_history "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_expense_records "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_reports "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_backup "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_home "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_lock "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_preferences "https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html"
click node_reminders "https://github.com/reztdev/risena-generate-invoice-app/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_app,node_invoice_form,node_customer_suggestions,node_item_suggestions,node_signature,node_invoice_document toneBlue
class node_invoice_history,node_expense_records,node_reports,node_backup,node_home toneAmber
class node_lock,node_preferences toneMint
class node_reminders toneRose
class node_user,node_device toneIndigo
```

## Components

### Invoice workflow

- [Invoice app](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Invoice form](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Customer suggestions](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Item suggestions](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Signature capture](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [A4 invoice PDF](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`

### Records and insights

- [Invoice history](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Expense records](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Sales and profit reports](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Excel and JSON backup](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Home dashboard](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`

### Access and preferences

- [PIN and biometric lock](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`
- [Theme preferences](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`

### Device features

- [Daily reminders](https://github.com/reztdev/risena-generate-invoice-app/blob/main/www/index.html): `www/index.html`

### Other components

- **Business owner**
- **Android device**

## Connections

- Business owner → Invoice app: opens (evidence: `README.md`)
- Invoice app → Invoice form: creates invoice (evidence: `README.md`)
- Invoice form → Customer suggestions: suggests customers (evidence: `README.md`)
- Invoice form → Item suggestions: suggests items (evidence: `README.md`)
- Invoice form → Signature capture: captures signature (evidence: `README.md`)
- Invoice form → A4 invoice PDF: renders PDF (evidence: `README.md`)
- Invoice form → Invoice history: saves invoice (evidence: `README.md`)
- Invoice history → A4 invoice PDF: saves or shares (evidence: `README.md`)
- Invoice history → Invoice form: duplicates invoice (evidence: `README.md`)
- Business owner → Expense records: records expenses (evidence: `README.md`)
- Invoice history → Sales and profit reports: summarizes sales (evidence: `README.md`)
- Expense records → Sales and profit reports: contributes expenses (evidence: `README.md`)
- Sales and profit reports → Home dashboard: shows totals (evidence: `README.md`)
- Invoice history → Excel and JSON backup: exports and imports (evidence: `README.md`)
- Expense records → Excel and JSON backup: backs up JSON (evidence: `README.md`)
- Business owner → PIN and biometric lock: sets access (evidence: `README.md`)
- Business owner → Theme preferences: chooses theme (evidence: `README.md`)
- Business owner → Daily reminders: configures reminders (evidence: `README.md`)
- Daily reminders → Android device: schedules notifications (evidence: `README.md`)
