# lovve7/lo0ve architecture

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

- Interactive diagram: https://gitdiagram.com/lovve7/lo0ve
- Repository: https://github.com/lovve7/lo0ve

## Overview

CFnew is a Cloudflare Worker/Pages proxy and subscription service. Its main user workflow is to request a configured path or subscription, have the Worker apply settings and produce a client-compatible configuration, then import that configuration into a proxy client. The README also documents an administration UI, IP-management API, latency testing, and an optional VPN Gate residential egress subscription. Source excerpts were not available, so the graph uses README-documented relationships only; multiple responsibilities point to the documented top-level source file.

Main entry points: [`明文源吗`](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97) (Path routing), [`edgetunnel经典轻量版`](https://github.com/lovve7/lo0ve/blob/main/edgetunnel%E7%BB%8F%E5%85%B8%E8%BD%BB%E9%87%8F%E7%89%88) (Classic lightweight edition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Worker runtime"]
  node_worker["CFnew service"]
  node_request_routing["Path routing"]
  node_protocols["Proxy protocols"]
  node_transport["WebSocket transport"]
  node_preferred_sources["Preferred IP sources"]
end

subgraph group_management["Configuration and management"]
  node_config_ui["Configuration UI"]
  node_settings["Runtime settings"]
  node_kv[("Cloudflare KV")]
  node_ip_api["Preferred IP API"]
  node_latency["Latency testing"]
end

subgraph group_subscriptions["Subscriptions and clients"]
  node_subscription["Subscription endpoint"]
  node_conversion["Subscription conversion"]
  node_client_formats["Client formats"]
  node_classic["Classic lightweight edition"]
end

subgraph group_egress["Proxy egress"]
  node_outbound_proxy["Outbound proxy"]
  node_vpn_gate["VPN Gate nodes"]
  node_residential_subscription["Residential subscription"]
end

node_user(("Worker user"))
node_client(("Proxy client"))

node_user -->|"requests service"| node_worker
node_worker -->|"routes requests"| node_request_routing
node_request_routing -->|"serves settings"| node_config_ui
node_request_routing -->|"serves subscriptions"| node_subscription
node_request_routing -->|"routes API"| node_ip_api
node_config_ui -->|"edits settings"| node_settings
node_settings -->|"stores settings"| node_kv
node_ip_api -->|"manages IPs"| node_kv
node_user -->|"tests IPs"| node_latency
node_latency -->|"tests candidates"| node_preferred_sources
node_subscription -->|"generates formats"| node_conversion
node_conversion -->|"returns configurations"| node_client_formats
node_client_formats -->|"imports subscription"| node_client
node_client -->|"opens proxy connection"| node_protocols
node_protocols -->|"uses WebSocket forwarding"| node_transport
node_protocols -->|"uses configured proxy"| node_outbound_proxy
node_subscription -->|"offers optional mode"| node_residential_subscription
node_residential_subscription -->|"fetches nodes"| node_vpn_gate
node_user -->|"requests subscription"| node_classic

click node_worker "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_request_routing "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_protocols "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_transport "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_config_ui "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_settings "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_ip_api "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_latency "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_subscription "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_conversion "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_client_formats "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_preferred_sources "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_outbound_proxy "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_residential_subscription "https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97"
click node_classic "https://github.com/lovve7/lo0ve/blob/main/edgetunnel%E7%BB%8F%E5%85%B8%E8%BD%BB%E9%87%8F%E7%89%88"

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_request_routing,node_protocols,node_transport,node_preferred_sources,node_client toneBlue
class node_config_ui,node_settings,node_kv,node_ip_api,node_latency toneAmber
class node_subscription,node_conversion,node_client_formats,node_classic toneMint
class node_outbound_proxy,node_vpn_gate,node_residential_subscription,node_user toneRose
```

## Components

### Worker runtime

- [CFnew service](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Path routing](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Proxy protocols](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [WebSocket transport](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Preferred IP sources](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`

### Configuration and management

- [Configuration UI](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Runtime settings](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- **Cloudflare KV**
- [Preferred IP API](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Latency testing](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`

### Subscriptions and clients

- [Subscription endpoint](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Subscription conversion](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Client formats](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- [Classic lightweight edition](https://github.com/lovve7/lo0ve/blob/main/edgetunnel%E7%BB%8F%E5%85%B8%E8%BD%BB%E9%87%8F%E7%89%88): `edgetunnel经典轻量版`

### Proxy egress

- [Outbound proxy](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`
- **VPN Gate nodes**
- [Residential subscription](https://github.com/lovve7/lo0ve/blob/main/%E6%98%8E%E6%96%87%E6%BA%90%E5%90%97): `明文源吗`

### Other components

- **Worker user**
- **Proxy client**

## Connections

- Worker user → CFnew service: requests service (evidence: `README.md`)
- CFnew service → Path routing: routes requests (evidence: `README.md`)
- Path routing → Configuration UI: serves settings (evidence: `README.md`)
- Path routing → Subscription endpoint: serves subscriptions (evidence: `README.md`)
- Path routing → Preferred IP API: routes API (evidence: `README.md`)
- Configuration UI → Runtime settings: edits settings (evidence: `README.md`)
- Runtime settings → Cloudflare KV: stores settings (evidence: `README.md`)
- Preferred IP API → Cloudflare KV: manages IPs (evidence: `README.md`)
- Worker user → Latency testing: tests IPs (evidence: `README.md`)
- Latency testing → Preferred IP sources: tests candidates (evidence: `README.md`)
- Subscription endpoint → Subscription conversion: generates formats (evidence: `README.md`)
- Subscription conversion → Client formats: returns configurations (evidence: `README.md`)
- Client formats → Proxy client: imports subscription (evidence: `README.md`)
- Proxy client → Proxy protocols: opens proxy connection (evidence: `README.md`)
- Proxy protocols → WebSocket transport: uses WebSocket forwarding (evidence: `README.md`)
- Proxy protocols → Outbound proxy: uses configured proxy (evidence: `README.md`)
- Subscription endpoint → Residential subscription: offers optional mode (evidence: `README.md`)
- Residential subscription → VPN Gate nodes: fetches nodes (evidence: `README.md`)
- Worker user → Classic lightweight edition: requests subscription (evidence: `README.md`)
