Firebase vs PocketBase

Firebase suits teams that want Google-managed services and accept usage-based billing. PocketBase suits smaller apps that want one self-hosted executable and can own uptime, backups and upgrades.

On this page

Firebase vs PocketBase: when each fits a smaller app

If a Firebase renewal, a move to Blaze billing or a data residency question has brought you here, the decision turns on where your data must sit and who will run it. Firebase fits teams that want Google-managed scale and accept usage billing and US-only Authentication processing, while PocketBase fits smaller apps that want one self-hosted executable with embedded SQLite and accept that they own operations and support. Firebase Authentication processes data only in the United States, and Cloud Storage for Firebase has required the Blaze plan since changes announced in September 2024, so a Spark project that relies on its buckets loses access. PocketBase has no managed cloud service, so the executable, the SQLite database and the backups are yours from the first day.

Four questions settle the choice. The first is the data model: Firestore stores documents in a NoSQL database, while PocketBase stores records in embedded SQLite tables, so a schema built around nested documents or subcollections will need reshaping. The second is scale and availability: a PocketBase deployment grows by adding resources to one machine, so confirm your peak load and your recovery plan for a node failure before you commit. The third is operating capacity: PocketBase is developed on a volunteer basis with no promise of maintenance or support, so someone on your team must patch, back up and restore it. The fourth is password hashes: the Firebase CLI exports Auth hashes with their scrypt parameters through firebase auth:export, so run a test import to see whether existing passwords carry over without a forced reset.

Choose Supabase or Appwrite instead when Postgres, multi-node availability or a documented Firebase importer matters more. Supabase gives each project a Postgres database, but its self-hosting docs state that self-hosted Supabase is community-supported and list managed backups and point-in-time recovery as unavailable when self-hosting, so you must design your own backup approach. Appwrite 2.0 provisions PostgreSQL by default, its Migrations feature imports Firebase projects, and its Helm chart docs say its built-in datastores run a single replica without failover, so high availability needs its own design. Before you choose, export one representative Firestore collection, import a test set of Auth users, and confirm in writing the support model you will rely on.

Firebase vs PocketBase by scenario: which fits your app

This table compares Firebase with self-hosted PocketBase across seven common app scenarios. Each row names the better fit and the specific condition that makes that choice hold, so you can check whether your own situation meets it. The main takeaway is that PocketBase suits small apps on one server run by a team that can operate it, while Firebase keeps its advantage where managed operations and vendor support matter.

ScenarioBetter fitCondition that makes it so
Prototype or single-team appFirebaseThe team already uses Firebase client SDKs and has no plan to run its own servers
Firestore-heavy mobile appFirebaseOffline sync and listeners depend on Firestore SDKs, and a move means remodeling document collections as relational tables
Realtime Database with many connectionsFirebase on the Blaze planConnections stay under the 200,000 per database Blaze limit in Firebase's pricing docs, and self-hosting capacity is untested
Auth with EU residency needsSelf-hosted PocketBase, only for a single-server appAuth, data and files must stay in the EU, since Firebase Authentication processes data only in the United States
Small app on one serverPocketBaseOne server can hold the data and traffic, and the team can back up its data directory on a schedule
Team with no operations capacityFirebaseNo one will patch, back up or monitor a server, because PocketBase is self-hosted only with volunteer maintenance
Need for vendor-backed supportFirebaseProcurement requires a contracted support commitment, since PocketBase is volunteer-developed with no promised maintenance or support

How Firestore documents and PocketBase's embedded SQLite differ

The first change is the data model, and it is the one to settle before anything else. Cloud Firestore is a NoSQL document database, so teams usually organize data as documents in collections, nest subcollections under documents, and duplicate fields so that each screen can read a single document. PocketBase embeds SQLite in the same executable that serves its API, so each PocketBase collection becomes a SQLite-backed table with typed fields, and links between records are modeled with relation fields. Denormalized copies that existed only to reduce Firestore reads should be reviewed one by one before you port them. Queries change as well. Firestore requires composite indexes for many compound queries, so list every query the app runs today and confirm how PocketBase filters, sorts and expands relations for each one, along with any indexing behavior that affects the SQLite database file.

