| name | meta-display-webapps |
| description | Load when the user is building an HTML/CSS/JS Web App for Meta Ray-Ban Display โ choosing a viewport, wiring Neural Band and Cap Touch input, designing for the additive display, handling motion sensors or geolocation, or deploying over HTTPS so MRBD can load it. Don't load for non-MRBD Meta devices โ those use the DAT path; route to meta-wearables-dat. |
| license | MIT |
| metadata | {"author":"HKTITAN","version":"1.0.0","graph":true,"depends":["meta-wearables"]} |
Meta Display Web Apps
A Web App is the runtime model on Meta Ray-Ban Display. The page is HTML/CSS/JS served from your HTTPS URL; the glasses load it and render to the in-lens additive display; Neural Band and Cap Touch translate gestures into keyboard events; sensors and geolocation are exposed through standard W3C APIs from the paired phone. This skill is the on-the-ground guide to writing apps for that runtime.
If the target device isn't MRBD, stop here and load [[../meta-wearables/SKILL]] for a routing check.
When to load
Triggers:
- "Build a Web App for Meta Ray-Ban Display"
- "MRBD HTML/CSS/JS"
- "Why is my Web App not rendering on the glasses"
- "Neural Band web input mapping"
- "What's the viewport for MRBD"
- "Cap Touch arrow keys"
- "Web App over HTTPS Meta glasses"
Don't load for:
- Ray-Ban Meta Gen 1/2 or Oakley HSTN/Vanguard โ those are DAT, not Web Apps. Route to [[../meta-wearables-dat/SKILL]].
- Visual / brand design questions โ see [[../meta-display-design/SKILL]].
Decide first
The architecture decisions before code:
- Routing model โ is your app one screen, many screens with focus-driven navigation, or a continuous experience? Focus management is the defining UX of MRBD.
- Sensor reliance โ does your app need DeviceMotionEvent, DeviceOrientationEvent, or geolocation? Each requires a permission gesture. Plan that gesture.
- State persistence โ
localStorage (5 MB) is your only on-glasses storage. If you need more, the data lives elsewhere.
- Distribution โ share-link to up to 100 testers via Meta AI, or password-protect the URL at your hosting layer? See [[references/developer-mode-test]].
Map of content
Viewport and rendering
- [[references/viewport-600]] โ the exact 600ร600 viewport spec and the meta + body CSS that pins it.
- [[references/additive-display-contrast]] โ why dark backgrounds aren't a style preference but a rendering requirement.
- [[references/typography]] โ the minimum font sizes and the readability floor.
- [[references/tap-targets]] โ 88 px minimum tap height for
.focusable elements.
Input
- [[references/focusable-d-pad]] โ the
.focusable class pattern and the focus-management JavaScript shape.
- [[references/neural-band-gesture-mapping]] โ how Neural Band gestures land as
KeyboardEvents.
- [[references/cap-touch-input]] โ temple swipe and pinch as the same event stream.
Sensors and data
- [[references/motion-sensors]] โ
DeviceMotionEvent and DeviceOrientationEvent, plus the permission gesture rule.
- [[references/geolocation]] โ
navigator.geolocation proxied through the paired phone.
- [[references/local-storage]] โ Web Storage on-glasses; 5 MB cap each.
What you don't have
- [[references/unsupported-apis]] โ camera, mic, text input, offline support, notifications, back navigation โ explicitly off the table today.
Shipping
- [[references/https-deployment]] โ HTTPS-only hosting and the practical platform list.
- [[references/app-icons]] โ Unicode symbols and PNG icons; no SVG.
- [[references/developer-mode-test]] โ Developer Mode toggle, adding the URL, share-link distribution.
Verify
Before claiming a Web App ships:
Smoke test
If this skill loaded correctly, the agent should answer:
- What's the exact viewport meta tag and body CSS for a Meta Ray-Ban Display Web App? (Expected: cites [[references/viewport-600]] with the 600ร600 spec and
user-scalable=no.)
- Why do Web Apps need dark backgrounds? (Expected: additive waveguide โ black pixels are transparent; cites [[references/additive-display-contrast]].)
- Can my Web App stream the camera? (Expected: no โ listed under "Web Apps do not yet support" in [[references/unsupported-apis]].)
- How does a pinch on the Neural Band reach my app? (Expected: as an
Enter key event; cites [[references/neural-band-gesture-mapping]] and [[../meta-wearables/references/neural-band]].)
Sibling skills
- [[../meta-wearables/SKILL]] โ routing across the Meta wearables family.
- [[../meta-wearables-dat/SKILL]] โ the DAT path for everything not MRBD.
- [[../meta-display-design/SKILL]] โ design patterns for the additive display.
Sources