# schooloffreelancing/school-of-freelancing architecture

> Architecture diagram of the GitHub repository schooloffreelancing/school-of-freelancing, 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/schooloffreelancing/school-of-freelancing
- Repository: https://github.com/schooloffreelancing/school-of-freelancing

## Overview

SOF is a static knowledge base and service catalog for live freelancing training and fixed-price infrastructure support. A visitor requests a page; the Cloudflare Worker handles routing and redirects, fetches static assets, and can negotiate HTML as Markdown. The catalog also exposes learning resources, country hubs, contact and compliance information, and machine-readable discovery/API metadata. The page families are documented in the README; the excerpts show Worker behavior but do not expose the implementation details of individual page templates or all route handling.

Main entry points: [`src/index.js`](https://github.com/schooloffreelancing/school-of-freelancing/blob/master/src/index.js) (Request Worker), [`freelancing-training`](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/freelancing-training) (Training catalog), [`client-support`](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/client-support) (Support catalog), [`resource-center`](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/resource-center) (Resource center)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_edge["Request delivery"]
  node_worker["Request Worker<br/>[index.js]"]
  node_static[("Static assets")]
end

subgraph group_catalog["Services and training"]
  node_training["Training catalog"]
  node_support["Support catalog"]
end

subgraph group_guidance["Guides and reach"]
  node_resources["Resource center"]
  node_locations["Country hubs"]
  node_homepage["Homepage<br/>[index.html]"]
end

subgraph group_discovery["Site information"]
  node_about["About SOF"]
  node_contact["Contact"]
  node_legal["Legal pages"]
  node_wellknown["Discovery metadata<br/>[.well-known]"]
  node_schemas["Content schemas"]
  node_api["OpenAPI catalog<br/>[openapi.json]"]
  node_llms["LLM indexes<br/>[llms.txt]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests page"| node_worker
node_worker -->|"fetches assets"| node_static
node_worker -->|"checks redirect target"| node_static
node_visitor -->|"browses courses"| node_training
node_visitor -->|"browses services"| node_support
node_visitor -->|"reads guides"| node_resources
node_visitor -->|"browses regions"| node_locations
node_visitor -->|"opens site"| node_homepage
node_visitor -->|"learns about SOF"| node_about
node_visitor -->|"contacts SOF"| node_contact
node_visitor -->|"reviews policies"| node_legal
node_visitor -.->|"reads discovery data"| node_wellknown
node_visitor -.->|"reads schemas"| node_schemas
node_visitor -.->|"reads API catalog"| node_api
node_visitor -.->|"reads indexes"| node_llms

click node_worker "https://github.com/schooloffreelancing/school-of-freelancing/blob/master/src/index.js"
click node_training "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/freelancing-training"
click node_support "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/client-support"
click node_resources "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/resource-center"
click node_locations "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/locations"
click node_homepage "https://github.com/schooloffreelancing/school-of-freelancing/blob/master/index.html"
click node_about "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/about-us"
click node_contact "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/contact-us"
click node_legal "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/legal"
click node_wellknown "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/.well-known"
click node_schemas "https://github.com/schooloffreelancing/school-of-freelancing/tree/master/schemas"
click node_api "https://github.com/schooloffreelancing/school-of-freelancing/blob/master/openapi.json"
click node_llms "https://github.com/schooloffreelancing/school-of-freelancing/blob/master/llms.txt"

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_worker,node_static toneBlue
class node_training,node_support toneAmber
class node_resources,node_locations,node_homepage toneMint
class node_about,node_contact,node_legal,node_wellknown,node_schemas,node_api,node_llms toneRose
class node_visitor toneIndigo
```

## Components

### Request delivery

- [Request Worker](https://github.com/schooloffreelancing/school-of-freelancing/blob/master/src/index.js): `src/index.js`
- **Static assets**

### Services and training

- [Training catalog](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/freelancing-training): `freelancing-training`
- [Support catalog](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/client-support): `client-support`

### Guides and reach

- [Resource center](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/resource-center): `resource-center`
- [Country hubs](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/locations): `locations`
- [Homepage](https://github.com/schooloffreelancing/school-of-freelancing/blob/master/index.html): `index.html`

### Site information

- [About SOF](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/about-us): `about-us`
- [Contact](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/contact-us): `contact-us`
- [Legal pages](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/legal): `legal`
- [Discovery metadata](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/.well-known): `.well-known`
- [Content schemas](https://github.com/schooloffreelancing/school-of-freelancing/tree/master/schemas): `schemas`
- [OpenAPI catalog](https://github.com/schooloffreelancing/school-of-freelancing/blob/master/openapi.json): `openapi.json`
- [LLM indexes](https://github.com/schooloffreelancing/school-of-freelancing/blob/master/llms.txt): `llms.txt`

### Other components

- **Visitor**

## Connections

- Visitor → Request Worker: requests page (evidence: `src/index.js`)
- Request Worker → Static assets: fetches assets (evidence: `src/index.js`)
- Request Worker → Static assets: checks redirect target (evidence: `src/index.js`)
- Visitor → Training catalog: browses courses (evidence: `README.md`)
- Visitor → Support catalog: browses services (evidence: `README.md`)
- Visitor → Resource center: reads guides (evidence: `README.md`)
- Visitor → Country hubs: browses regions (evidence: `README.md`)
- Visitor → Homepage: opens site (evidence: `README.md`)
- Visitor → About SOF: learns about SOF (evidence: `README.md`)
- Visitor → Contact: contacts SOF (evidence: `README.md`)
- Visitor → Legal pages: reviews policies (evidence: `README.md`)
- Visitor → Discovery metadata: reads discovery data
- Visitor → Content schemas: reads schemas
- Visitor → OpenAPI catalog: reads API catalog
- Visitor → LLM indexes: reads indexes