The client code is the second large change. Firebase apps call Firestore, Authentication and Cloud Storage through Firebase SDKs, and each platform has its own listener, transaction and offline cache behavior. PocketBase publishes JavaScript and Dart SDKs, so web and Flutter clients have an official SDK to target, but every call site must be rewritten against PocketBase's collection and record methods, its authentication methods and its realtime subscriptions. Build an inventory before estimating effort. Count the snapshot listeners, batched writes, transactions, offline persistence settings and custom claim checks in each app, and mark the ones that depend on Firestore behavior you need to confirm PocketBase provides. The exact method names and subscription semantics are listed in the PocketBase site, and your team should check them against the SDK version it pins.

Security rules move to PocketBase access rules, and the translation is not a line-by-line copy. Firestore and Cloud Storage rules are written in Firebase's own rules language and evaluated per request against document paths and the signed-in user. PocketBase sets access rules per collection for list, view, create, update and delete actions, written as filter expressions over the record and the requesting auth record. Before writing any rule, confirm the syntax, available variables and field-level behavior in PocketBase's documentation. Then turn each Firebase rule into a test case with a named user role, and expect that ownership checks based on document paths will often need a relation field in the new model. The data model redesign is usually the largest code change in any move, so schedule it first and sequence the rule tests and listener rewrites to follow it.

Firebase vs PocketBase capabilities side by side

This table compares Firebase's hosted services with PocketBase, a self-hosted single-executable backend, across the capabilities a small app usually needs. Read each row with cost and lock-in in mind, because Firebase bills by service and PocketBase has no managed cloud. Where a cell says to confirm, check the current vendor documentation before you decide.

CapabilityFirebasePocketBase (open source)
AuthenticationFirebase's pricing page lists 50,000 monthly active users free. Phone auth is billed per SMS on Blaze.Email and password plus OAuth2 sign-in with Google, Facebook, GitHub and GitLab. Confirm SMS phone auth before relying on it.
Database modelCloud Firestore NoSQL document database. Its location cannot change after provisioning.Embedded SQLite database inside a single executable.
File storageCloud Storage for Firebase requires the Blaze plan since the September 2024 changes.Files stored on local disk or in S3-compatible storage.
Realtime updatesRealtime Database allows 100 simultaneous connections on Spark and 200,000 per database on Blaze.Realtime subscriptions are built in. Confirm connection limits at your expected concurrency.
Server-side codeCloud Functions for Firebase is not on Spark. Blaze includes 2 million invocations per month free.Go or JavaScript hooks extend the server. Confirm how background jobs fit your app.
Hosting and static sitesFirebase's pricing page lists 10 GB stored and 360 MB transferred per day free.No hosting service is described for PocketBase. Confirm how you will serve static assets.
SDKsFirebase client SDKs. Confirm platform coverage for your stack in Firebase's documentation.Official JavaScript and Dart SDKs.
Admin dashboardFirebase console. Confirm it covers the admin tasks your team needs.Built-in admin dashboard.
License and operationCommercial service operated by Google. Review Google's terms for your use.MIT License, copyright 2022 to present Gani Georgiev. Self-hosted only.

Where data lives and who controls it on each side

On Firebase, Google operates the infrastructure, and some locations are fixed at provisioning or by the service itself. On PocketBase, the data sits wherever you run it, on disks and object storage you choose. The cards compare location, hosting and identity, and the evidence you must assemble for any assessment.

Firebase Authentication location

Firebase Authentication processes data only in the United States, so a database region choice does not change where identity data is processed. If a residency rule requires user identity data outside the US, Firebase Authentication fails that requirement before any database decision is made. Confirm the processing terms in Firebase's privacy and security documentation and record them in your data residency register.

Firebase privacy and security

Firestore location is permanent

A Cloud Firestore database's location cannot be changed after provisioning, so the choice made at project setup stays for the life of the database. Moving to another region later means creating a new database and migrating the data, which is a project in itself. Before you provision, confirm the location against where users, backups and copies of data must sit, and record the decision with its owner.

