Cocoa-Way: Rust-Based Wayland Compositor Brings Linux Apps to macOS Without VMs
Cocoa-Way is an open-source Wayland compositor written in Rust that enables running Linux applications on macOS as native windows — eliminating the need for XQuartz, VNC, or full virtual machines.
Native macOS Wayland Compositor Enables Seamless Linux Desktop Streaming
Cocoa-Way is an open-source Wayland compositor written in Rust that enables running Linux applications on macOS as native windows — eliminating the need for XQuartz, VNC, or full virtual machines.
Architecture
The system uses the Wayland display protocol over Unix sockets (via waypipe) to stream Linux application windows to macOS:
- Linux host: waypipe server forwards the Wayland protocol from any application
- macOS client: Cocoa-Way composites streams using Metal/OpenGL
- Transport: SSH or Unix sockets bridge the two sides
Technical Highlights
- Zero VM overhead: Direct protocol translation, no virtualization layer
- Hardware-accelerated: Metal/OpenGL rendering pipeline
- HiDPI ready: Full Retina display support with proper DPI scaling
- Low latency: Orders of magnitude faster than XQuartz or VNC
- Native feel: Server-side window decorations with shadows and focus indicators
Installation
brew tap J-x-Z/tap
brew install cocoa-way waypipe-darwin
cocoa-way # Start compositor
./run_waypipe.sh ssh user@linux-host firefox
Roadmap
The project plans Windows (win-way) and Android NDK backends, plus multi-monitor support and clipboard synchronization.
GitHub: github.com/J-x-Z/cocoa-way (143+ stars)
← Previous: CERN Burns Tiny AI Models into Silicon for Real-Time LHC Collision FilteringNext: Europe's Residential Solar Boom: Householders Embrace Energy Independence →
0