# tercodemagang/frontend-zakki architecture

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

- Interactive diagram: https://gitdiagram.com/tercodemagang/frontend-zakki
- Repository: https://github.com/tercodemagang/frontend-zakki

## Overview

Invito is a web app for creating and sharing wedding invitations, with customer accounts, package selection, and transaction handling. The main journey runs through the routed app, which creates transactions through an API client; public invitation pages load invitation data by slug. The tree also includes dashboard and login screens and a substantial reusable UI kit. The README is empty, and some source is unsampled, so only visible or indexed connections are shown; dashboard/login usage is not inferred.

Main entry points: [`src/app/App.tsx`](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/App.tsx) (App and purchase flow), [`src/lib/api.ts`](https://github.com/tercodemagang/frontend-zakki/blob/main/src/lib/api.ts) (API client), [`src/main.tsx`](https://github.com/tercodemagang/frontend-zakki/blob/main/src/main.tsx) (React entry), [`src/app/InvitationPage.tsx`](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/InvitationPage.tsx) (Public invitation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Invito application"]
  node_entry["React entry<br/>[main.tsx]"]
  node_appflow["App and purchase flow<br/>[App.tsx]"]
  node_publicinvite["Public invitation<br/>[InvitationPage.tsx]"]
  node_dashboard["Dashboard screen<br/>[Dashboard.tsx]"]
  node_login["Login screen<br/>[Login.tsx]"]
end

subgraph group_services["Client services"]
  node_validation["Registration validation<br/>[validations.ts]"]
  node_api["API client<br/>[api.ts]"]
end

subgraph group_ui["Reusable interface"]
  node_uikit["UI components"]
end

node_visitor(("Visitor"))
node_backend{{"Backend API"}}

node_visitor -.->|"opens app"| node_entry
node_entry -->|"renders"| node_appflow
node_appflow -->|"routes to"| node_publicinvite
node_appflow -->|"creates transaction"| node_api
node_appflow -->|"imports"| node_validation
node_publicinvite -->|"loads by slug"| node_api
node_api -->|"sends HTTP requests"| node_backend

click node_entry "https://github.com/tercodemagang/frontend-zakki/blob/main/src/main.tsx"
click node_appflow "https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/App.tsx"
click node_publicinvite "https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/InvitationPage.tsx"
click node_dashboard "https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/components/Dashboard.tsx"
click node_login "https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/components/Login.tsx"
click node_validation "https://github.com/tercodemagang/frontend-zakki/blob/main/src/lib/validations.ts"
click node_api "https://github.com/tercodemagang/frontend-zakki/blob/main/src/lib/api.ts"
click node_uikit "https://github.com/tercodemagang/frontend-zakki/tree/main/src/app/components/ui"

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_entry,node_appflow,node_publicinvite,node_dashboard,node_login toneBlue
class node_validation,node_api toneAmber
class node_uikit,node_backend toneMint
class node_visitor toneIndigo
```

## Components

### Invito application

- [React entry](https://github.com/tercodemagang/frontend-zakki/blob/main/src/main.tsx): `src/main.tsx`
- [App and purchase flow](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Public invitation](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/InvitationPage.tsx): `src/app/InvitationPage.tsx`
- [Dashboard screen](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/components/Dashboard.tsx): `src/app/components/Dashboard.tsx`
- [Login screen](https://github.com/tercodemagang/frontend-zakki/blob/main/src/app/components/Login.tsx): `src/app/components/Login.tsx`

### Client services

- [Registration validation](https://github.com/tercodemagang/frontend-zakki/blob/main/src/lib/validations.ts): `src/lib/validations.ts`
- [API client](https://github.com/tercodemagang/frontend-zakki/blob/main/src/lib/api.ts): `src/lib/api.ts`

### Reusable interface

- [UI components](https://github.com/tercodemagang/frontend-zakki/tree/main/src/app/components/ui): `src/app/components/ui`

### Other components

- **Visitor**
- **Backend API**

## Connections

- Visitor → React entry: opens app
- React entry → App and purchase flow: renders (evidence: `src/main.tsx`)
- App and purchase flow → Public invitation: routes to (evidence: `src/app/App.tsx`)
- App and purchase flow → API client: creates transaction (evidence: `src/app/App.tsx`)
- App and purchase flow → Registration validation: imports (evidence: `src/app/App.tsx`)
- Public invitation → API client: loads by slug (evidence: `src/app/InvitationPage.tsx`)
- API client → Backend API: sends HTTP requests (evidence: `src/lib/api.ts`)
