Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A full-stack e-commerce affiliate app focusing on reducing plastic consumption that uses Next.js and Prisma.

Next.js ecommerce starter built as a web programming final exam, using MongoDB, Prisma, Tailwind CSS, and JWT auth.
OmitPlastic is an open-source full-stack e-commerce affiliate template built with Next.js and Prisma that focuses on reducing plastic consumption by curating products with less plastic. It runs on Vercel and uses a Neon-hosted database, with TypeScript, React, Tailwind CSS, SWR, and React Spring in the frontend stack. The repository is maintained by Gavin Grant and demonstrates a complete Amazon Associates storefront, complete with a product data model and automated price scraping.
OmitPlastic is a full-stack e-commerce affiliate application built with Next.js, TypeScript, Prisma, and a Neon-hosted database. It functions as an Amazon Associates storefront where products are stored in a database and their prices are automatically scraped from Amazon product pages using Cheerio. The template is designed to help people reduce plastic consumption by curating products with less plastic content, but its product model is generic enough to be adapted for any product category.
pages/api/price.ts uses Cheerio to parse Amazon web pages, retrieving and updating current pricing and availability for stored products.npx prisma studio to open a graphical interface for directly viewing and editing product rows in the database.The setup flow is: clone the repository, install dependencies with npm install or yarn install, create a free Neon account and database, run npx prisma init, push the schema with npx prisma db push, set the DATABASE_URL in the .env file (based on example.env), and start the dev server with npm run dev. Once deployed, the app stores product records in the database and its API route scrapes Amazon product pages with Cheerio to keep pricing and availability current.
Yes, the repository is open source on GitHub, so you can clone, modify, and use it free of charge. The setup instructions recommend a free Neon account, and deployment to Vercel follows Neon's documented guide.
The project uses Prisma as its ORM and connects to a Neon-hosted database. The Prisma schema defines a Product model with fields such as name, price, category, and slug, and you can manage the data through Prisma Studio.
Yes. The Product model includes generic fields like name, price, category, and URL, so it can be reused for any affiliate product niche—books, electronics, home goods, and more. You simply update the product data and optionally adjust the scraping logic to match Amazon pages for those categories.
Clone the repository, run npm install or yarn install, create a Neon database, bootstrap Prisma with npx prisma init, push the schema with npx prisma db push, set the DATABASE_URL in your environment, and start the development server with npm run dev. You can then open http://localhost:3000/ in your browser.
