Skip to content

Enable frontend distribution as npm package with backend integration#2

Draft
Copilot wants to merge 7 commits intodevelopfrom
copilot/discuss-npm-package-ibex-frontend
Draft

Enable frontend distribution as npm package with backend integration#2
Copilot wants to merge 7 commits intodevelopfrom
copilot/discuss-npm-package-ibex-frontend

Conversation

Copy link

Copilot AI commented Feb 17, 2026

Addresses distribution question: frontend can now be published to npm (@ibex/frontend) and consumed independently while integrating with pip-installed backend via REST API.

Package Configuration

  • package.json: Publishing metadata, CLI entry point (ibex-frontend), prepublish hooks
  • .npmignore: Package content control (114 files)
  • bin/ibex-frontend: Node CLI that configures API URL, checks backend availability, launches Electron

Integration Architecture

Frontend and backend communicate over HTTP, allowing independent installation:

# Separate installation
pip install ibex
npm install -g @ibex/frontend

# Backend serves API
run_ibex_service -p 8000

# Frontend connects to any backend
ibex-frontend --api-url http://localhost:8000

Config via ~/.config/ibex/config.json or CLI flags.

Automation & Tooling

  • launch_ibex.py: Python launcher with random port sampling, localhost binding
  • quick-start.sh: Bash launcher with ss/netstat fallback
  • .github/workflows/publish-frontend-npm.yml: Automated npm publishing on releases
  • .github/scripts/sync_version.py: Version synchronization between packages

Documentation

  • NPM_PACKAGE_GUIDE.md: Installation scenarios, version compatibility, troubleshooting
  • VERSION_COMPATIBILITY.md: Independent semver strategy with API versioning
  • Updated README.md with npm installation option

Security

  • Socket binding restricted to localhost (127.0.0.1)
  • Workflow permissions explicitly scoped to contents: read

No breaking changes—source installation remains unchanged. npm package is additive distribution option.


✨ 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 6 commits February 17, 2026 15:03
Co-authored-by: deepakmaroo <56668629+deepakmaroo@users.noreply.github.com>
Co-authored-by: deepakmaroo <56668629+deepakmaroo@users.noreply.github.com>
Co-authored-by: deepakmaroo <56668629+deepakmaroo@users.noreply.github.com>
…aintainability

Co-authored-by: deepakmaroo <56668629+deepakmaroo@users.noreply.github.com>
Co-authored-by: deepakmaroo <56668629+deepakmaroo@users.noreply.github.com>
Copilot AI changed the title [WIP] Evaluate publishing ibex frontend as npm package Enable frontend distribution as npm package with backend integration Feb 17, 2026
Copilot AI requested a review from deepakmaroo February 17, 2026 15:15
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