跳到正文
DEV Community· retsnom12·· 48 分鐘前AI 評分41

UncleBook 用 Kiro 和 Groq Vision 重現 2011 社交媒體,加入 AI「叔叔評審」

Resurrecting 2011 Social Media with an AI "Uncle Judge" Using Kiro and Groq Vision

AI 導讀

開發者以 Kiro 和 Groq API 的 llama-3.2 多模態視覺模型打造 UncleBook,重現 2011 年社交媒體,並由 AI「叔叔評審」審核用戶照片。模型按拍攝角度、表情與姿勢、構圖及「叔叔氣質」四項評分,低於 70/100 便拒絕照片並提供改善提示。通過審核後,用戶可用 HTML5 Canvas 加上懷舊貼紙;HMAC 簽署令牌則用於防止繞過審核上載照片。

正文

retsnom12

Inspiration

Remember the early 2010s internet—classic blue header bars, boxy layouts, and the unmistakable charm of "uncle selfies" taken from a slightly-too-low angle with a dead-serious expression and topped off with rose (🌹) and tea (☕) emojis?

For the Kiroween 2026 Hackathon (Resurrection category), I wanted to bring back that nostalgic 2011 social media era, but with a modern gatekeeper: UncleBook, a social feed where you cannot publish a photo unless an AI "Uncle Judge" approves your pose.


What UncleBook Does

  1. The AI Uncle Vibe Check: When a user uploads a photo, a multimodal vision model (via Groq) evaluates it across four concrete 25-point criteria: camera angle, facial expression & posture, framing, and authentic "uncle vibe."
  2. Pass or Reject: If the score is below 70/100, UncleBook humorously rejects the photo and gives actionable tips (like lowering the camera angle or dropping the overly aesthetic pose).
  3. 2011 Retro Canvas Editor: Passing photos unlock a lightweight HTML5 Canvas sticker studio where users can drag, resize, and stamp classic nostalgic emojis (🌹, ☕, 🧿, 🙏) before publishing to the live feed.
  4. Tamper-Proof Upload Flow: Approved analyses generate an HMAC-signed token (SIGNING_SECRET) so users can't bypass the AI judge and upload unapproved photos directly to the database.

How Kiro Shaped the Development Workflow

I built UncleBook using Kiro (kiro.dev), and structuring the project around Kiro's features made moving from idea to deployed MVP remarkably fast:

  • Spec-Driven Development (.kiro/specs/): Instead of jumping blindly into UI components, I broke the app down into clear requirements and design specs—separating the deterministic AI scoring pipeline, the HMAC token verification, and the canvas sticker state.
  • Agent Steering (.kiro/steering/): Steering rules kept the visual identity strictly locked to the 2011 retro aesthetic, enforced clean TypeScript/Next.js 15 App Router patterns, and maintained content guardrails (such as keeping sticker palettes strictly nostalgic and apolitical).
  • Agent Hooks (.kiro/hooks/): Automated checks helped verify environment configurations and keep code consistent as I iterated on the Groq Vision prompt rubric (temperature: 0, seed: 42, plus SHA-256 hash caching for deterministic scoring).

Tech Stack

  • Framework: Next.js 15 (App Router, TypeScript)
  • AI Vision: Groq API (llama-3.2 multimodal vision with deterministic rubric scoring)
  • Backend & Storage: Supabase (PostgreSQL + Storage)
  • Frontend Graphics: HTML5 Canvas API for retro emoji overlays
  • IDE & Workflow: Kiro

Try It Yourself

Think you can pass the vibe check? Test your best low-angle serious selfie at unclebook.all-tools.dev and see what score the Uncle Judge gives you!

來源:DEV Community · dev.to