Repository
meta-wearables-webapp
AI-assisted development toolkit for building web applications on Meta Ray-Ban Display glasses.
- Constraint
- Reason
- 600x600px viewport
- Display size
- D-pad navigation only
- EMG wristband translates gestures to arrow keys
- Dark backgrounds
- Black is transparent on the additive display
Specs
- ConstraintReason
- 600x600px viewportDisplay size
- D-pad navigation onlyEMG wristband translates gestures to arrow keys
- Dark backgroundsBlack is transparent on the additive display
- High contrast elementsReadability on a small transparent display
- .focusable class on interactive elementsD-pad focus management
- SkillDescription
- create-webappScaffold a new web app from scratch
- add-uiAdd or refine display-friendly UI
- add-text-inputText fields, search boxes, and forms via the on-glasses composer
- add-gesturesEMG pinch-to-activate and opt-in continuous drag
- connect-apiConnect to REST/WebSocket APIs
- add-offlineService Worker + Cache API offline support
- add-device-sensorsAccelerometer, gyroscope, compass, GPS, and geolocation
- add-local-storageAdd persistent browser storage
- test-on-deviceTest and debug on desktop and glasses
- publish-to-vercelDeploy to a public HTTPS URL
- qr-codeGenerate add-to-glasses QR codes
- passcode-for-testingAdd a lightweight test passcode gate
README
Meta Wearables Web App AI Toolkit
An AI toolkit that helps you build Web Apps for Meta Ray-Ban Display glasses. It contains plugins for Claude Code, Codex, Cursor, and GitHub Copilot.
What are Web Apps for Meta Ray-Ban Display glasses?
Web Apps are standard HTML/CSS/JavaScript applications rendered on Meta Ray-Ban Display (MRBD) glasses — an easy and familiar way to build experiences for the glasses, especially with AI-assisted coding tools. See the full Web Apps developer documentation on the Wearables Developer Center for capabilities, design constraints, and best practices.
Live Documentation MCP
MCP-capable tools can query current Web Apps docs through the shared public Wearables MCP server:
https://mcp.developer.meta.com/wearables
Use the search_webapps_docs tool for Web Apps questions. The server does not require auth, OAuth, tokens, or custom authorization headers.
If your AI tool supports MCP, configure this remote HTTP server and call search_webapps_docs for current Web Apps documentation. If your tool does not support MCP, use the developer docs URL above directly.
Quick Start
1. Install AI Skills
Option A — Plugin Marketplace (recommended for Claude Code and Codex)
Claude Code:
# Add the marketplace (one-time)
/plugin marketplace add https://github.com/facebook/meta-wearables-webapp
# Install the plugin
/plugin install meta-wearables-webapp@meta-wearables
# Update plugin
/plugin marketplace update meta-wearables && /plugin update meta-wearables-webapp@meta-wearables
Codex CLI:
# Add the marketplace (one-time, run in your terminal)
codex plugin marketplace add https://github.com/facebook/meta-wearables-webapp
Start Codex, and type /plugins → tab to [Meta Wearables] → install.
# Refresh the marketplace source
codex plugin marketplace upgrade meta-wearables
Then inside Codex: go to /plugins — if a newer version is available, select the option to update.
Option B — Install Script (all tools)
# Clone this repo and Install for your preferred tool
git clone https://github.com/facebook/meta-wearables-webapp.git
cd meta-wearables-webapp
./install-skills.sh claude # Claude Code
./install-skills.sh cursor # Cursor
./install-skills.sh copilot # GitHub Copilot
./install-skills.sh all # All tools + AGENTS.md
# Or remote install (no clone needed)
curl -sL https://raw.githubusercontent.com/facebook/meta-wearables-webapp/main/install-skills.sh | bash
2. Build a Web App
Open your project in an AI-assisted editor and describe what you want:
"Create a weather app that shows the 5-day forecast with D-pad navigation"
The AI will scaffold index.html, styles.css, and app.js following the display glasses design system.
3. Test in Browser
Start your web app locally however your project requires (e.g., open index.html directly, run a dev server, npm run dev, etc.) and open it in your desktop browser. Use arrow keys to simulate D-pad input.
To test sensor data like geolocation or IMU sensors:
- Open Chrome DevTools (F12)
- Click the ⋮ (three-dot menu) in the top-right of DevTools
- Go to More tools → Sensors
- Override Location with custom latitude/longitude and change Orientation as needed
4. Deploy to Glasses
Your web app must be hosted at a publicly available HTTPS URL. This plugin supports deploying to Vercel, but Vercel is just one option — you can use any hosting provider as long as the result is a publicly accessible HTTPS URL.
Once deployed, add the web app to your glasses:
Option A — QR code (recommended):
Use the plugin's publish skill to generate a QR code. Scan it with your phone to deep link directly into the Meta AI app and add the web app to your glasses.
Option B — Manual setup:
- Open the Meta AI app on your phone
- Go to Devices → Display Glasses settings
- Navigate to App connections → Web apps
- Tap Add a web app
- Enter the app name and your deployed URL
Design Constraints
| Constraint | Reason |
|---|---|
| 600x600px viewport | Display size |
| D-pad navigation only | EMG wristband translates gestures to arrow keys |
| Dark backgrounds | Black is transparent on the additive display |
| High contrast elements | Readability on a small transparent display |
.focusable class on interactive elements |
D-pad focus management |
Skills Included
| Skill | Description |
|---|---|
create-webapp |
Scaffold a new web app from scratch |
add-ui |
Add or refine display-friendly UI |
add-text-input |
Text fields, search boxes, and forms via the on-glasses composer |
add-gestures |
EMG pinch-to-activate and opt-in continuous drag |
connect-api |
Connect to REST/WebSocket APIs |
add-offline |
Service Worker + Cache API offline support |
add-device-sensors |
Accelerometer, gyroscope, compass, GPS, and geolocation |
add-local-storage |
Add persistent browser storage |
test-on-device |
Test and debug on desktop and glasses |
publish-to-vercel |
Deploy to a public HTTPS URL |
qr-code |
Generate add-to-glasses QR codes |
passcode-for-testing |
Add a lightweight test passcode gate |
Display Simulator Chrome Extension
The Meta Ray-Ban Display Simulator is a Chrome extension that recreates the 600×600 display surface of Meta Ray-Ban Display glasses in your browser — additive blending, environment backgrounds, D-pad input, display tuning, and recording — so you can preview and QA your web app without the hardware.
Install
- Install the Meta Ray-Ban Display Simulator from the Chrome Web Store.
- Navigate to your web app and click the extension icon to toggle the simulator on.
Features
- 600×600 display frame — Exact glasses resolution with optional frame overlay and additive blending.
- Environment backgrounds — Built-in scenes, custom image upload, animated backgrounds, and live webcam for real-world blending preview.
- D-pad input — On-screen directional buttons and Select that dispatch keyboard events. Physical arrow keys and Enter work too.
- Display settings — App brightness, background brightness, background blur, and auto-dimming controls.
- Viewport recorder — Record the simulator viewport as a downloadable WebM video for demos or bug reports.
- View on Glasses QR — Generate a deep link QR code to add the web app on your glasses, or share it with others so they can add it too.
- QA checklist — Automated checks for viewport meta, favicon, D-pad focusable elements, horizontal overflow, and visible focus styles.
Examples
See the examples/ directory for sample apps:
- Snake — Classic snake game with D-pad controls and high scores
Multi-Tool Support
Skills are authored once in plugins/meta-wearables-webapp/skills/ and distributed via:
- Claude Code — Plugin marketplace (recommended) or
install-skills.sh claude - Codex CLI — Plugin marketplace (recommended) or
install-skills.sh agents - Cursor — Cursor plugin via
install-skills.sh cursor(installs to~/.cursor/plugins/local/, single source of truth with Claude/Codex) - GitHub Copilot —
.github/copilot-instructions.mdviainstall-skills.sh copilot - Gemini CLI / Windsurf / Devin —
AGENTS.mdviainstall-skills.sh agents
License
This project is licensed under the BSD License — see LICENSE for details.