Inspiration

Nutrition labels are small, dense, and hard to compare. Standing in a European grocery aisle, I can pick up two similar yogurts and still spend a minute turning packages around, squinting at small print, and trying to remember whether a "B" is better than a "C". Nutri-Score already solves the understanding problem — it collapses nutrition into an A-to-E grade. What it doesn't solve is the friction: the label is on the back of the package, and you have to go looking for it.

Nutri-Glance started from that gap. AR glasses are the one device that can put the grade exactly where you're already looking — beside the product, without a phone in your hand. The question I wanted to answer was narrow and concrete: can a Lens turn a thirty-second label-reading task into a three-second glance?

What it does

Nutri-Glance is an AR Lens for Snap Spectacles. You look at a product on a shelf and its Nutri-Score appears as a single large, color-coded letter floating beside the package — offset so it never covers the label, with the product name underneath.

  • Glance to reveal. Gaze at a product for a short dwell (~0.5s) and its grade badge appears.
  • Side-by-side comparison. Two products on the shelf show their grades at once, so a healthy-vs-poor choice reads in seconds. Badges linger ~1s after you look away so the comparison survives a head turn.
  • Pin and compare. A pinch pins a badge in place while you look at the other product; pinch again, or look away for a couple of seconds, and it clears.
  • No false grades. A product with no assigned grade shows no badge at all. I decided early that showing nothing is better than showing a wrong rating.

The demo scene is a virtual shelf with a yogurt (grade A), a snack bar (grade D), and an ungraded "mystery box" that exists specifically to make the no-badge state testable.

How I built it

Nutri-Glance was planned and built through the pipeline the hackathon required: a coding agent (Claude Code) with the Devpost Learn skill pack, the CLAD plugin, and Lens Studio MCP.

  1. Planning. The Learn skill pack interviewed me about the idea — the moment the Lens is at its best, where things sit, how you act on them with your hands, when badges appear and disappear, and how I'd know it worked. That interview became devpost/design-brief.md, including five concrete done criteria.
  2. Building. I started a fresh session, pointed CLAD at the design brief, and let the agent build the Lens in Lens Studio. The interaction logic lives in Assets/Scripts/, and the interaction rules have automated tests in Assets/Tests/.
  3. Verification. The five done criteria — reveal on yogurt, reveal on snack bar with a visibly different grade, pin-and-compare, fade-on-look-away, and no-badge-for-unassigned-product — are all walkable and clickable in Lens Studio's Interactive Preview.

The Lens targets Spectacles and runs in the Interactive "Sunlit Room" preview environment.

Challenges I ran into

  • The preview can't recognize real products. Lens Studio's preview has no live object recognition, so there was no way to hold up a real yogurt and have the Lens read it. I designed around this honestly: a virtual shelf with products pre-wired to hard-coded grades, demonstrated in Interactive Preview. The recognition experience — look, badge appears — is what the demo validates; the computer-vision pipeline is what production would add.
  • My own fade timing broke my own criterion. The design brief called for a 0.5s fade on look-away, which sounded right until I checked it against the done criteria: the yogurt's badge would vanish before I finished turning to the snack bar, making the side-by-side comparison impossible. I changed unpinned badges to hold at full strength for 1s before fading, and exposed dwellSec and lingerSec in the Inspector so the feel can be tuned on real hardware.
  • Placeholder art. The 3D model generator returned a sign-in error even though Lens Studio showed me as signed in. Rather than block the build, I shipped clearly-marked placeholder geometry and positioned it so real models can drop into the same spots without code changes.
  • The field of view is narrow. Two products 50 cm apart pushed the shelf toward the edge of what the glasses can show, so I brought them to ~45 cm — still requiring a slight head turn to compare, which is the interaction I wanted.

Accomplishments that I'm proud of

  • The side-by-side comparison moment actually works: two products, two grades, visible at once, in three seconds.
  • I kept the interaction to one gesture. Look to reveal, pinch to pin, done — no menus, no gesture vocabulary, nothing that turns the glasses into a controller.
  • The "no false grades" rule is a testable part of the demo, not a footnote: the ungraded mystery box is on the shelf so you can watch the Lens correctly show nothing.
  • I built the whole thing through the agent pipeline the hackathon asked for, and the planning documents that shaped it are in the repo under devpost/.

What I learned

  • Timing is design, not tuning. A half-second is the difference between a coherent comparison and a broken one. I learned to treat dwell and linger as first-class design decisions and to expose them rather than bury them in code.
  • The preview is an honest collaborator. It tells you quickly which parts of an idea are real and which are wishful. Designing around what it can show made the project smaller and sharper.
  • Constraints improve the pitch. "Recognition is simulated in preview" sounds like a limitation until you say it plainly and explain what is validated. Scoping honestly made the demo easier to describe, not harder.

What's next for Nutri Glance

  • Real product recognition. Replace the pre-wired grades with a product-recognition model so the Lens works on real packages rather than placeholders.
  • Real-hardware feel testing. The dwell and linger values, and hand-tracked pinch, can only be judged on Spectacles. The Inspector controls let you tune those without touching code.
  • Beyond the shelf. The same glance-and-grade pattern applies to restaurant menus, vending machines, and online grocery listings — anywhere a rating exists but is buried.
  • A wider catalogue. Two products prove the comparison; a real product database is what makes it useful.

Built With

  • clad
  • claude
  • code
  • devpost
  • leaf
  • learn
  • lens
  • mcp
  • skill
  • snap
  • spectacles
  • studio
  • typescript
Share this project:

Updates

Submission history