System Topology
The engine intercepts all inbound traffic on the shared host, separating crawler SSR requests from dynamic client API traffic:
+-------------------------+
| Browser / SEO Crawler |
+------------+------------+
|
v
+-------------------------------------+
| PHP Shared Host (Edge) |
| - Router & Endpoint Interceptor |
| - cURL Transport Layer |
| - HTML Template Assembly (SSR) |
+------------------+------------------+
|
v cURL / JSON
+-------------------------------------+
| Node.js Backend (Render) |
| - Business Logic & Database Layer |
+-------------------------------------+
| Component | File Target | Operational Responsibility |
|---|---|---|
| Front Controller | index.php |
Entry point. Captures incoming request URI, HTTP verbs, and initiates routing dispatch. |
| Router & Dispatcher | Router.php |
Matches pattern routes against configuration rules. Determines whether to serve SSR HTML or stream dynamic API proxy payloads. |
| cURL Transport | Api.php |
Manages backend connectivity, header forwarding, HTTP payload parsing, and cURL execution to the decoupled Node service. |
| Global Configuration | config.php |
Houses target Node API host URLs, dynamic regex route definitions, and default fallback settings. |