Database
Where your app stores information permanently.
What is Database?
Without a database, your app forgets everything when you close it. A database remembers. User accounts, blog posts, orders, messages — they all live in a database. Think of it as a giant, organized spreadsheet that your app can read and write to instantly.
There are many types of databases, but the one you'll encounter most in vibe coding is PostgreSQL — a powerful, free, open-source database that Supabase runs on top of.
In Vibe Coding
Supabase is the most popular database for vibe coded apps. Lovable connects to Supabase with one click. In Cursor, you add your Supabase URL and key to your .env file and start querying.
Example
For example: You're building a todo app. Without a database, your todos disappear when you refresh the page. With a Supabase database, they're saved and appear every time you come back.