# willjustplay/will-project architecture

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

- Interactive diagram: https://gitdiagram.com/willjustplay/will-project
- Repository: https://github.com/willjustplay/will-project

## Overview

Personal Vault is a mobile/web personal organizer for finances, schedules, tasks, files, and AI assistance. Users enter through the Expo app’s dashboard and feature screens; those screens appear intended to use a shared API client, which identifies the device and calls the FastAPI backend. The backend stores device-scoped records in MongoDB and supports file storage and AI features. The README provides no architecture detail, and page-to-client wiring is not shown in the excerpts, so those links are marked unverified; unsampled feature routes are represented only where the tree supports them.

Main entry points: [`backend/server.py`](https://github.com/willjustplay/will-project/blob/main/backend/server.py) (FastAPI service), [`frontend/src/api/client.ts`](https://github.com/willjustplay/will-project/blob/main/frontend/src/api/client.ts) (API client), [`frontend/src/utils/storage/index.ts`](https://github.com/willjustplay/will-project/blob/main/frontend/src/utils/storage/index.ts) (Device storage), [`frontend/app/(tabs)/index.tsx`](https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/index.tsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client app"]
  node_api_client["API client<br/>[client.ts]"]
  node_storage_wrapper["Device storage<br/>[index.ts]"]
  node_storage_base["Storage base<br/>[storage-base.ts]"]
end

subgraph group_api["Backend API"]
  node_backend["FastAPI service<br/>[server.py]"]
end

subgraph group_domain["Organizer features"]
  node_dashboard["Dashboard<br/>[index.tsx]"]
  node_schedule["Schedule<br/>[jadwal.tsx]"]
  node_finance["Finances<br/>[keuangan.tsx]"]
  node_vault["File vault<br/>[brankas.tsx]"]
  node_assistant["AI assistant<br/>[asisten.tsx]"]
  node_settings["Settings<br/>[pengaturan.tsx]"]
end

subgraph group_data["Persistence"]
  node_finance_records[("Finance records<br/>[server.py]")]
  node_organizer_records[("Organizer records<br/>[server.py]")]
  node_file_records[("File records<br/>[server.py]")]
  node_ai_history[("AI history<br/>[server.py]")]
end

subgraph group_integrations["External services"]
  node_mongo[("MongoDB")]
  node_object_store[("Object storage")]
  node_ai_provider["AI provider"]
end

node_user(("Personal Vault user"))

node_user -.->|"opens app"| node_dashboard
node_user -.->|"manages events"| node_schedule
node_user -.->|"tracks money"| node_finance
node_user -.->|"manages files"| node_vault
node_user -.->|"asks assistant"| node_assistant
node_user -.->|"configures app"| node_settings
node_dashboard -.->|"uses API"| node_api_client
node_schedule -.->|"uses API"| node_api_client
node_finance -.->|"uses API"| node_api_client
node_vault -.->|"uses API"| node_api_client
node_assistant -.->|"uses AI API"| node_api_client
node_settings -.->|"uses API"| node_api_client
node_api_client -->|"reads device ID"| node_storage_wrapper
node_storage_wrapper -->|"extends"| node_storage_base
node_api_client -->|"sends HTTP"| node_backend
node_backend -->|"reads writes"| node_finance_records
node_backend -->|"reads writes"| node_organizer_records
node_backend -->|"reads files"| node_file_records
node_backend -->|"reads history"| node_ai_history
node_backend -->|"uses database"| node_mongo
node_backend -->|"initializes storage"| node_object_store
node_backend -.->|"requests AI"| node_ai_provider

click node_dashboard "https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/index.tsx"
click node_schedule "https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/jadwal.tsx"
click node_finance "https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/keuangan.tsx"
click node_vault "https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/brankas.tsx"
click node_assistant "https://github.com/willjustplay/will-project/blob/main/frontend/app/asisten.tsx"
click node_settings "https://github.com/willjustplay/will-project/blob/main/frontend/app/pengaturan.tsx"
click node_api_client "https://github.com/willjustplay/will-project/blob/main/frontend/src/api/client.ts"
click node_storage_wrapper "https://github.com/willjustplay/will-project/blob/main/frontend/src/utils/storage/index.ts"
click node_storage_base "https://github.com/willjustplay/will-project/blob/main/frontend/src/utils/storage/storage-base.ts"
click node_backend "https://github.com/willjustplay/will-project/blob/main/backend/server.py"
click node_finance_records "https://github.com/willjustplay/will-project/blob/main/backend/server.py"
click node_organizer_records "https://github.com/willjustplay/will-project/blob/main/backend/server.py"
click node_file_records "https://github.com/willjustplay/will-project/blob/main/backend/server.py"
click node_ai_history "https://github.com/willjustplay/will-project/blob/main/backend/server.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_api_client,node_storage_wrapper,node_storage_base,node_user toneBlue
class node_backend toneAmber
class node_dashboard,node_schedule,node_finance,node_vault,node_assistant,node_settings toneMint
class node_finance_records,node_organizer_records,node_file_records,node_ai_history toneRose
class node_mongo,node_object_store,node_ai_provider toneIndigo
```

## Components

### Client app

- [API client](https://github.com/willjustplay/will-project/blob/main/frontend/src/api/client.ts): `frontend/src/api/client.ts`
- [Device storage](https://github.com/willjustplay/will-project/blob/main/frontend/src/utils/storage/index.ts): `frontend/src/utils/storage/index.ts`
- [Storage base](https://github.com/willjustplay/will-project/blob/main/frontend/src/utils/storage/storage-base.ts): `frontend/src/utils/storage/storage-base.ts`

### Backend API

- [FastAPI service](https://github.com/willjustplay/will-project/blob/main/backend/server.py): `backend/server.py`

### Organizer features

- [Dashboard](https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/index.tsx): `frontend/app/(tabs)/index.tsx`
- [Schedule](https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/jadwal.tsx): `frontend/app/(tabs)/jadwal.tsx`
- [Finances](https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/keuangan.tsx): `frontend/app/(tabs)/keuangan.tsx`
- [File vault](https://github.com/willjustplay/will-project/blob/main/frontend/app/(tabs)/brankas.tsx): `frontend/app/(tabs)/brankas.tsx`
- [AI assistant](https://github.com/willjustplay/will-project/blob/main/frontend/app/asisten.tsx): `frontend/app/asisten.tsx`
- [Settings](https://github.com/willjustplay/will-project/blob/main/frontend/app/pengaturan.tsx): `frontend/app/pengaturan.tsx`

### Persistence

- [Finance records](https://github.com/willjustplay/will-project/blob/main/backend/server.py): `backend/server.py`
- [Organizer records](https://github.com/willjustplay/will-project/blob/main/backend/server.py): `backend/server.py`
- [File records](https://github.com/willjustplay/will-project/blob/main/backend/server.py): `backend/server.py`
- [AI history](https://github.com/willjustplay/will-project/blob/main/backend/server.py): `backend/server.py`

### External services

- **MongoDB**
- **Object storage**
- **AI provider**

### Other components

- **Personal Vault user**

## Connections

- Personal Vault user → Dashboard: opens app
- Personal Vault user → Schedule: manages events
- Personal Vault user → Finances: tracks money
- Personal Vault user → File vault: manages files
- Personal Vault user → AI assistant: asks assistant
- Personal Vault user → Settings: configures app
- Dashboard → API client: uses API
- Schedule → API client: uses API
- Finances → API client: uses API
- File vault → API client: uses API
- AI assistant → API client: uses AI API
- Settings → API client: uses API
- API client → Device storage: reads device ID (evidence: `frontend/src/api/client.ts`)
- Device storage → Storage base: extends (evidence: `frontend/src/utils/storage/index.ts`)
- API client → FastAPI service: sends HTTP (evidence: `frontend/src/api/client.ts`)
- FastAPI service → Finance records: reads writes (evidence: `backend/server.py`)
- FastAPI service → Organizer records: reads writes (evidence: `backend/server.py`)
- FastAPI service → File records: reads files (evidence: `backend/server.py`)
- FastAPI service → AI history: reads history (evidence: `backend/server.py`)
- FastAPI service → MongoDB: uses database (evidence: `backend/server.py`)
- FastAPI service → Object storage: initializes storage (evidence: `backend/server.py`)
- FastAPI service → AI provider: requests AI
