Skip to content

Add VR mode for web-based overlays#10

Open
xikxp1 wants to merge 3 commits intomainfrom
claude/add-vr-web-overlays-Jof5t
Open

Add VR mode for web-based overlays#10
xikxp1 wants to merge 3 commits intomainfrom
claude/add-vr-web-overlays-Jof5t

Conversation

@xikxp1
Copy link
Copy Markdown
Owner

@xikxp1 xikxp1 commented Jan 16, 2026

This adds a new VR mode that serves overlays as web pages, allowing VR headset browsers to access them instead of using separate Tauri windows.

Key changes:

  • Add axum HTTP server to serve static files and API endpoints
  • Add VR settings (enable/disable, port, external access)
  • Update WebSocket server to bind to 0.0.0.0 when external access enabled
  • Create HTTP API endpoints for settings and port discovery
  • Modify frontend to work without Tauri IPC in VR mode
  • Create VR dashboard page at /vr that combines all overlays
  • Add VR settings UI in Application settings

When VR mode is enabled, users can access their overlays from any device on the network by navigating to the HTTP server URL.

This adds a new VR mode that serves overlays as web pages, allowing
VR headset browsers to access them instead of using separate Tauri
windows.

Key changes:
- Add axum HTTP server to serve static files and API endpoints
- Add VR settings (enable/disable, port, external access)
- Update WebSocket server to bind to 0.0.0.0 when external access enabled
- Create HTTP API endpoints for settings and port discovery
- Modify frontend to work without Tauri IPC in VR mode
- Create VR dashboard page at /vr that combines all overlays
- Add VR settings UI in Application settings

When VR mode is enabled, users can access their overlays from
any device on the network by navigating to the HTTP server URL.
@cursor
Copy link
Copy Markdown

cursor Bot commented Jan 16, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 2.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

xikxp1 and others added 2 commits January 17, 2026 00:06
Add support for running overlays inside OpenKneeBoard VR application:
- Add openkneeboard.ts with API utilities for detection, pixel size, and page-based navigation
- Update VR page to support OpenKneeBoard mode with page-based content API
- Update all overlay pages to call SetPreferredPixelSize when in OpenKneeBoard
- Support transparent backgrounds for proper VR overlay rendering

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
In development mode (debug builds with Vite), the VR HTTP server now
proxies requests to the Vite dev server (localhost:5173) instead of
serving static files from the build directory.

This enables VR mode to work during development with hot reload support.
- Add reqwest dependency for HTTP proxying
- Detect dev mode via cfg!(debug_assertions) and custom-protocol feature
- Proxy all non-API requests to Vite when in dev mode
- Show helpful error message if Vite dev server is not running

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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