# lc200333-cmyk/wallet-aps architecture

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

- Interactive diagram: https://gitdiagram.com/lc200333-cmyk/wallet-aps
- Repository: https://github.com/lc200333-cmyk/wallet-aps

## Overview

Wallet APS is a local, offline password and private-data manager for Windows, Android, and Linux. Its main workflow is to create or open a password-protected .swl vault, organize private information into folders and template-based cards, then save or safely close the vault. The graph also preserves documented search, transfer, recovery, and backup capabilities. Dart implementation details were not sampled, so app nodes use supported source paths and relationships are cited to the README rather than inferred from module names.

Main entry points: [`app/lib/main.dart`](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/main.dart) (Wallet APS app), [`app/windows/runner`](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/windows/runner) (Desktop host), [`app/android/app/src/main/kotlin/com/lc200333cmyk/walletaps/MainActivity.kt`](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/android/app/src/main/kotlin/com/lc200333cmyk/walletaps/MainActivity.kt) (Android host), [`app/lib/spb_wallet/spb_wallet_database.dart`](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_database.dart) (Vault database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_vault["Vault security"]
  node_app["Wallet APS app<br/>[main.dart]"]
  node_vault_files[("SWL vault files")]
  node_vault_db[("Vault database")]
  node_crypto["Vault cryptography"]
  node_legacy["Legacy SWL codec"]
  node_repository["Wallet repository"]
end

subgraph group_organize["Cards and organization"]
  node_folders["Folders and categories"]
  node_cards["Cards and fields"]
  node_templates["Card templates"]
  node_attachments["Card attachments"]
  node_search["Search and sorting"]
end

subgraph group_manage["Vault management"]
  node_transfer["Import and export"]
  node_recovery["Undo and trash"]
  node_archives["Vault archives"]
  node_integrity["Integrity and rekey"]
end

subgraph group_platform["Platform support"]
  node_desktop_host["Desktop host"]
  node_android_host["Android host<br/>[MainActivity.kt]"]
end

node_user(("User"))

node_user -->|"opens and uses"| node_app
node_app -->|"creates or opens"| node_vault_files
node_app -->|"organizes in"| node_folders
node_app -->|"creates and edits"| node_cards
node_app -->|"uses or creates"| node_templates
node_app -->|"saves changes"| node_vault_files
node_app -->|"searches and sorts"| node_search
node_app -->|"imports and exports"| node_transfer
node_app -->|"undoes or restores"| node_recovery
node_app -->|"creates archive copies"| node_archives
node_app -->|"adds attachments"| node_attachments
node_app -.->|"opens vault database"| node_vault_db
node_app -.->|"protects vault data"| node_crypto
node_app -.->|"reads legacy format"| node_legacy
node_app -.->|"uses repository"| node_repository
node_app -.->|"checks or rekeys"| node_integrity
node_desktop_host -->|"hosts Flutter app"| node_app
node_android_host -.->|"hosts Flutter app"| node_app

click node_app "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/main.dart"
click node_vault_db "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_database.dart"
click node_crypto "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_crypto.dart"
click node_legacy "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/data/legacy_swl/legacy_swl_codec.dart"
click node_repository "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/data/spb_wallet_repository.dart"
click node_folders "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/categories"
click node_cards "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/cards"
click node_templates "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/templates"
click node_attachments "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_attachment_codec.dart"
click node_search "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib"
click node_transfer "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib"
click node_recovery "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib"
click node_archives "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib"
click node_integrity "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/services"
click node_desktop_host "https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/windows/runner"
click node_android_host "https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/android/app/src/main/kotlin/com/lc200333cmyk/walletaps/MainActivity.kt"

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_vault_files,node_vault_db,node_crypto,node_legacy,node_repository,node_user toneBlue
class node_folders,node_cards,node_templates,node_attachments,node_search toneAmber
class node_transfer,node_recovery,node_archives,node_integrity toneMint
class node_desktop_host,node_android_host toneRose
```

## Components

### Vault security

- [Wallet APS app](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/main.dart): `app/lib/main.dart`
- **SWL vault files**
- [Vault database](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_database.dart): `app/lib/spb_wallet/spb_wallet_database.dart`
- [Vault cryptography](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_crypto.dart): `app/lib/spb_wallet/spb_wallet_crypto.dart`
- [Legacy SWL codec](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/data/legacy_swl/legacy_swl_codec.dart): `app/lib/data/legacy_swl/legacy_swl_codec.dart`
- [Wallet repository](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/data/spb_wallet_repository.dart): `app/lib/data/spb_wallet_repository.dart`

### Cards and organization

- [Folders and categories](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/categories): `app/lib/features/categories`
- [Cards and fields](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/cards): `app/lib/features/cards`
- [Card templates](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/features/templates): `app/lib/features/templates`
- [Card attachments](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/lib/spb_wallet/spb_wallet_attachment_codec.dart): `app/lib/spb_wallet/spb_wallet_attachment_codec.dart`
- [Search and sorting](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib): `app/lib`

### Vault management

- [Import and export](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib): `app/lib`
- [Undo and trash](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib): `app/lib`
- [Vault archives](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib): `app/lib`
- [Integrity and rekey](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/lib/services): `app/lib/services`

### Platform support

- [Desktop host](https://github.com/lc200333-cmyk/wallet-aps/tree/master/app/windows/runner): `app/windows/runner`
- [Android host](https://github.com/lc200333-cmyk/wallet-aps/blob/master/app/android/app/src/main/kotlin/com/lc200333cmyk/walletaps/MainActivity.kt): `app/android/app/src/main/kotlin/com/lc200333cmyk/walletaps/MainActivity.kt`

### Other components

- **User**

## Connections

- User → Wallet APS app: opens and uses (evidence: `README.md`)
- Wallet APS app → SWL vault files: creates or opens (evidence: `README.md`)
- Wallet APS app → Folders and categories: organizes in (evidence: `README.md`)
- Wallet APS app → Cards and fields: creates and edits (evidence: `README.md`)
- Wallet APS app → Card templates: uses or creates (evidence: `README.md`)
- Wallet APS app → SWL vault files: saves changes (evidence: `README.md`)
- Wallet APS app → Search and sorting: searches and sorts (evidence: `README.md`)
- Wallet APS app → Import and export: imports and exports (evidence: `README.md`)
- Wallet APS app → Undo and trash: undoes or restores (evidence: `README.md`)
- Wallet APS app → Vault archives: creates archive copies (evidence: `README.md`)
- Wallet APS app → Card attachments: adds attachments (evidence: `README.md`)
- Wallet APS app → Vault database: opens vault database
- Wallet APS app → Vault cryptography: protects vault data
- Wallet APS app → Legacy SWL codec: reads legacy format
- Wallet APS app → Wallet repository: uses repository
- Wallet APS app → Integrity and rekey: checks or rekeys
- Desktop host → Wallet APS app: hosts Flutter app (evidence: `app/windows/runner/flutter_window.cpp`)
- Android host → Wallet APS app: hosts Flutter app
