← All resourcesView all 10
AI wrappersPrompt
AI chat wrapper
By Battle-tested
Stack: React + Tailwind + Supabase + Lovable AI Gateway (`google/gemini-2.5-flash` default).
Medium45 min
What you'll build
- Stack: React + Tailwind + Supabase + Lovable AI Gateway (`google/gemini-2
- 5-flash` default)
The prompt
Stack: React + Tailwind + Supabase + Lovable AI Gateway (`google/gemini-2.5-flash` default). Build: a focused AI chat for one job — pick one: legal Q&A, recipe planner, code reviewer. Not a generic ChatGPT clone. Must have: streaming responses, conversation history per user with RLS, system prompt enforced server-side in a TanStack server function, model selector limited to two models, token/cost guardrails. Don't: put the API key or system prompt in client code, store conversations without RLS, or stream from the browser directly to the model. First screen: empty thread with three example prompts as starter chips.
How to use this
- 1Copy the prompt
Tap the Copy button on the prompt above. That's all of it.
- 2Paste it into Lovable
Open lovable.dev, start a new project, paste the prompt, hit send.
- 3Open the preview
Wait about a minute for the first build, then look at the preview on the right.
- 4Change one tiny thing
Ask Lovable to swap a color or a word. Watch it update live. That's the magic.
Try these next
Tap any card to copy a follow-up prompt. Paste it into the same Lovable chat.
If you get stuck
Builds can take a minute. Grab water.
If something looks weird, tell Lovable what's wrong in plain words.
You can always undo — nothing breaks forever.
Stack
ReactTailwindSupabase
Companion guide
Before / After — UI moves that separate good from AI-slop
10 side-by-side renders + the exact follow-up to copy in.
01 / 10Open →
Typography hierarchy
If everything is bold, nothing is.
02 / 10Open →
The grey-text trap
14px #999 on white is the AI-slop signature.
03 / 10Open →
Buttons are where products die
Hover over the right side.
04 / 10Open →
Spacing is a feature
Premium products use more white space.
05 / 10Open →
One accent, not five
If you have three accents, you have no accent.
06 / 10Open →
Break the grid
Three identical cards in a row screams template.
07 / 10Open →
Hero atmosphere
Stop using purple-pink-blue gradients.
08 / 10Open →
Testimonials that don't lie
No stars. No stock avatars. No "Sarah Chen, CEO."
09 / 10Open →
Empty states are first impressions
Your user sees this before they see your real UI.
10 / 10Open →
Easing is character
Watch the two boxes below. They're moving the same distance.