What Is Vibe Coding?
Vibe coding means building software by describing what you want to an AI tool and accepting the code it produces, without reviewing it line by line. The term was coined by Andrej Karpathy in February 2025, who described it as fine for "throwaway weekend projects". Tools such as Lovable, Bolt.new, v0 and Replit now let non-technical founders go from an idea to a clickable, working app in days.
That speed is genuinely valuable. A vibe-coded prototype is one of the fastest ways to test whether customers want your idea. The problems start when a prototype quietly becomes the production product.
Why Do Vibe-Coded Apps Break in Production?
They are optimised to look finished, not to be safe, maintainable or scalable. An AI builder succeeds when the screen does what you asked; it is not judged on what happens when a stranger calls your database directly, when two users edit the same record, or when you reach a few thousand rows of data.
Open Database Access
Many AI builders use a backend such as Supabase with a public key in the browser. If row-level security is missing or too loose, anyone can query your tables directly.
Fragile Authentication
Login works on the happy path, but password resets, session expiry, role checks and admin routes are often incomplete or enforced only in the UI.
Unsafe Payments
Subscriptions granted from a redirect instead of a verified Stripe webhook, or no handling for failed payments and cancellations.
Data Models That Do Not Scale
Important data stored as unstructured JSON blobs, missing indexes, and no clear relationships, which makes reporting and new features painful.
Fixes That Break Other Features
Without tests or a clear architecture, each new prompt can silently break something that worked yesterday.
No Monitoring or Backups
Errors go unnoticed until a customer complains, and there may be no tested way to restore data.
A real example: CVE-2025-48757
In May 2025 a security researcher disclosed that projects generated with Lovable could be deployed with insufficient row-level security, allowing unauthenticated attackers to read or write tables in affected apps. Lovable disputes responsibility, saying each customer must protect their own app data. Either way, the lesson is the same: if your app holds customer data, someone must deliberately check its access rules.
Is Your Vibe-Coded App Ready for Real Users? The Production Checklist
Work through this checklist before you launch, take payments or store personal data. It covers the issues we see most often when rescuing AI-built apps.
Lock Down Database Access
Enable row-level security on every table exposed to the browser and write a policy for each action (read, insert, update, delete). Supabase's own documentation warns that a table in an exposed schema without RLS is readable and writable by any role with access to it. Test by trying to read another user's data while logged in as a different user.
Move Secrets Server-Side
Make sure only public keys are in the browser. Service keys, payment secrets and third-party API keys must live in server-side environment variables, and should be rotated if they were ever exposed.
Harden Authentication and Roles
Check password reset, email verification, session expiry and logout. Enforce roles and permissions on the server for every request, not only by hiding buttons.
Make Payments Webhook-Driven
Grant and remove access only from verified Stripe webhook events, make handlers idempotent, and handle failed payments, refunds and cancellations.
Fix the Data Model
Replace JSON blobs that hold core business data with proper tables and relationships, add indexes for common queries, and write a migration plan for existing data.
Add Tests, Monitoring and Backups
Add automated tests for sign-up, the core workflow and payments, error tracking, uptime alerts, and scheduled backups you have actually tested restoring.
For the billing and permissions side in more depth, read our multi-tenant SaaS and Stripe billing guide.
Should You Keep Vibe Coding, Harden the App or Rebuild?
Choose based on how much of the current code is sound and how close you are to real revenue.
| Situation | Best Option | Why |
|---|---|---|
| Still validating, no real user data yet | Keep vibe coding | Speed of learning matters more than code quality right now |
| Real users or payments, mostly sound structure | Hardening sprint | Fix security, auth, payments and data; keep the rest |
| Core data model or architecture is wrong | Partial rebuild | Rebuild the foundation while reusing screens and flows |
| Growing fast, raising money, or failing due diligence | Rebuild on a maintainable stack | A documented React and Next.js codebase is easier to scale, hire for and audit |
Keep your speed after hardening
Hardening does not mean giving up AI tools. Many teams keep prototyping new features with AI, then have an engineer review and integrate them into the hardened codebase.
How Do You Move a Vibe-Coded App to a Maintainable Stack?
Migrate in stages so customers are never locked out. Export the existing code and data, keep the parts that work, and rebuild the risky foundations first: authentication, permissions, payments and the data model. Then move feature by feature, a pattern known as the strangler approach, which we describe in our MVP scoping and migration guide.
The stack we usually recommend for a production SaaS is Next.js and React, a managed PostgreSQL database with row-level security, Stripe Billing, and monitoring from day one. See React / Next.js vs Bubble.io if you are also weighing no-code options.
FivUp AI: From Idea to 1,000+ Active Users
WebMavien built FivUp AI, an AI tool that helps freelancers optimise their Fiverr and Upwork profiles and proposals, launching it quickly while keeping the product stable as it grew.
"WebMavien brought our AI-powered freelancing tool to life in record time."
— Michael Roberts, CEO, FivUp AI
