# mino-hobby-pro/min-tube-pro architecture

> Architecture diagram of the GitHub repository mino-hobby-pro/min-tube-pro, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mino-hobby-pro/min-tube-pro
- Repository: https://github.com/mino-hobby-pro/min-tube-pro

## Overview

#### Purpose and deployment model
MIN-Tube-Pro is a Node.js-hosted static web portal centered on YouTube/video access, with companion apps, games, chat, and multiple browser-proxy experiences. It is intended for Vercel, Render, Railway, or Procfile-based deployment. Primary runtime entry point: `index.js`; platform definitions: `vercel.json`, `render.yaml`, `railway.json`, `Procfile`.

#### HTTP server and route boundary
The Express server in `index.js` is the backend control point. It serves the primary static application and explicitly handles proxy-related path resolution so static proxy assets work despite their nested or extensionless endpoints. This is the principal server-side boundary; most product behavior is browser-side. Relevant assets: `index.js`, `public/`, `views/robots.ejs`.

#### Main MIN-Tube-Pro client
The core user-facing video application is a static HTML client, likely routed from the public content tree. It includes video viewing, settings, search, AI-related pages, and iframe-based integrations. Its data/API interactions occur directly from browser JavaScript or embeds rather than through a dedicated application API layer. Key paths: `public/min-tube-pro.html`, `public/home.html`, `public/app/settings.html`.

#### Video and embedded external-service flow
Video playback and content discovery depend on external YouTube-compatible services and embedded providers. The README identifies Elixir-Network/Wisp as a WebSocket-dependent video/proxy transport; browser requests enter the embed page with a target URL in the fragment, then proxy client/service-worker code rewrites and fetches remote content. Key paths: `proxy/embed.html`, `proxy/stream.html`, `proxy/url.html`. Material external service: `wss://wisp.rhw.one/`.

#### Elixir-style proxy stack
`proxy/` packages a static proxy frontend plus transport modules. The browser registers a service worker, then proxy client code routes requests through UV and transport adapters such as BareMux, Epoxy, and libcurl. `index.js` exposes selected proxy endpoints under `/proxy`, avoiding generic filesystem routing. Key paths: `proxy/prxy/register-sw.mjs`, `proxy/prxy/baremux/index.mjs`, `proxy/uv/uv.sw.js`.

#### Abyss V5 proxy application
`abyss/` is a separate, branded static proxy experience. Its frontend initializes a UV client and service worker; the service worker intercepts navigations/subresources and delegates rewriting/handling to bundled UV code. This is operationally distinct from the `/proxy` Elixir stack, although both provide browser-mediated remote access. Key paths: `abyss/index.html`, `abyss/static/index.js`, `abyss/static/uv/uv.sw.js`.

#### Content modules and client-owned state
The remainder of `public/` is a content-oriented static portal: standalone application pages, chat pages, and an extensive game catalog. Games are indexed through a JSON manifest and loaded as HTML experiences, creating a simple catalog-to-launch flow with no indicated server persistence layer. Key paths: `public/game/games.json`, `public/game/game.html`, `public/chat/chat.html`.

#### PWA and static hosting concerns
Service workers exist at root and within proxy applications, so cache scope, registration path, and deployment routing are important integration boundaries. A web manifest supports installable behavior. Static deployments must preserve the required proxy asset paths and service-worker files exactly. Key paths: `sw.js`, `manifest.json`, `abyss/static/register-sw.js`.

