Skip to content
TriedPrompts

More in Migrations & upgrades.

Migrate a 50-screen app from Firebase to Supabase with Claude Code

Going feature by feature with Claude Code, the poster moved about 85% of a 50-screen app from Firebase to Supabase in 10–20 days.

Result: WorkedTool: Claude CodeLevel: AdvancedEvidence: Reported

Copy the prompt

Reported: A text-only post with no screenshots. Reported is the normal starting point for most cases, not a mark against the case. Rated , after reopening the source. Rates the evidence, not the result. Failed and partial cases are rated the same way. How we rate evidence

Outcome

Prayag, the founding engineer at a US startup, needed to move a 45–50 screen Flutter app off Firebase, where cloud functions were slow to debug and redeploy and Firestore's relationships made dashboards hard. Going feature by feature, Prayag used Claude Code to generate database schemas, guide queries and fix the errors that came up daily, and reports migrating about 85% of the app to Supabase in 10–20 days, with bug-fixing and cleanup left. The $17 plan hit its limits within hours at that scale, so Prayag upgraded to the $100 Max plan, which is when things clicked. Prayag credits years of building Flutter apps by hand for getting the most out of it.

Poster says: ~85% migrated in 10–20 days

This is the source's own number. We haven't measured it.

WorkedPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Help me move my app's backend from Firebase to Supabase, one feature at a time.

Check with me first: Which feature should we move first?

What I'll give you:
- My app's code
- My current Firebase data structure
- A Supabase project

Rules:
- Move one feature at a time and make sure it works before the next.
- Design the database tables and explain them before creating them.
- If something is missing or unclear, ask me instead of guessing.
- Don't delete Firebase data.

Output: The migrated feature, the new tables, and a checklist of what's left.

You'll know it worked when: each migrated feature works on Supabase and I know what's left to do.

Try this in:

Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Move my app's backend from Firebase to Supabase one feature at a time, keeping each feature working before the next.

Quick check first: tell me if anything below is missing or unclear.

Inputs (fill in or confirm):
- App code
- Current Firebase data structure
- Supabase project
- Feature order

Rules:
- Design the Postgres schema for each feature from the Firestore structure; show it before creating tables.
- Write row-level security policies that match current Firebase rules.
- Migrate a copy of the data, never the live source, and verify counts.
- Switch one feature in the app, test it, then move on.
- Keep a log of daily errors and fixes.

Checkpoint: Ask before deleting Firebase data or switching production users.

If you get stuck: If a Firestore pattern doesn't map cleanly, explain the options. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: After each feature, compare record counts and run the feature's flows.

Output: Schema, migration scripts, RLS policies and a progress log.

Done when: each migrated feature works on Supabase with matching data.

AI tool

Claude Code

Source

Posted
by Prayag (@prayag_dalal)
Last checked
Method:
How we verify

https://x.com/prayag_dalal/status/1963555583392714791

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Migrations & upgrades

More in CodingRandom case in Coding