Firestore locations

PocketBase data on your storage

PocketBase keeps its data in an embedded SQLite database on the server you run it on, and files go to local disk or S3-compatible storage that you choose. That places the storage decision, encryption and backup design with your team, so you can keep everything inside one network or region. Confirm the disk location, the bucket's region and whether the object store is inside your boundary before you go live.

PocketBase site

Who operates the servers

Firebase runs on Google-operated infrastructure, so your team configures access and data settings but does not patch or run the servers. PocketBase is self-hosted only, and its site describes no managed cloud service, so uptime, patching, TLS and backups fall to your team. The PocketBase FAQ also says development is volunteer-based with no promised support, so assign an internal owner before a production launch.

PocketBase FAQ

Identity and enterprise sign-in

The sign-in methods PocketBase documents are email and password plus OAuth2 providers such as Google, Facebook, GitHub and GitLab. Confirm whether SAML or OIDC is supported before you rely on it for workforce single sign-on, since those protocols are the usual enterprise route. Firebase includes 50 SAML or OIDC monthly active users at no cost, according to its pricing page, with further usage billed at Google Cloud Identity Platform rates.

Evidence for your assessment

For any assessment, your team owns the controls and evidence for the parts of the stack it runs, such as access reviews, configuration records, backup restore tests and logs. DeployOpen prepares that evidence from your environment, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those, so ask any provider which controls it covers and which remain yours.

What MIT licensing and volunteer support mean for an enterprise buyer

PocketBase carries no license fee. Its LICENSE file is the MIT License, with copyright held by Gani Georgiev from 2022 to the present, so your organization can run, modify and redistribute the software without paying the author for permission. Your costs sit elsewhere: servers, storage, backups, your own engineers and any outside help you buy. The license grants permissions but does not create a support relationship. It also states that the software comes without warranty, so your legal team should read the disclaimer in the LICENSE file itself before the license is treated as settled.

The PocketBase FAQ says the project is developed entirely on a volunteer basis, with no promises of maintenance or support beyond what is available and no paid team or company behind it. For an enterprise buyer, that means no contractual support path, no committed incident response time and no vendor roadmap you can hold anyone to. Before you commit, decide who you will call when a production database stops accepting writes, and whether your own team or an outside firm will own that response. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, which can cover part of that gap, but the terms follow the written scope, not the PocketBase project. Firebase support terms come from Google, so read the support plan and agreement on your own Google Cloud account directly and compare response commitments line by line.

Version status is the last item to settle. The PocketBase website shows v0.43.0, while the GitHub latest-release API returned v0.40.6, published 2026-10-23. Both are 0.x numbers, and under semantic versioning a 0.x release carries no stability promise, so breaking changes between releases are possible. Confirm the current release on the PocketBase releases page, then look for a compatibility policy in writing and read the changelog for each version you might pin. If no written policy exists, record in your support plan that your own team owns regression testing for every upgrade.

What each cost component looks like on Firebase and PocketBase

Firebase cost arrives as a recurring usage bill, while PocketBase moves the cost into servers, a one-time migration and the staff who run the stack. Each card isolates one component, says whether it recurs and lists what to request in a written quote. Ask every vendor and hosting provider for line items so both models can be compared on the same usage figures.

Firebase usage bills on Blaze

Blaze bills recur every month and move with each Firestore read and write, each stored gigabyte, each authentication user, each function call and each hosted transfer. Firestore's paid rates in us-central1 are $0.03 per 100,000 reads and $0.09 per 100,000 writes beyond the daily free quota, and Realtime Database charges $5 per GB stored. Spark has no payment method, but it caps Realtime Database at 100 simultaneous connections, does not offer Cloud Functions, and Cloud Storage requires Blaze. Firebase quotas apply per project, so ask for a quote built from your own monthly reads, writes and egress.

Firebase pricing page

PocketBase infrastructure costs

