Skip to content

Add Node.js unified proxy and process manager#638

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-nodejs-proxy-manager
Draft

Add Node.js unified proxy and process manager#638
Copilot wants to merge 3 commits intomainfrom
copilot/create-nodejs-proxy-manager

Conversation

Copy link

Copilot AI commented Jan 29, 2026

Creates a native Node.js proxy that unifies Gradio UI, React UI, and update status page under a single host with path-based routing.

Changes

  • installer_scripts/js/unifiedProxy.js - HTTP/WebSocket proxy using only native Node.js modules

    • Routes /gradio/* → port 7770, /update/* → port 7771, /* → port 3000
    • Handles WebSocket upgrades for Gradio's real-time communication
    • Rewrites paths and headers when forwarding to backends
  • installer_scripts/js/processManager.js - Process lifecycle manager

    • Spawns Gradio (Python), React UI (Next.js), and update server
    • Waits for each service to become available before proceeding
    • Graceful shutdown via SIGINT/SIGTERM
  • installer_scripts/start_unified.{bat,sh} - Platform start scripts

  • installer_scripts/js/index.html - Updated to use relative URLs for /update prefix compatibility

  • installer_scripts/js/server.js - Added skipBrowser option to prevent double browser opening

Usage

# Full stack via process manager
node installer_scripts/js/processManager.js

# Proxy only (services running separately)
node installer_scripts/js/unifiedProxy.js

# Flags: --no-gradio, --no-react, --no-update, --proxy-only, --no-browser

Default proxy port: 7860 (configurable via PROXY_PORT env var)

Original prompt

Create a node.js proxy and process manager that unifies 1. automatic update status page 2. gradio UI and 3. react UI into a single host. Note that gradio has more than just HTTP requests. The resulting mounting URLs should be /gradio for gradio and /update for update and / for react. This script should rely on node.js not on npm packages. Read start_tts_webui.bat to see how the app is launched and bootstrapped.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 29, 2026 01:45
Co-authored-by: rsxdalv <6757283+rsxdalv@users.noreply.github.com>
Co-authored-by: rsxdalv <6757283+rsxdalv@users.noreply.github.com>
Copilot AI changed the title [WIP] Create Node.js proxy and process manager for UI unification Add Node.js unified proxy and process manager Jan 29, 2026
Copilot AI requested a review from rsxdalv January 29, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants