How to Connect Supabase to Your App (Add a Real Database)
Add a real database to your Snapp app in two minutes by connecting your own Supabase project. No SQL required, and your data always belongs to you.

How to Connect Supabase to Your App (Add a Real Database)
Every real app needs somewhere to store data: users, posts, orders, bookings, anything. In Snapp, that place is Supabase, a hosted database with user accounts built in. You connect your own Supabase project, so your data always belongs to you.

This guide walks you through connecting Supabase to your app. It takes about two minutes.
---
What you'll need
- A Snapp app (created from any prompt).
- Any Snapp plan. Connecting Supabase is included on every plan, including Free.
- A free Supabase account. You can create one during the flow if you don't have it.
- Your users and their data live in your Supabase account, not Snapp's.
- You can open the Supabase dashboard any time to inspect or export everything.
- If you ever leave Snapp, the database stays with you.
- Add login and user accounts. Sign-in uses the same Supabase project.
- Accept payments with Stripe for physical goods and services, or add in-app subscriptions for digital extras.
You do not need to write any SQL. Snapp fills in the keys and creates your tables for you.
---
Step by step
1. Open your app and start the connection. Any of these works: - In the chat, tap the Add Database shortcut, then Connect now. - In the Snapp app: open your app's settings (the gear icon at the top of the chat), tap Environment, then Connect Supabase. - On the web: click Keys and secrets (the key icon next to the preview). Under Database, click Connect on the Supabase card.
2. A Supabase window opens. Sign in (or create a free account) and allow Snapp to connect.
3. On Select Your Project, choose one: - Create New Project: Snapp creates a new Supabase project for this app, named after your app, and sets its database password for you. You're done. - Your projects: pick a project you already have. Then go to the next section, because Snapp needs one more thing from you.
4. Snapp saves your project's keys (SUPABASE_URL, SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY and SUPABASE_DB_PASSWORD) on your app's keys screen.
From now on, when you ask Snapp to "save this to the database" or "load the list from the database," it knows where to put the data.
---
Using a project you already had: add the database password

Supabase only shows a project's database password when the project is created, so Snapp cannot read it back for a project you already had. Right after you pick the project, Snapp opens a step called One last step: without this, no table can be created.
1. Tap Open Database settings in Supabase. 2. Find Database password. If you don't have it any more, use Reset password there. 3. Copy it, paste it into the value field in Snapp and save.
This is not your Supabase account password, and it is not the anon key. If you skip this step, Snapp cannot create tables, so the data features in your app stay empty.
---
What happens behind the scenes
Your keys are kept in Snapp Vault. Only the keys designed to be public (the project URL and the anon key) go inside your app. The service role key and the database password never do.
When your app needs a new table (for example tasks or bookings), Snapp creates it in your Supabase project for you. No SQL Editor needed.
When you connect with the Connect Supabase button, Snapp also prepares a few settings in your Supabase project so sign-up works right away: it turns off Supabase's "Confirm email" setting and sets up the password reset page and the sign-in return addresses for your app. It never removes anything you set yourself.
Because the project is yours:
---
Common questions
Do I need to know SQL?
No. Describe what you want to store in plain language and Snapp creates the right tables.
I'm on the Supabase free plan. Any limits?
Supabase's free plan allows 2 projects per organization. If you hit that limit, pick an existing project instead, or upgrade your Supabase plan. Free Supabase projects also pause after a week without traffic. If your app suddenly can't load data, open the project in Supabase and restore it.
The Supabase window didn't open.
On the web, your browser may have blocked the pop-up. Allow pop-ups for snappai.co, then try again.
How do I know if my app needs a database?
Run Is my app ready? from the chat. If your app saves data but no database is connected, it tells you and shows a Connect database button.
Where do I see the data my app stores?
In Snapp's built-in Data Panel, or in your Supabase dashboard. See our guide on viewing and managing your app data.
---
What's next
Once Supabase is connected, the natural next steps are:
Connect once, and the whole backend of your app comes to life.
---
SNAPP Team
Articles and content from the SNAPP team