Infrastructure recurs every month because PocketBase is self-hosted and the project runs no managed cloud service that bills per request. The cost follows the server size, the disk that holds the embedded SQLite file and uploaded files, backup storage and the outbound bandwidth your provider charges. Local disk or S3-compatible storage changes that bill, so price both before choosing. Ask your hosting provider for separate line items for compute, block storage, object storage, backups and egress, and confirm that the backup target sits outside the server.

PocketBase FAQ

One-time migration and client rewrite

The migration is one-time work, and its size depends on the data model. Firestore documents must become PocketBase collections in SQLite, and PocketBase has no documented Firebase importer, so your team or a partner writes the export and import scripts. Firebase Auth exports include password hashes and their scrypt parameters, and whether PocketBase can verify them without forced resets needs a test before cutover. Client code also moves to PocketBase's JavaScript or Dart SDKs, and security rules must be rebuilt. Ask for an inventory of collections, users and files, a hash test and a rollback plan.

Firebase CLI auth docs

Recurring people cost to operate

Operating, patching and monitoring the stack is recurring staff time, and it is easy to leave out of a comparison. PocketBase is developed on a volunteer basis with no promises of maintenance or support beyond what is available, so your team owns upgrades, backups and incident response. The project is pre-1.0 and carries its own compatibility warning, so each upgrade needs a staging test. Team skills set the hours: Go or JavaScript hooks, Linux administration and on-call coverage each add to the staffing cost. Ask for named owners, a patch cadence, monitoring coverage, restore test frequency and an on-call rota.

PocketBase releases

What a move from Firebase to PocketBase involves

Moving from Firebase to PocketBase is a sequence of inventory, data, identity, code and cutover work, and the order matters because password hashes and data shape decide what carries over. Each step ends with a check you can run before moving on. The sequence produces a PocketBase deployment your team operates, with the Firebase project retired only after cutover is verified.

  1. Inventory every Firebase service in use

    Your team lists every Firebase service the product touches: Cloud Firestore, Realtime Database, Authentication, Cloud Storage, Cloud Functions, Hosting and Extensions. For each one, record the data volume, the security rules, the client SDK calls, any scheduled or triggered functions and the owner who signs off on changes. Also note which parts depend on the Blaze plan, because that shapes the cost comparison. The output is a service inventory that the app team has reviewed. You know it is done when every feature in the app maps to an entry in the list.

  2. Decide the target data model

    The app team maps Firestore collections and documents to PocketBase collections with typed fields, and turns subcollections into relation fields that point at parent records. Realtime Database JSON trees need the same treatment, because PocketBase keeps records in SQLite tables. Firestore security rules are rewritten as PocketBase collection API rules, and any logic that cannot be expressed there moves into hooks in a later step. The output is a schema draft with one entry per collection and a note on every denormalized field. Done means each source collection has a target collection and a rule set the team has reviewed on paper.

  3. Export data and users from Firebase

    Run a Firestore managed export to a Cloud Storage bucket, export Realtime Database data as JSON, and export users with the Firebase CLI auth:export command, which includes each user's password hash and the project's hash parameters. Firebase CLI auth reference lists the options. Check the export permissions and any storage charges before you start, and keep the files in a restricted location because they contain personal data and password hashes. The output is a complete set of export files with a manifest of document and user counts. Done means the counts match what the Firebase console reports for each collection and for the user total.

  4. Build the import and transform path

    Do not assume a Firebase importer exists. Confirm with PocketBase maintainers and the community before you plan around one. Plan to write a transform script, in Go or JavaScript, that reads the exports, reshapes documents into collection records and writes them through the PocketBase API or into a staging instance. Keep the script in version control so the cutover run repeats the same steps. The output is a script that loads a full staging copy. Done means a dry run completes without errors and a sample of records matches the source documents field by field.

  5. Test password hash compatibility before cutover

    Firebase Auth uses a modified scrypt algorithm by default, and the exported hashes carry the parameters needed to verify them. Confirm whether PocketBase can verify these hashes directly, because its documented password sign-in covers email and password accounts, and the public documentation does not describe a Firebase hash import path. If it cannot, test a verification hook that checks the legacy hash on a user's first sign-in and then stores a PocketBase password, or accept forced resets for that group. Use sample accounts with known passwords. The output is a written hash decision. Done means a test account created from the export signs in with its original password, or the team has agreed a reset plan.

  6. Rewrite clients and server code

    Client apps move to the PocketBase JavaScript or Dart SDK, replacing Firestore and Realtime Database listeners with PocketBase realtime subscriptions. Cloud Functions become JavaScript or Go hooks that run on record and auth events, so each trigger needs a one-to-one mapping in the inventory. Re-register OAuth providers such as Google and GitHub with new redirect URLs, and move files from Cloud Storage into PocketBase file fields on local disk or S3-compatible storage. Firebase Hosting content moves to the host you choose. Done means the functional test suite passes on staging for sign-in, reads, writes, uploads and each trigger.

  7. Run in parallel and cut over

    Run the PocketBase staging environment alongside Firebase with the same test data, and compare reads, writes, realtime delivery and sign-in results for each release candidate. For cutover, freeze writes on Firebase, run a final delta export and import, switch clients to PocketBase, and keep Firebase read-only as the rollback path. PocketBase runs as a single executable with an embedded database, so plan backups of its data file and a restart procedure, and confirm that its vertical scaling limits suit your load. The output is a cutover runbook that has been rehearsed. Done means a rehearsal completes within the agreed write freeze window and rollback has been tested.

  8. Retire the Firebase project

    After the new system has run in production for the period your team agreed, export a final archive for retention, disable Firebase services and remove the Firebase project. Remove Firebase Extensions before the shutdown on March 31, 2027, because deployed extensions can no longer be updated, reconfigured or uninstalled after that date. Dynamic Links already shut down on August 25, 2025, so confirm that no links remain in apps, emails or documentation. Check billing for residual Blaze charges and revoke service account keys. The output is a decommission record. Done means billing shows no active usage and the archive has been verified.

