# kiraiiv-max/frog-freelance architecture

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

- Interactive diagram: https://gitdiagram.com/kiraiiv-max/frog-freelance
- Repository: https://github.com/kiraiiv-max/frog-freelance

## Overview

FORGE is a frontend-only freelance marketplace prototype. Clients discover services or freelancers, inspect a service and its packages, then simulate checkout and track orders; freelancers can manage listings and order statuses. The app routes these experiences through shared context state persisted in browser storage. The graph follows documented routes and capabilities; unsampled page internals are represented only where README or the SOURCE INDEX supports them, so some state relationships are dashed and unverified.

Main entry points: [`frog/src/App.jsx`](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/App.jsx) (Route application), [`frog/src/context/AppContext.jsx`](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/context/AppContext.jsx) (Shared app state), [`frog/src/pages/Services.jsx`](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Services.jsx) (Service directory), [`frog/src/pages/Home.jsx`](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Home.jsx) (Home and search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and shared UI"]
  node_routes["Route application<br/>[App.jsx]"]
  node_layout["Navigation and layout<br/>[Layout.jsx]"]
  node_ui["Marketplace UI components<br/>[UI.jsx]"]
  node_motion["Page and grid motion<br/>[Motion.jsx]"]
end

subgraph group_discovery["Marketplace discovery"]
  node_home["Home and search<br/>[Home.jsx]"]
  node_services["Service directory<br/>[Services.jsx]"]
  node_service_detail["Service details and packages<br/>[ServiceDetails.jsx]"]
  node_freelancers["Freelancer directory<br/>[Freelancers.jsx]"]
  node_freelancer_profile["Freelancer profile"]
  node_catalog["Seed marketplace catalog<br/>[data.js]"]
end

subgraph group_client["Client workflow"]
  node_auth["Sign-in and registration<br/>[Register.jsx]"]
  node_favorites["Saved services<br/>[Favorites.jsx]"]
  node_checkout["Project checkout<br/>[Checkout.jsx]"]
  node_confirmation["Order confirmation<br/>[OrderSuccess.jsx]"]
  node_orders["Order list<br/>[Orders.jsx]"]
  node_dashboard["Client dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_freelancer["Freelancer workspace"]
  node_freelancer_dashboard["Freelancer workspace"]
end

subgraph group_state["Demo state"]
  node_app_state["Shared app state<br/>[AppContext.jsx]"]
  node_storage[("Browser local storage")]
end

node_visitor(("Marketplace visitor"))

node_visitor -->|"opens"| node_routes
node_routes -->|"wraps routes"| node_layout
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_services
node_routes -->|"routes to"| node_service_detail
node_routes -->|"routes to"| node_freelancers
node_routes -->|"routes to"| node_freelancer_profile
node_routes -->|"routes to"| node_favorites
node_routes -->|"routes to"| node_auth
node_routes -->|"routes to"| node_checkout
node_routes -->|"routes to"| node_confirmation
node_routes -->|"routes to"| node_orders
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_freelancer_dashboard
node_routes -->|"provides state"| node_app_state
node_layout -->|"renders logo"| node_ui
node_home -->|"searches via"| node_services
node_home -->|"uses freelancer data"| node_catalog
node_services -->|"renders cards"| node_ui
node_service_detail -->|"links to"| node_freelancer_profile
node_service_detail -->|"reads and updates"| node_app_state
node_home -->|"reads services"| node_app_state
node_services -->|"filters services"| node_app_state
node_auth -.->|"simulates account actions"| node_app_state
node_favorites -.->|"uses saved services"| node_app_state
node_checkout -.->|"simulates checkout"| node_app_state
node_orders -.->|"uses order state"| node_app_state
node_dashboard -.->|"uses client state"| node_app_state
node_freelancer_dashboard -.->|"manages listings and orders"| node_app_state
node_app_state -->|"loads initial data"| node_catalog
node_app_state -->|"persists demo state"| node_storage
node_confirmation -.->|"continues to orders"| node_orders
node_services -->|"uses page motion"| node_motion
node_service_detail -->|"uses page motion"| node_motion

click node_routes "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/App.jsx"
click node_layout "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/Layout.jsx"
click node_ui "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/UI.jsx"
click node_motion "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/Motion.jsx"
click node_home "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Home.jsx"
click node_services "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Services.jsx"
click node_service_detail "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/ServiceDetails.jsx"
click node_freelancers "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Freelancers.jsx"
click node_freelancer_profile "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/FreelancerProfile.jsx"
click node_catalog "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/data.js"
click node_auth "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Register.jsx"
click node_favorites "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Favorites.jsx"
click node_checkout "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Checkout.jsx"
click node_confirmation "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/OrderSuccess.jsx"
click node_orders "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Orders.jsx"
click node_dashboard "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Dashboard.jsx"
click node_freelancer_dashboard "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/FreelancerDashboard.jsx"
click node_app_state "https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/context/AppContext.jsx"

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_routes,node_layout,node_ui,node_motion toneBlue
class node_home,node_services,node_service_detail,node_freelancers,node_freelancer_profile,node_catalog toneAmber
class node_auth,node_favorites,node_checkout,node_confirmation,node_orders,node_dashboard toneMint
class node_freelancer_dashboard toneRose
class node_app_state,node_storage,node_visitor toneIndigo
```

## Components

### App and shared UI

- [Route application](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/App.jsx): `frog/src/App.jsx`
- [Navigation and layout](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/Layout.jsx): `frog/src/components/Layout.jsx`
- [Marketplace UI components](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/UI.jsx): `frog/src/components/UI.jsx`
- [Page and grid motion](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/components/Motion.jsx): `frog/src/components/Motion.jsx`

### Marketplace discovery

- [Home and search](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Home.jsx): `frog/src/pages/Home.jsx`
- [Service directory](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Services.jsx): `frog/src/pages/Services.jsx`
- [Service details and packages](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/ServiceDetails.jsx): `frog/src/pages/ServiceDetails.jsx`
- [Freelancer directory](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Freelancers.jsx): `frog/src/pages/Freelancers.jsx`
- [Freelancer profile](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/FreelancerProfile.jsx): `frog/src/pages/FreelancerProfile.jsx`
- [Seed marketplace catalog](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/data.js): `frog/src/data.js`

### Client workflow

- [Sign-in and registration](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Register.jsx): `frog/src/pages/Register.jsx`
- [Saved services](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Favorites.jsx): `frog/src/pages/Favorites.jsx`
- [Project checkout](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Checkout.jsx): `frog/src/pages/Checkout.jsx`
- [Order confirmation](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/OrderSuccess.jsx): `frog/src/pages/OrderSuccess.jsx`
- [Order list](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Orders.jsx): `frog/src/pages/Orders.jsx`
- [Client dashboard](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/Dashboard.jsx): `frog/src/pages/Dashboard.jsx`

### Freelancer workspace

- [Freelancer workspace](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/pages/FreelancerDashboard.jsx): `frog/src/pages/FreelancerDashboard.jsx`

### Demo state

- [Shared app state](https://github.com/kiraiiv-max/frog-freelance/blob/master/frog/src/context/AppContext.jsx): `frog/src/context/AppContext.jsx`
- **Browser local storage**

### Other components

- **Marketplace visitor**

## Connections

- Marketplace visitor → Route application: opens (evidence: `frog/src/App.jsx`)
- Route application → Navigation and layout: wraps routes (evidence: `frog/src/App.jsx`)
- Route application → Home and search: routes to (evidence: `frog/src/App.jsx`)
- Route application → Service directory: routes to (evidence: `frog/src/App.jsx`)
- Route application → Service details and packages: routes to (evidence: `frog/src/App.jsx`)
- Route application → Freelancer directory: routes to (evidence: `frog/src/App.jsx`)
- Route application → Freelancer profile: routes to (evidence: `frog/src/App.jsx`)
- Route application → Saved services: routes to (evidence: `frog/src/App.jsx`)
- Route application → Sign-in and registration: routes to (evidence: `frog/src/App.jsx`)
- Route application → Project checkout: routes to (evidence: `frog/src/App.jsx`)
- Route application → Order confirmation: routes to (evidence: `frog/src/App.jsx`)
- Route application → Order list: routes to (evidence: `frog/src/App.jsx`)
- Route application → Client dashboard: routes to (evidence: `frog/src/App.jsx`)
- Route application → Freelancer workspace: routes to (evidence: `frog/src/App.jsx`)
- Route application → Shared app state: provides state (evidence: `frog/src/App.jsx`)
- Navigation and layout → Marketplace UI components: renders logo (evidence: `frog/src/components/Layout.jsx`)
- Home and search → Service directory: searches via (evidence: `frog/src/pages/Home.jsx`)
- Home and search → Seed marketplace catalog: uses freelancer data (evidence: `frog/src/pages/Home.jsx`)
- Service directory → Marketplace UI components: renders cards (evidence: `frog/src/pages/Services.jsx`)
- Service details and packages → Freelancer profile: links to (evidence: `frog/src/pages/ServiceDetails.jsx`)
- Service details and packages → Shared app state: reads and updates (evidence: `frog/src/pages/ServiceDetails.jsx`)
- Home and search → Shared app state: reads services (evidence: `frog/src/pages/Home.jsx`)
- Service directory → Shared app state: filters services (evidence: `frog/src/pages/Services.jsx`)
- Sign-in and registration → Shared app state: simulates account actions (evidence: `README.md`)
- Saved services → Shared app state: uses saved services (evidence: `README.md`)
- Project checkout → Shared app state: simulates checkout (evidence: `README.md`)
- Order list → Shared app state: uses order state (evidence: `README.md`)
- Client dashboard → Shared app state: uses client state (evidence: `README.md`)
- Freelancer workspace → Shared app state: manages listings and orders (evidence: `README.md`)
- Shared app state → Seed marketplace catalog: loads initial data (evidence: `frog/src/context/AppContext.jsx`)
- Shared app state → Browser local storage: persists demo state (evidence: `README.md`)
- Order confirmation → Order list: continues to orders (evidence: `README.md`)
- Service directory → Page and grid motion: uses page motion (evidence: `frog/src/pages/Services.jsx`)
- Service details and packages → Page and grid motion: uses page motion (evidence: `frog/src/pages/ServiceDetails.jsx`)
