Skip to content

Conversation

Copy link

Copilot AI commented Jan 24, 2026

Modernize HostAdmin by enabling a standalone desktop experience using a modern JS runtime (Electron), while keeping the existing extension UI and logic intact.

  • Electron wrapper + glue
    • Add minimal Electron main/preload/bridge and platform adapters to reuse core/editor.html without extension APIs.
    • Update glue resolution to select the right HostAdmin host across Chrome/Firefox/Electron safely.
  • Security hardening
    • Disable Node integration in the renderer and validate IPC payloads (size + null-byte checks).
    • Normalize line endings before writes in the Electron host file adapter.
  • Docs and build hygiene
    • Document Electron start path in README and ensure dist script ignores node_modules.

Example (Electron IPC guard + size limit):

const MAX_HOSTS_SIZE = 1024 * 1024;
const isValidHostsData = (data) =>
  typeof data === 'string' && data.indexOf('\0') === -1 && data.length <= MAX_HOSTS_SIZE;

Screenshot:
HostAdmin editor UI

Original prompt

modernize this using latest js tech
running with standalone electron? or samilar framework


✨ 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 3 commits January 24, 2026 07:45
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Co-authored-by: tg123 <170430+tg123@users.noreply.github.com>
Copilot AI changed the title [WIP] Modernize application using latest JavaScript technologies Add standalone Electron wrapper for HostAdmin Jan 24, 2026
Copilot AI requested a review from tg123 January 24, 2026 07:53
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