Skip to content

Sampriv/new-thing

Repository files navigation

Shop the Room

Turn social inspiration into shoppable Wayfair searches.

Upload an Instagram reel-style video, social clip, room photo, or screenshot. An agent powered by Subconscious identifies visible furniture and decor, generates shopping-grade descriptions, and returns Wayfair product matches with images and prices.

Built on the Subconscious hack-webapp-starter for the Beat The Clock Agent Hack.

Quick start

pnpm install
cp .env.example .env.local
pnpm dev

Add your API keys to .env.local, then open http://localhost:3000.

Environment variables

Variable Required Description
SUBCONSCIOUS_API_KEY Yes Subconscious API key from subconscious.dev/platform for vision analysis.
SERPER_API_KEY Yes Serper.dev key — searches Google Shopping + Wayfair PDP pages for product matches.
BRAVE_SEARCH_API_KEY No Optional Brave Search API for additional product discovery.

Both SUBCONSCIOUS_API_KEY and SERPER_API_KEY are required for the app to analyze uploads and return product matches.

Features

  • Upload image or short video
  • Automatic frame extraction from videos (10%, 30%, 50%, 70%, 90%)
  • Subconscious multimodal analysis for furniture detection
  • Wayfair product pages with images and prices
  • Agent trace panel showing how results were built

API

POST /api/analyze

{
  "frames": ["data:image/jpeg;base64,..."],
  "mediaType": "image" | "video"
}

Returns structured furniture items with Wayfair product matches and an agent trace.

Stack

  • Next.js 16 · TypeScript · Tailwind CSS
  • Subconscious API (subconscious/tim-qwen3.6-27b)
  • Serper (Google Shopping + web search)
  • No database · No login

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages