Build live notifications
“Build a live notification system for my app. When [event happens], show a toast notification to the user in real time.”
Free AI prompt · The Code Book
A ready-to-use prompt from the chapter Real-Time Features. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.
“Add real-time updates to my [chat/dashboard/feed] using Supabase Realtime. When a new [message/record] is added to the database, show it instantly without refreshing.”
“Build a live notification system for my app. When [event happens], show a toast notification to the user in real time.”
“Set up a new Next.js project with TypeScript, Tailwind CSS, and App Router. Create a clean homepage with a [header/hero/features] layout.”
“Convert my single-page app into multiple pages with proper navigation. Add routes for [home, about, dashboard, settings].”
“Make my website fully responsive so it looks great on phones, tablets, and desktops. Use Tailwind CSS breakpoints and make sure the navigation works on mobile with a hamburger menu.”
“Set up a backend for my app using Supabase. I need tables for [users, posts, comments]. Include row-level security policies so users can only edit their own data.”
“Add a backend endpoint to my app that [creates/reads/updates/deletes] [resource] from my database. Handle errors gracefully and return a friendly message if something goes wrong.”