Back to projects

GiftList

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • NextAuth
  • Prisma
  • PostgreSQL
GiftList

GiftList is a wishlist for a specific circle of people. A list stays private until it is marked public, a shared link can expire, and anyone with that link can open it without creating an account.

What it does

  • Sign in with Google, then create a wishlist and paste a product link.
  • Fills in the title, photo, store, and description, and leaves every field editable.
  • Adds a note for the detail a product page will not say, such as a size or a color.
  • Assigns lists to a group, such as family or friends, and invites people with a link.
  • Shares a list for good, for 24 hours, 7 days, 30 days, or until a chosen date, and revokes the link at any time.
  • Keeps shirt size, favorites, hobbies, and notes behind their own public switches, so a shared list only shows what was left on.

How it's built

The app is Next.js and React, written in TypeScript and styled with Tailwind CSS. NextAuth handles Google sign-in, stores accounts with the Prisma adapter, and keeps the session in a JWT.

Prisma stores users, wishlists, items, groups, and memberships in PostgreSQL. Share links and group invites are their own records, each with a token and an optional expiration. Deleting a list or a group cascades to the rows that belong to it.

Product links and shared pages

Pasting a product URL calls a scrape route that reads the page for a title, image, description, and store name. The route refuses private and internal addresses, falls back to Microlink when a page returns too little, and caches a result for 24 hours.

A public page resolves the token before it renders. A missing link, an expired link, and a list that is still private each get their own message. Profile details are filtered on the server, so a size or a note that was switched off never reaches the shared page.