{"id":28720341,"url":"https://github.com/amjustgettingstarted/ai-x-car-","last_synced_at":"2025-06-15T07:01:48.059Z","repository":{"id":292322363,"uuid":"980516934","full_name":"AmjustGettingStarted/AI-x-Car-","owner":"AmjustGettingStarted","description":"AI-x-Car is an AI-integrated car marketplace that enables users to buy, sell, and book test drives seamlessly. Powered by Gemini AI, it enhances speed, automation, and precision in the car-buying experience.","archived":false,"fork":false,"pushed_at":"2025-06-14T12:29:29.000Z","size":11566,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T13:25:07.293Z","etag":null,"topics":["arcjet","clerk","gemini-ai","jsx","lucide-react","nextjs","postgresql","prisma-orm","reactdropzone","ssr","supabase","tailwindcss"],"latest_commit_sha":null,"homepage":"https://ai-x-car.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmjustGettingStarted.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-09T09:01:19.000Z","updated_at":"2025-06-10T13:02:55.000Z","dependencies_parsed_at":"2025-06-02T14:15:27.294Z","dependency_job_id":null,"html_url":"https://github.com/AmjustGettingStarted/AI-x-Car-","commit_stats":null,"previous_names":["amjustgettingstarted/ai-x-car-"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmjustGettingStarted/AI-x-Car-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmjustGettingStarted%2FAI-x-Car-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmjustGettingStarted%2FAI-x-Car-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmjustGettingStarted%2FAI-x-Car-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmjustGettingStarted%2FAI-x-Car-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmjustGettingStarted","download_url":"https://codeload.github.com/AmjustGettingStarted/AI-x-Car-/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmjustGettingStarted%2FAI-x-Car-/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935545,"owners_count":22934376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arcjet","clerk","gemini-ai","jsx","lucide-react","nextjs","postgresql","prisma-orm","reactdropzone","ssr","supabase","tailwindcss"],"created_at":"2025-06-15T07:00:34.470Z","updated_at":"2025-06-15T07:01:48.046Z","avatar_url":"https://github.com/AmjustGettingStarted.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gemini AI-Integrated Car Marketplace: AI-x-Car  \n\nAI-x-Car is a **next-gen car marketplace** where users can **buy, sell, and book test drives effortlessly**. Designed with **speed, automation, and AI-powered precision**, this platform leverages **Gemini AI** to completely transform the car-buying experience.  \n\n---\n\n## 🔹 AI-Powered Features  \n\n- ✅ **Auto-Upload \u0026 Fetch Car Details** → Upload an image, and Gemini AI **automatically extracts car details** (make, model, year, price, etc.).  \n- ✅ **Reverse Image Search for Car Details** → AI scans the Image to **verify if the similar car exists**, making searches more reliable.  \n- ✅ **Smart Test Drive Booking** → AI optimizes available slots to **quickly schedule test drives** with dealerships.\n\n---\n\n## 💡 Tech Stack \u0026 Efficiency  \n\nBuilt on **Next.js**, AI-x-Car delivers **fast, interactive, and scalable experiences** with **Prisma ORM, Clerk authentication, and a PostgreSQL database** for secure transactions.  \n\n🔹 **Core Technologies**  \n- **Next.js** → React framework for server-side rendering, routing, and API routes.  \n- **React** → UI library for building interactive user interfaces.  \n- **Prisma ORM** → Type-safe database access for PostgreSQL.  \n- **PostgreSQL** → Relational database for storing users, cars, bookings, etc.  \n- **Clerk** → Authentication and user management.  \n- **Arcjet** → Advanced security solution providing rate limiting, bot mitigation, spam prevention, and email validation \n- **Tailwind CSS** → Utility-first CSS framework for rapid UI development.  \n- **Lucide Icons** → Modern SVG icons.  \n- **Sonner** → Toast notifications.  \n- **date-fns** → JavaScript date utility library.  \n- **Vercel** → Deployment platform (recommended).  \n\n🚀 **AI-x-Car isn’t just another car marketplace—it’s an AI-driven revolution in automotive sales.**  \nWhether you're buying, selling, or verifying listings, **Gemini AI ensures accuracy, automation, and efficiency like never before.**  \n\n---\n\n\n# 📦 Project Structure\n\nThis project is organized as follows:\n\n---\n\n## 🗂️ Root Files\n\n- **`.env`** — Environment variables (DB, API keys, etc.)  \n- **`.gitignore`** — Git ignored files  \n- **`components.json`** — Component registry/configuration  \n- **`eslint.config.mjs`** — ESLint configuration  \n- **`jsconfig.json`** — JavaScript config (paths/aliases)  \n- **`middleware.js`** — Next.js middleware for request handling  \n- **`next.config.mjs`** — Next.js configuration  \n- **`package.json`** — Project dependencies and scripts  \n- **`postcss.config.mjs`** — PostCSS configuration for Tailwind  \n- **`tailwind.config.ts`** — Tailwind CSS configuration  \n- **`README.md`** — Project documentation (you're here)  \n\n---\n\n## 📁 `/actions` — API Logic\n\n- **`admin.js`** — Admin-related actions  \n- **`car-listings.js`** — Car listing CRUD \u0026 wishlist logic  \n- **`cars.js`** — Car data fetching \u0026 manipulation  \n- **`home.js`** — Homepage data logic  \n- **`settings.js`** — User settings actions  \n- **`test-drive.js`** — Test drive booking logic  \n\n---\n\n## 📁 `/app` — Next.js App Directory\n\n- **`favicon.ico`** — Favicon  \n- **`globals.css`** — Global CSS  \n- **`layout.js`** — Root layout (header, footer, providers)  \n\n### 📁 `(main)/cars/[id]/` — Dynamic Car Details Page\n\n- **`page.jsx`** — Car details page  \n- **`_components/car-details.jsx`** — Car details UI and logic  \n- **`_components/emi-calculator.jsx`** — EMI calculator component  \n\n---\n\n## 📁 `/components` — Reusable UI Components\n\n- **`header.jsx`** — App header (nav, auth, logo)  \n- **`/ui/`** — UI primitives (e.g., Button, Card, etc.)\n\n---\n\n## 📁 `/hooks` — Custom Hooks\n\n- Custom React hooks (e.g., `useFetch`)\n\n---\n\n## 📁 `/lib` — Helpers \u0026 Prisma Client\n\n- **`checkUser.js`** — User verification/creation  \n- **`helper.js`** — Utility functions  \n\n### 📁 `/generated/prisma/` — Auto-generated Prisma Client\n\n- **`index.js`**  \n- **`edge.js`**  \n- **`client.js`**  \n- **`default.js`**  \n- **`/runtime/`**\n\n---\n\n## 📁 `/prisma` — Schema \u0026 Migrations\n\n- Contains `schema.prisma` and all migrations\n\n---\n\n## 📁 `/public` — Static Assets\n\n- Images, logos, and other static content\n\n---\n\n## 📁 `/.next` — Next.js Build Output\n\n- Auto-generated during build\n\n\n---\n\n## 📝 Key Files \u0026 Directories\n\n- **`app/layout.js`**: Root layout, includes [`Header`](components/header.jsx), global styles, and providers.\n- **`components/header.jsx`**: Navigation bar with authentication, logo, and role-based links.\n- **`actions/`**: Server-side logic for cars, admin, test drives, etc.\n- **`lib/generated/prisma/`**: Prisma ORM client for database access (auto-generated).\n- **`app/(main)/cars/[id]/_components/car-details.jsx`**: Car detail UI, wishlist, share, and quick stats.\n- **`app/(main)/cars/[id]/page.jsx`**: Fetches car data and generates metadata for SEO.\n- **`hooks/use-fetch.js`**: Custom hook for data fetching (not shown, but referenced).\n- **`tailwind.config.ts`**: Tailwind CSS configuration for custom styles.\n- **`next.config.mjs`**: Next.js configuration, including image domains and security headers.\n\n---\n\n## 🛠️ Getting Started\n\n1. **Install dependencies:**\n   ```sh\n   npm install --legacy-peer-deps\n\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjustgettingstarted%2Fai-x-car-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famjustgettingstarted%2Fai-x-car-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjustgettingstarted%2Fai-x-car-/lists"}