Buildy is an agentic PC parts planner built with Next.js, Supabase, and Gemini. Users answer three onboarding questions, receive a starter build, and then refine every component inside an editor that stays aware of budget and compatibility.
- Next.js App Router
- Tailwind CSS v4
- Supabase Auth + persistence
- Gemini API for role-based recommendation summaries
- Local normalized catalog for the initial curated parts data
- Install dependencies:
npm install- Copy
.env.exampleto.env.localand fill in:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
GEMINI_API_KEY=
GEMINI_MODEL=gemini-2.5-flash-lite
PRICE_SYNC_SECRET=-
Apply the schema in
supabase/schema.sqlto your Supabase project. -
Start the app:
npm run dev- Onboarding asks for budget range, use case, and priorities.
- The app calls
/api/buildto generate a starter build. - The editor lets the user replace any component category.
- Every change triggers a fresh recommendation pass.
- The current build flow is guest-only.
- If
GEMINI_API_KEYis missing or Gemini returns unusable output, the app falls back to local recommendation logic. - Supabase remains configured for persistence features, but the current UI runs in guest mode.
- The initial catalog is local and curated so the recommendation pipeline has a stable normalized schema before live data is added.
tracked_partsstores the latest known price per part.part_price_historystores one daily snapshot per part, even if the price is unchanged.- Trigger the sync by sending a
POSTrequest to/api/admin/price-syncwithAuthorization: Bearer <PRICE_SYNC_SECRET>. - For a 24-hour refresh cycle, run that route from a daily cron job or scheduled function.