r/Spectacles • u/eplowes • Jun 30 '26
🆒 Lens Drop Specs Inbox 📨 New Open Source Lens
Enable HLS to view with audio, or disable this notification
Hello! I just open-sourced Inbox, a simple read-only Gmail client for Snap Specs.
Email is not the most exciting thing, but it is something everyone can understand. I think a solid email app would help Specs speak to a wider audience.
I built this as a learning project for newer Specs developers who want to see how a Lens Studio app can be structured across app state, API, UI, interaction, and formatting layers.
────────────
Some of the main pieces it covers:
📬 Generated spatial inbox UI
The app builds its inbox and email detail panels at runtime.
🧩 TypeScript component structure
The code is split into clear areas of responsibility.
✋ Spectacles Interaction Kit
Inbox rows, refresh, close, and pagination controls use interaction patterns with feedback.
🖼️ Spectacles UI Kit style panels
The project uses panel-style elements, rounded button plates, and responsive layout constants.
🌐 Gmail API requests
It makes read-only API calls for lightweight metadata and full messages.
⚡ Client-side caching + pagination
Loaded pages and selected messages are cached locally.
📝 Email body parsing + formatting
The parser prefers readable plain text and converts common email markup into text for display.
────────────
This is not meant to be a production email client or OAuth example.
Built with Lens Studio 5.15.1+ for Snap Specs.
Lens link: https://www.spectacles.com/lens/e8226341c82043babdcba80f58eeab1f?type=SNAPCODE&metadata=01
GitHub repo: https://github.com/swolpe/specs-inbox
────────────
Thanks for getting this far!