Skip to content
AbudidayoPublic

Repository files navigation

Buildy

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.

Stack

  • 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

Getting Started

  1. Install dependencies:
npm install
  1. Copy .env.example to .env.local and 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=
  1. Apply the schema in supabase/schema.sql to your Supabase project.

  2. Start the app:

npm run dev

Product Flow

  • Onboarding asks for budget range, use case, and priorities.
  • The app calls /api/build to 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.

Notes

  • If GEMINI_API_KEY is 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.

Daily Price Snapshots

  • tracked_parts stores the latest known price per part.
  • part_price_history stores one daily snapshot per part, even if the price is unchanged.
  • Trigger the sync by sending a POST request to /api/admin/price-sync with Authorization: Bearer <PRICE_SYNC_SECRET>.
  • For a 24-hour refresh cycle, run that route from a daily cron job or scheduled function.

Releases

Packages

Contributors

Languages