How jimhasaburger/vmshare works
VMshare is a Windows VM remote-access agent intended to let users interact through a browser, providing screen/audio streaming and mouse input. The visible runtime workflow is browser connection to the agent, which streams encoded VM media and forwards mouse events through a VirtualBox session. The repository contains no browser client, so its UI and client-side protocol handling are not represented. The main implementation is concentrated in agent.py and vm_session.py; unsampled configuration details are kept limited to the existing config file.
Main entry points: agent.py Stream handler · vm_session.py VM session · config.json Agent configuration
Components 12
Agent services
- Agent configuration
config.json - Info API
agent.py - HTTP server
agent.py - WebSocket servers
agent.py - Mouse input handler
agent.py
VM access
- VM session
vm_session.py
Media capture
- Stream handler
agent.py - Video encoding
agent.py - Audio capture and encoding
agent.py
Other components
- Browser user
- VirtualBox VM
- VB-Cable device
Connections 16
- Browser user → Info API: requests info
README.md - Browser user → WebSocket servers: connects for streaming and input
README.md - Agent configuration → Info API: configures
agent.py - Agent configuration → WebSocket servers: configures
agent.py - HTTP server → Info API: routes
agent.py - WebSocket servers → Stream handler: serves
agent.py - WebSocket servers → Mouse input handler: serves
agent.py - Info API → VM session: reads status
agent.py - Mouse input handler → VM session: forwards mouse events
agent.py - Stream handler → VM session: captures frames and resolution
agent.py - Stream handler → Video encoding: encodes frames
agent.py - Stream handler → Audio capture and encoding: captures and encodes audio
agent.py - Audio capture and encoding → VB-Cable device: reads audio
agent.py - VM session → VirtualBox VM: connects and controls
vm_session.py - Video encoding → Browser user: sends video packets
agent.py - Audio capture and encoding → Browser user: sends audio packets
agent.py