# apdservices26/apdbookkeeping architecture

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

- Interactive diagram: https://gitdiagram.com/apdservices26/apdbookkeeping
- Repository: https://github.com/apdservices26/apdbookkeeping

## Overview

APD Bookkeeping is an installable bookkeeping PWA. Users record or import transactions, manage invoices and payroll, and review reports; the README also documents receipt capture/OCR, local storage, and cross-device backups and sync. The README describes these capabilities, but the application source was not sampled, so app components share the known `index.html` path and only documented relationships are shown. The sampled service worker provides offline caching and network-first page loading.

Main entry points: [`index.html`](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html) (Bookkeeping app), [`sw.js`](https://github.com/apdservices26/apdbookkeeping/blob/main/sw.js) (Offline service worker), [`manifest.webmanifest`](https://github.com/apdservices26/apdbookkeeping/blob/main/manifest.webmanifest) (PWA manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_books["Bookkeeping"]
  node_app["Bookkeeping app<br/>[index.html]"]
  node_dashboard["Dashboard<br/>[index.html]"]
  node_transactions["Transactions<br/>[index.html]"]
  node_csvimport["Bank CSV import<br/>[index.html]"]
  node_receipts["Receipt capture and OCR<br/>[index.html]"]
end

subgraph group_business["Business operations"]
  node_invoices["Invoices<br/>[index.html]"]
  node_receivables["Accounts receivable<br/>[index.html]"]
  node_payroll["Payroll and payslips<br/>[index.html]"]
end

subgraph group_insights["Reports and settings"]
  node_monthly["Monthly summary<br/>[index.html]"]
  node_gst["GST/HST summary<br/>[index.html]"]
  node_cra["CRA Prep reports<br/>[index.html]"]
  node_settings["Settings and masters<br/>[index.html]"]
end

subgraph group_platform["Storage and platform"]
  node_localdata[("Local bookkeeping data<br/>[index.html]")]
  node_manualbackup["Manual backup import/export<br/>[index.html]"]
  node_drivesync["Google Drive sync and backups<br/>[index.html]"]
  node_serviceworker["Offline service worker<br/>[sw.js]"]
  node_manifest["PWA manifest"]
end

node_user(("Bookkeeper"))
node_drive[("Google Drive")]
node_browser["Browser"]

node_user -->|"uses"| node_app
node_app -->|"shows"| node_dashboard
node_app -->|"records"| node_transactions
node_csvimport -->|"imports transactions"| node_transactions
node_receipts -->|"auto-fills"| node_transactions
node_app -->|"manages"| node_invoices
node_invoices -->|"tracks balances"| node_receivables
node_invoices -->|"creates income on payment"| node_transactions
node_app -->|"manages"| node_payroll
node_payroll -->|"creates bookkeeping entries"| node_transactions
node_app -->|"provides"| node_monthly
node_app -->|"provides"| node_gst
node_app -->|"provides"| node_cra
node_app -->|"configures"| node_settings
node_app -->|"stores locally"| node_localdata
node_app -->|"exports and imports"| node_manualbackup
node_app -->|"syncs and snapshots"| node_drivesync
node_drivesync -->|"stores backups"| node_drive
node_app -.->|"registers for offline use"| node_serviceworker
node_serviceworker -->|"caches app assets"| node_browser
node_app -->|"installable PWA metadata"| node_manifest

click node_app "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_dashboard "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_transactions "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_csvimport "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_receipts "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_invoices "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_receivables "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_payroll "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_monthly "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_gst "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_cra "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_settings "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_localdata "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_manualbackup "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_drivesync "https://github.com/apdservices26/apdbookkeeping/blob/main/index.html"
click node_serviceworker "https://github.com/apdservices26/apdbookkeeping/blob/main/sw.js"
click node_manifest "https://github.com/apdservices26/apdbookkeeping/blob/main/manifest.webmanifest"

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_dashboard,node_transactions,node_csvimport,node_receipts,node_browser toneBlue
class node_invoices,node_receivables,node_payroll,node_drive toneAmber
class node_monthly,node_gst,node_cra,node_settings toneMint
class node_localdata,node_manualbackup,node_drivesync,node_serviceworker,node_manifest toneRose
class node_user toneIndigo
```

## Components

### Bookkeeping

- [Bookkeeping app](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Dashboard](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Transactions](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Bank CSV import](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Receipt capture and OCR](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`

### Business operations

- [Invoices](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Accounts receivable](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Payroll and payslips](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`

### Reports and settings

- [Monthly summary](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [GST/HST summary](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [CRA Prep reports](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Settings and masters](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`

### Storage and platform

- [Local bookkeeping data](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Manual backup import/export](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Google Drive sync and backups](https://github.com/apdservices26/apdbookkeeping/blob/main/index.html): `index.html`
- [Offline service worker](https://github.com/apdservices26/apdbookkeeping/blob/main/sw.js): `sw.js`
- [PWA manifest](https://github.com/apdservices26/apdbookkeeping/blob/main/manifest.webmanifest): `manifest.webmanifest`

### Other components

- **Bookkeeper**
- **Google Drive**
- **Browser**

## Connections

- Bookkeeper → Bookkeeping app: uses (evidence: `README.md`)
- Bookkeeping app → Dashboard: shows (evidence: `README.md`)
- Bookkeeping app → Transactions: records (evidence: `README.md`)
- Bank CSV import → Transactions: imports transactions (evidence: `README.md`)
- Receipt capture and OCR → Transactions: auto-fills (evidence: `README.md`)
- Bookkeeping app → Invoices: manages (evidence: `README.md`)
- Invoices → Accounts receivable: tracks balances (evidence: `README.md`)
- Invoices → Transactions: creates income on payment (evidence: `README.md`)
- Bookkeeping app → Payroll and payslips: manages (evidence: `README.md`)
- Payroll and payslips → Transactions: creates bookkeeping entries (evidence: `README.md`)
- Bookkeeping app → Monthly summary: provides (evidence: `README.md`)
- Bookkeeping app → GST/HST summary: provides (evidence: `README.md`)
- Bookkeeping app → CRA Prep reports: provides (evidence: `README.md`)
- Bookkeeping app → Settings and masters: configures (evidence: `README.md`)
- Bookkeeping app → Local bookkeeping data: stores locally (evidence: `README.md`)
- Bookkeeping app → Manual backup import/export: exports and imports (evidence: `README.md`)
- Bookkeeping app → Google Drive sync and backups: syncs and snapshots (evidence: `README.md`)
- Google Drive sync and backups → Google Drive: stores backups (evidence: `README.md`)
- Bookkeeping app → Offline service worker: registers for offline use
- Offline service worker → Browser: caches app assets (evidence: `sw.js`)
- Bookkeeping app → PWA manifest: installable PWA metadata (evidence: `README.md`)
