Lovable: Build Apps with AI + Code Mode (2026)
๐ Quick start
- Generate your app with a detailed prompt.
- Preview and list 3-5 issues to fix.
- Switch to Code Mode and edit files directly.
- Save and preview to verify changes.
๐ก Why use Lovable for this
Lovable is an AI app builder that generates full-stack web apps from natural language. The practical workflow is to generate the first 80% with prompts, then switch to Code Mode to add business logic, fix edge cases, and polish the UI. Plan gotchas: Code Mode is available on all plans, but free tier has limited daily messages and no custom domain. Pricing and features checked 2026-10-15.
๐ ๏ธ How to Build Apps with AI + Code Mode (4 steps)
Step 1
Open Lovable and click 'New App'. Give it a name. In the chat box, describe your app in 2-3 sentences. Include core features, data types, and who will use it. Example: 'Build a customer portal where clients can view their invoices, pay via Stripe, and see payment history. Include user roles: admin and client.' Press Enter. Lovable will start generating the full codebase. This takes 1-3 minutes.
Step 2
After generation, preview the app by clicking the 'Preview' button (top right). Test each feature. Make a list of 3-5 things that need improvement โ for example, 'The invoice list doesn't show due dates' or 'The Stripe payment form is missing an amount field'. Do NOT ask the AI to fix everything at once; you'll fix them individually in Code Mode.
Step 3
Switch to Code Mode by clicking the 'Code Mode' toggle at the top of the editor panel. The view changes to a file browser (left sidebar) and a code editor (main area). You'll see the project structure: src/ for React components, functions/ for Supabase edge functions, etc. Don't be intimidated โ you only need to edit one file at a time.
Step 4
Identify which file likely contains the code you want to change. For example, to fix the invoice due date, look for a component named 'InvoiceList.js' or similar. Click it in the file browser. A brief description at the top of each file (added by Lovable) explains its purpose. Use that to navigate. Once open, find the relevant section โ look for things like 'table', 'row', or 'date' โ and make your edit. For instance, add a new column <td>{invoice.dueDate}</td> within the table. The editor supports syntax highlighting and autocomplete.
๐ฆ What you'll get
After completing these steps, you will have a working web app with a custom feature (e.g., invoice due dates) that was not generated by the initial prompt. The app will be deployable via Lovable's hosting.
๐ฐ Pricing (checked 2026-10-15)
| Plan | Price | What you get for this workflow | Official link |
|---|---|---|---|
| Free | $0 |
5 messages/day, public projects, Lovable subdomain | pricing โ |
| Starter | $20/month |
100 messages/month, private projects, custom domain | pricing โ |
| Pro | $50/month |
500 messages/month, priority support, team collaboration | pricing โ |
| Enterprise | Custom |
Unlimited messages, SSO, dedicated support | pricing โ |
๐ Copy-paste prompts
"Build a [type of app] with [list of features]. Use React for frontend, Supabase for database and auth. Include user registration and login."
"Add Stripe Checkout to the invoice page. When a user clicks 'Pay Now', redirect them to Stripe, then on success update the invoice status to 'paid'."
"Create an admin dashboard that shows total users, total revenue, and a list of recent invoices. Only admin users can see it."
โ ๏ธ Common mistakes
โ๏ธ Lovable vs Alternatives
| Tool | Price | Best For | Verdict |
|---|---|---|---|
Free tier available; Pro $20/month |
|||
Free tier available; Premium $20/month |
โ Frequently Asked Questions
Q: Is Lovable free?
Yes, Lovable has a free tier with limited daily messages. Paid plans start at $20/month for more messages and features.
Q: Can I export code from Lovable?
Yes, you can export the generated codebase and host it anywhere.
Q: Does Lovable support custom domains?
Custom domains are available on paid plans (Starter and above).
Q: What is Code Mode in Lovable?
Code Mode is a visual code editor integrated into Lovable that lets you edit the generated code directly.
Q: Is Lovable suitable for production apps?
Yes, with Code Mode you can add business logic and polish the app for production use.
๐ Level up your AI toolkit
Understand AI in 5 minutes a day. No jargon. No hype. Unsubscribe anytime.