spectacles-networking
Installation
SKILL.md
Spectacles Networking — Reference Guide
Two main mechanisms for network access in Spectacles lenses:
- InternetModule — HTTP/HTTPS via the Fetch API (recommended) or performHttpRequest. From Lens Studio 5.9, these APIs live in
InternetModule; prior to 5.9 they were inRemoteServiceModule. - Web View — embed a web page in the AR scene, with bidirectional JS messaging.
The Remote Service Gateway (RSG) is a third option but is specific to AI/cloud-model calls — see the spectacles-ai skill for that.
Official docs: Internet Access | Spectacles Home
Setup
- Enable Internet Access: Project Settings → Capabilities → ✅ Internet Access. Without this, all requests fail on-device.
- Fetch API: Spectacles OS v5.58.6621+ and Lens Studio v5.3+. Use InternetModule (Lens Studio 5.9+): add the module to your project and call
internetModule.fetch(request). - HTTPS is required for publishable lenses; HTTP requires Experimental APIs and cannot be published. Never ship a lens using HTTP, even in preview builds shared with others — switch to HTTPS before distributing.
- Fetch only works in Preview when Device Type Override is set to Spectacles.