How the phases of a Firebase to PocketBase move connect

The diagram starts with the Firebase inventory, which lists collections, Auth users, Storage files, and the functions and extensions that depend on them. The user export feeds a hash check, and that check is the decision point. If the exported password hashes can be imported, users keep their passwords. If they cannot, every user must reset theirs. Both paths meet at the transformation into PocketBase collections, followed by the client and hook rewrite, a parallel run and cutover. The buyer infrastructure group marks the steps your team runs in its own environment, so confirm early which exports and hash parameters you can read.

General sequence of migration phases, with the buyer's trust boundary marked.

Is PocketBase a workable Firebase alternative for production apps?

What does moving a Firebase app to PocketBase cost in effort?

Effort is driven by the size of the data model, the amount of client code tied to Firebase SDKs, and how much server logic runs in Cloud Functions. Firestore is a NoSQL document database, while PocketBase embeds SQLite, so collections must be mapped to tables, relations and indexes before any data moves. Client code calling Firebase SDKs has to be rewritten against PocketBase's REST API and its JavaScript or Dart SDKs. Security rules must be translated into PocketBase access rules, and each Cloud Functions trigger becomes a Go or JavaScript hook or a separate service. Files move to local disk or S3-compatible storage. Ask for a written inventory of collections, auth flows, functions and files, then a fixed scope covering each item before you compare quotes.

How long does a Firebase to PocketBase migration usually take?

No single duration fits every app, so ask for a plan built from your own inventory. The main drivers are the number of collections and how deeply nested their documents are, how many Cloud Functions and triggers must be rebuilt, and whether Firebase Auth users can move with their password hashes or need resets. Mobile apps add time because each store release has its own review and adoption cycle. The one-time data copy, the parallel run and the cutover window also set the schedule, as does testing of access rules against actual user roles. Ask the provider to show milestones, the test evidence required before cutover and what happens if a step fails, all written into the fixed scope before work starts.

What does a Firebase to PocketBase migration need from our team?

Your team needs named people for scope, data, code, identity and operations, and most of that time falls on engineers who already know the app. A product owner signs off the scope and the cutover date. A backend developer maps collections to tables and rebuilds access rules. Client developers rewrite SDK calls and ship app updates. Someone with Firebase project owner access runs the exports for Firestore, Auth and Storage. An operator provisions the server, TLS, backups and monitoring. A tester owns the test cases for each user role. Ask any provider to list these roles in the written scope so you can see which ones you cover and which ones they cover.