Main entry points: [`index.js`](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/index.js) (Express server), [`public/home.html`](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/home.html) (Portal home), [`public/min-tube-pro.html`](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/min-tube-pro.html) (MIN-Tube client), [`public/game/games.json`](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/game/games.json) (Game catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["Node hosting"]
  node_deploy{{"Deployment platforms<br/>hosting"}}
  node_express["Express server<br/>Node.js entry<br/>[index.js]"]
end

subgraph group_portal["Portal content"]
  node_public["Public static tree<br/>static assets"]
  node_min_tube["MIN-Tube client<br/>static video app<br/>[min-tube-pro.html]"]
  node_home["Portal home<br/>static page<br/>[home.html]"]
  node_settings["Settings page<br/>static page<br/>[settings.html]"]
  node_game_manifest["Game catalog<br/>JSON manifest<br/>[games.json]"]
  node_game_launcher["Game launcher<br/>static page<br/>[game.html]"]
  node_chat["Chat module<br/>static page<br/>[chat.html]"]
  node_pwa_sw["Root service worker<br/>[sw.js]"]
  node_manifest["Web manifest<br/>PWA manifest<br/>[manifest.json]"]
end

subgraph group_elixir["Elixir proxy"]
  node_proxy_pages["Proxy entry pages<br/>static proxy UI<br/>[embed.html]"]
  node_proxy_registration["Proxy SW registration<br/>browser bootstrap<br/>[register-sw.mjs]"]
  node_proxy_sw["UV service worker<br/>[uv.sw.js]"]
  node_baremux["BareMux transport<br/>transport adapter<br/>[index.mjs]"]
end

subgraph group_abyss["Abyss V5 proxy"]
  node_abyss_ui["Abyss V5 frontend<br/>static proxy app<br/>[index.html]"]
  node_abyss_client["Abyss UV client<br/>browser client<br/>[index.js]"]
  node_abyss_registration["Abyss SW registration<br/>browser bootstrap<br/>[register-sw.js]"]
  node_abyss_sw["Abyss UV service worker<br/>[uv.sw.js]"]
end

node_wisp{{"Wisp transport<br/>external WebSocket service"}}

node_deploy -->|"runs"| node_express
node_express -->|"serves"| node_public
node_public -->|"contains"| node_min_tube
node_public -->|"contains"| node_home
node_public -->|"contains"| node_settings
node_public -->|"contains"| node_game_manifest
node_public -->|"contains"| node_chat
node_min_tube -->|"opens"| node_settings
node_game_manifest -->|"selects game"| node_game_launcher
node_home -.->|"registers"| node_pwa_sw
node_manifest -.->|"enables install"| node_home
node_express -->|"exposes /proxy"| node_proxy_pages
node_proxy_pages -->|"boots"| node_proxy_registration
node_proxy_registration -->|"registers"| node_proxy_sw
node_proxy_sw -->|"uses"| node_baremux
node_baremux -->|"connects"| node_wisp
node_abyss_ui -->|"loads"| node_abyss_client
node_abyss_client -->|"registers"| node_abyss_registration
node_abyss_registration -->|"installs"| node_abyss_sw
node_abyss_sw -.->|"proxies via"| node_wisp

click node_express "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/index.js"
click node_min_tube "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/min-tube-pro.html"
click node_home "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/home.html"
click node_settings "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/app/settings.html"
click node_game_manifest "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/game/games.json"
click node_game_launcher "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/game/game.html"
click node_chat "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/chat/chat.html"
click node_pwa_sw "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/sw.js"
click node_manifest "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/manifest.json"
click node_proxy_pages "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/embed.html"
click node_proxy_registration "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/prxy/register-sw.mjs"
click node_proxy_sw "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/uv/uv.sw.js"
click node_baremux "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/prxy/baremux/index.mjs"
click node_abyss_ui "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/index.html"
click node_abyss_client "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/index.js"
click node_abyss_registration "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/register-sw.js"
click node_abyss_sw "https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/uv/uv.sw.js"

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_deploy,node_express toneBlue
class node_public,node_min_tube,node_home,node_settings,node_game_manifest,node_game_launcher,node_chat,node_pwa_sw,node_manifest toneAmber
class node_proxy_pages,node_proxy_registration,node_proxy_sw,node_baremux toneMint
class node_abyss_ui,node_abyss_client,node_abyss_registration,node_abyss_sw toneRose
class node_wisp toneNeutral
```

## Components

### Node hosting

- **Deployment platforms**: hosting · Vercel, Render, Railway, or Procfile hosting.
- [Express server](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/index.js): Node.js entry · Serves static content and selected proxy paths. · `index.js`

### Portal content

- **Public static tree**: static assets · Primary portal pages and content modules.
- [MIN-Tube client](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/min-tube-pro.html): static video app · Browser-side video, search, settings, and embedded integrations. · `public/min-tube-pro.html`
- [Portal home](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/home.html): static page · `public/home.html`
- [Settings page](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/app/settings.html): static page · `public/app/settings.html`
- [Game catalog](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/game/games.json): JSON manifest · Indexes launchable game experiences. · `public/game/games.json`
- [Game launcher](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/game/game.html): static page · Loads catalog-selected HTML games. · `public/game/game.html`
- [Chat module](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/public/chat/chat.html): static page · `public/chat/chat.html`
- [Root service worker](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/sw.js): service worker · Controls root caching scope. · `sw.js`
- [Web manifest](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/manifest.json): PWA manifest · `manifest.json`

### Elixir proxy

- [Proxy entry pages](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/embed.html): static proxy UI · Accept target URLs through browser-facing proxy pages. · `proxy/embed.html`
- [Proxy SW registration](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/prxy/register-sw.mjs): browser bootstrap · `proxy/prxy/register-sw.mjs`
- [UV service worker](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/uv/uv.sw.js): service worker · Rewrites and handles proxied remote requests. · `proxy/uv/uv.sw.js`
- [BareMux transport](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/proxy/prxy/baremux/index.mjs): transport adapter · Routes proxy transport traffic. · `proxy/prxy/baremux/index.mjs`

### Abyss V5 proxy

- [Abyss V5 frontend](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/index.html): static proxy app · Separate branded browser proxy experience. · `abyss/index.html`
- [Abyss UV client](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/index.js): browser client · Initializes proxy navigation handling. · `abyss/static/index.js`
- [Abyss SW registration](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/register-sw.js): browser bootstrap · `abyss/static/register-sw.js`
- [Abyss UV service worker](https://github.com/mino-hobby-pro/min-tube-pro/blob/main/abyss/static/uv/uv.sw.js): service worker · Intercepts navigations and subresources for rewriting. · `abyss/static/uv/uv.sw.js`

### Other components

- **Wisp transport**: external WebSocket service · WebSocket-dependent video and proxy transport.

## Connections

- Deployment platforms → Express server: runs
- Express server → Public static tree: serves
- Public static tree → MIN-Tube client: contains
- Public static tree → Portal home: contains
- Public static tree → Settings page: contains
- Public static tree → Game catalog: contains
- Public static tree → Chat module: contains
- MIN-Tube client → Settings page: opens
- Game catalog → Game launcher: selects game
- Portal home → Root service worker: registers
- Web manifest → Portal home: enables install
- Express server → Proxy entry pages: exposes /proxy
- Proxy entry pages → Proxy SW registration: boots
- Proxy SW registration → UV service worker: registers
- UV service worker → BareMux transport: uses
- BareMux transport → Wisp transport: connects
- Abyss V5 frontend → Abyss UV client: loads
- Abyss UV client → Abyss SW registration: registers
- Abyss SW registration → Abyss UV service worker: installs
- Abyss UV service worker → Wisp transport: proxies via
