What Tech Stack Should You Use for Vibe Coding?
Use your tool's default stack. If you're choosing yourself, pick a mainstream web framework such as Next.js, a Postgres database such as Supabase, and a managed host such as Vercel. Popular, well-documented tools give the AI more correct patterns to follow, and give you more help when something breaks.
Build this project on exactly this stack. Don't substitute anything without asking me: - Framework: [your builder's default / Next.js with TypeScript] - Database and sign-in: [Supabase] - Hosting: [your builder's hosting / Vercel] Rules: 1. Before adding any new package, tell me its name, what it does, and why the existing stack can't do it. Wait for my yes. 2. Use the current versions and check their official docs if you're unsure of the syntax. Tell me which version you used. 3. Keep secrets out of browser code. List each environment variable and say whether it's public or server-only. 4. Record these choices in [AGENTS.md / CLAUDE.md / project instructions], so future sessions follow them. Start by telling me how to run the project and what you'd set up first. Don't write features yet.
- 1Host: Vercel, or your builder's hostingruns the app
- 2Framework: Next.js, or your builder's defaultpages and server code
- 3Sign-in: Supabase Auth or Firebase Authenticationdon't write your own
- 4Database: Postgres, such as Supabasedata and access rules
Try it now
- 1If you use a builder, find out what you have. In Lovable, open
package.jsonin the Code tab:@tanstack/react-startmeans TanStack Start, and otherwise it's React + Vite. You can also ask in chat. - 2Write your stack into your instructions: Project settings → Instructions in Lovable, or
AGENTS.mdfor most other tools. - 3Ask: "Which packages in this project did you add that I didn't ask for, and which could we remove?" It worked when you have a short list, and the next feature adds no surprise libraries.
Use it when
In your first prompt, before any code exists. It's also useful when an AI suggests adding something new, because each new library is one more thing to keep updated.
Skip it when
Don't rewrite a working app just because its stack isn't the default here. Keep what you have unless it's blocking you. Choose differently when you have a real requirement, such as a native phone app, or when a developer who'll maintain it prefers something else.
Why it works
Builders test most heavily on their own stack. v0's FAQ says its expertise is in Next.js, React, Tailwind CSS, shadcn/ui and the AI SDK. Lovable builds new apps on TanStack Start with a backend based on Supabase's open-source foundation. Bolt's database includes tables, sign-in, storage and server functions. Working against that default means the tool's scans, templates and fixes fit your project less well.
For your own stack, the case is about documentation. Each security fix in this course depends on exact vendor docs, such as Supabase's policy syntax or Next.js's rules for browser variables. Rule of thumb, not a vendor figure: the more common a tool is, the more likely an AI's answer about it is right, and the easier it is to check that answer against the docs. A new framework may have changed since the model learned about it.
Example
You're building a booking site in Cursor and ask for sign-in. The AI proposes a newer sign-in library you've never heard of. Instead of accepting, you reply: "Use Supabase Auth, as listed in AGENTS.md." Now the rest of this course's steps apply exactly. The getClaims() check, the row level security policies and the Security Advisor all work as Supabase documents them. With the newer library, you'd be trusting the AI's memory of how it works, with fewer docs to check against.
Going further
Know where your stack's browser boundary sits, because it's where secrets leak. Next.js exposes NEXT_PUBLIC_ variables, Vite exposes VITE_, SvelteKit and Astro use PUBLIC_, and Nuxt uses NUXT_PUBLIC_. TanStack Start apps use VITE_ names for browser values, according to Supabase's guide.
A stack also decides how you can leave. Lovable's docs say older React + Vite apps deploy as a static dist/ folder, while TanStack Start apps need a host that runs server code. Before you commit to a provider, ask the AI what your app relies on that only that provider offers, and how hard it would be to replace.
Common mistakes
- Asking for the newest framework because it sounds better. You'll get fewer docs and more wrong answers.
- Letting each session add its own library, until the app has three ways to do the same job.
- Forcing a builder onto another stack, then losing the fixes and scans designed for its default.
- Choosing a stack for scale you don't have. Start simple, and change when something is actually slow.
Sources
- FAQs, v0 docs
- Hosting outside Lovable, Lovable docs
- Instructions, Lovable docs
- Bolt Database, Bolt support
- Environment variables, Next.js docs
- Env variables and modes, Vite docs
- Server-side Auth, Supabase docs
- Getting started with Vercel, Vercel docs
Checked 6 November 2026. Products change often, so confirm details with the vendor.