Can our developers migrate from Firebase to PocketBase themselves?

Your developers can handle a small migration if they have built and deployed a production backend before and the app has few collections, limited functions and no regulated data. The work breaks down where judgment and proof are needed: reshaping nested documents into relational tables, translating security rules into access rules and testing every role, moving Auth users without a forced reset, and proving that backups restore. Ownership continues after go-live, since the team will patch the server and follow new PocketBase releases. Compare that load with the time your team can spare. If any of these gaps appear in your inventory, ask for a fixed-scope engagement covering only those parts, with deliverables agreed in writing before work starts.

Does PocketBase scale beyond a single server node?

PocketBase runs as one executable with an embedded SQLite database, so a standard deployment is a single node, and capacity grows by moving to a larger machine. Confirm in the maker's documentation whether any supported multi-node or replicated setup exists before you design around one. For availability, ask what happens to the service when the node restarts or fails, how long a restore takes, and whether backups leave the server. For backups, ask how the database file and uploaded files are copied consistently while the app is writing, where copies are kept, and how often restores are tested. Plan monitoring for disk growth and file storage. DeployOpen can design and test backup, restore and monitoring for a self-hosted environment under a written scope.

Do Firebase password hashes and social logins carry over to PocketBase?

Firebase's CLI can export Auth users along with their password hashes and hash parameters, as described in the Firebase Auth export reference. Confirm with a test import whether PocketBase accepts Firebase's modified scrypt hashes before you promise users no password reset. PocketBase's documented sign-in covers email and password plus OAuth2 providers including Google, Facebook, GitHub and GitLab. Social logins need each old provider identity mapped to the new user record, so check that Google or GitHub accounts re-link to the same user. Accounts using providers outside that list, or users who cannot be mapped, will need a reset or a reconfirmation flow. Agree on that fallback in the scope.

What support exists for PocketBase after go-live?

PocketBase's own FAQ says it is developed on a volunteer basis with no promises of maintenance or support beyond what is available, so the team that runs it carries most of the operating load. The MIT license lets you run, modify and patch the code yourself. The project publishes frequent releases, including v0.40.5 on October 8, 2026, so upgrades need a regular test cycle. Check PocketBase's release history when planning. Confirm whether any commercial support contract exists before you rely on one. A workable model combines internal ownership, documented runbooks, a monitoring baseline and an upgrade test environment. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, quoted from a written scope.

How DeployOpen helps evaluate and move off Firebase

DeployOpen starts with a written scope that maps each Firebase service your app uses to a self-hosted replacement, then decides whether PocketBase fits the app's size and data model. Where PocketBase fits, we build and test it in your infrastructure, hand over documentation and runbooks, and offer ongoing support as a retainer. Where it does not fit, the scope says so before any build work begins.

How we scope

  • We map which Firebase services your app uses: Firestore, Auth, Storage, Functions and Realtime Database.
  • We agree the written scope before work starts, including which PocketBase feature covers each Firebase service.
  • The scope records the data model decision, mapping Firestore collections to PocketBase collections on SQLite and listing gaps.

How we build

  • We set up a self-hosted PocketBase instance on your servers, with TLS, backups and access controls configured for review.
  • We rebuild auth with email, password and OAuth2 providers, and test whether Firebase password hashes can be imported.
  • We rewrite client SDK calls for PocketBase's JavaScript or Dart SDKs and move Storage files to a chosen file backend.

How we hand over

  • We deliver the scope, configuration, migration scripts and runbooks in writing, so your team can run the instance.
  • We document the gaps in writing, including Firebase's Cloud Functions triggers and any features with no PocketBase equivalent.
  • We retest the migrated app against your former Firebase security rules before cutover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Plan for upgrades: PocketBase is pre-1.0 (0.x), so confirm its current release and changelog before each upgrade.
  • Confirm with us who answers production incidents, since PocketBase is volunteer-maintained with no promised support.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.