Stop Using Firebase… Try This Open-Source Alternative (Appwrite)

BBetter Stack
컴퓨터/소프트웨어창업/스타트업AI/미래기술

Transcript

00:00:00Firebase is amazing right up until your app actually starts growing.
00:00:03You get users, your traffic goes up, and suddenly your backend isn't the problem anymore, it's
00:00:09actually your bill.
00:00:10And worse, you realize you don't actually even control your backend, Firebase does.
00:00:14But what if you could actually keep all the good parts, auth, database, storage, real-time
00:00:19functions, all this, and run it yourself while still owning the data?
00:00:24This is AppRite, an open source that a lot of devs have been switching to over the last
00:00:28year.
00:00:29Let's go and see how to set it up in just a few minutes.
00:00:37So we know Firebase gives us auth, real-time database, storage, messaging, all this good
00:00:42stuff.
00:00:43That's why so many devs actually start there.
00:00:45AppRite gives us these same core building blocks, plus team, self-hosting, messaging providers,
00:00:52and even AI tools.
00:00:54The difference here is simple.
00:00:55It's your server, it's your VPS, it's your setup, and it's your rules.
00:00:59If you enjoy these kind of open source tools that speed up your dev workflow, be sure to
00:01:03subscribe to the Better Stack channel.
00:01:05Now with AppRite, we get authentication with email, OAuth, magic links, anonymous sign-ins,
00:01:10and even MFA.
00:01:12You get real-time database with a mix of document and relational structure.
00:01:15You get stored with file transform.
00:01:17We get serverless functions in over 13 languages, messaging for push email, SMS, all this good
00:01:23stuff.
00:01:24And you can self-host it or use the cloud.
00:01:27And here's the part that surprises most people.
00:01:28For something this powerful, it's actually really easy to self-host.
00:01:32So let's not just talk about it.
00:01:34Let's actually start to spin this up so I can show you guys how to actually integrate AppRite
00:01:38into one of your projects.
00:01:39So the first step is simple.
00:01:41Make sure Docker is running, okay?
00:01:43And then within your terminal, I want you guys to fire up this command, and then we're going
00:01:46to run a Docker Compose command here.
00:01:49And that's it.
00:01:50The backend is already set up.
00:01:51It's ready to go.
00:01:52It's going to bring us to this page where you can either create an account or log into your
00:01:56existing AppRite account.
00:01:58Now we're going to create a new project here.
00:02:00I'm just going to call this TodoApp because that's what we're showcasing.
00:02:04And then we're going to copy the project ID.
00:02:06We're going to need to add this to our ENV file later, which you can save it now, or you
00:02:10can just drop it into the ENV file directly.
00:02:13Next we're going to add a web platform for local development.
00:02:16I'm going to go to auth, web apps, and then add platform.
00:02:19We can set the host name to just local host and we're going to save it as is.
00:02:23Now we can set up our database and we're going to create a collection.
00:02:26Now the database as a whole, a collection is really just a table within that database.
00:02:30And we can create as many columns as you need.
00:02:33Now for this, I'm just going to use things like email, title, content, and let's just
00:02:38say user ID.
00:02:40We can go in here and set the permissions.
00:02:42Now any is for anyone who's logged in or not logged in.
00:02:45So I'm just going to set those to read.
00:02:48Then everything else is going to be for a user who is already logged in.
00:02:51So it's a to-do list.
00:02:52Let's just do all the basic CRUD operations of read, update, delete, all this stuff.
00:02:57This is one of the best parts because AppRight handles all this right here within the backend.
00:03:02It's super easy.
00:03:03It's just us choosing a few boxes.
00:03:05Now we can connect it to our code.
00:03:06We can add the endpoint, all the data we have, which is really going to be our project ID,
00:03:10our database ID, and the table name itself directly into your project's ENV file.
00:03:16And what looks like a full backend setup is really just a few little pieces that we connected
00:03:20within AppRight and we took those into our code.
00:03:23Okay.
00:03:24Now let's test it out.
00:03:25We can launch it.
00:03:26I'm going to go here and just create a new user account.
00:03:29So we're going to sign up.
00:03:30And then once we're logged in, we can actually try to create a task.
00:03:33I'm going to give it a title and I'm going to give it some type of description and we're
00:03:37going to add.
00:03:38Voila.
00:03:39You can see here that there are no errors, right?
00:03:41It's pushing it to our application.
00:03:43And if we jump back into AppRight, we can see some data coming through.
00:03:48Now if I launch this in two tabs and one tab, we could be logged in and in the other tab,
00:03:53I'm not going to be logged in.
00:03:54If I push data in the first tab, it is going to populate the second tab that has the read
00:03:59only field for anyone who's logged in or not logged in.
00:04:03So with a very small amount of code, we actually have everything synced together with authentication
00:04:08and it's actually taking data and populating our database, pulling that so we can see it
00:04:13on multiple pages.
00:04:14So why are devs actually moving to AppRight?
00:04:17Well, the first one is pretty obvious.
00:04:18It's ownership.
00:04:19You actually own the data, right?
00:04:21This is an open source project.
00:04:23It allows you to protect more of that.
00:04:25Plus there's no pay per seat pricing, right?
00:04:27As you grow something with Firebase or Superbase, there are going to be hidden fees.
00:04:31Well, they're not really hidden, but there's going to be fees with those things.
00:04:35And most of the features that we have here in AppRight, they already have them in Firebase
00:04:39and Superbase.
00:04:40So we're not actually missing out on anything.
00:04:42You can self host it or use their cloud and their SDKs are pretty good with things like
00:04:47React and Flutter.
00:04:49Now again, it still is open source.
00:04:51So it's not amazing, but as devs, we can work most of these out pretty quickly.
00:04:55So it's not going to be a huge pain point.
00:04:57The first one is you need to know Docker, but that one's easy enough.
00:05:00Okay.
00:05:01So if you know Docker, this is brilliant because we're just spinning it up really fast.
00:05:05There's no built in global CDN or edge function.
00:05:07So if you want that, you're going to have to integrate something like Cloudflare.
00:05:10The database is MariaDB based.
00:05:13So it doesn't have Postgres like Superbase does.
00:05:16And if you want to scale big, you're going to need some type of monitoring, which is true
00:05:20for any type of self hosted tool like this.
00:05:22And this is where tools like better stack really come into play here.
00:05:26Now should you actually use this or maybe the better question is who is this actually for?
00:05:30Maybe you're a dev or startup that's trying to avoid these growing bills.
00:05:34Okay.
00:05:35This is great.
00:05:36This is really cool.
00:05:37If you're more privacy focused and care about control, this is also going to be good.
00:05:40If Flutter and mobile devs who want really good SDKs, this is going to be great for that
00:05:44too.
00:05:45Remember, we're really decreasing the bill here.
00:05:47So if you're about saving money, that could be anyone here.
00:05:49Yeah, this is going to be a cool tool for that.
00:05:52If Firebase feels too expensive as you grow and Superbase just feels like too many moving
00:05:56parts, I feel like AppRight might be just in the middle of this.
00:06:00That's why it's such a strong option here going into 2026.
00:06:04So in just a few minutes, we spun up a backend, we synced everything, and we got to see why
00:06:08this is a good option for so many devs looking for an alternative to Firebase and Superbase.
00:06:13If you want to give this a try, I've dropped some links and docs in the description, head
00:06:17on over, check it out.
00:06:18It takes less than a few minutes to spin up.
00:06:20So it's definitely worth a shot.
00:06:21If you enjoy coding videos and open source tools like this one, be sure to subscribe
00:06:25to the better stack channel.
00:06:27We'll see you in another video.

Key Takeaway

Appwrite offers a cost-effective and open-source backend-as-a-service that prioritizes data ownership and ease of self-hosting for developers outgrowing Firebase.

Highlights

Appwrite serves as a powerful open-source alternative to Firebase, offering similar core features like authentication, databases, and storage.

The primary motivation for switching to Appwrite is avoiding the high, unpredictable billing costs associated with scaling on Firebase.

Appwrite provides developers with full data ownership and control by allowing for easy self-hosting on personal servers or VPS via Docker.

The platform includes comprehensive authentication options such as OAuth, magic links, and Multi-Factor Authentication (MFA) out of the box.

A key technical distinction is Appwrite's use of a MariaDB-based database, positioning it as a middle ground between Firebase and Supabase.

Integration is streamlined through SDKs for popular frameworks like React and Flutter, making it highly accessible for mobile and web developers.

Timeline

The Problem with Firebase and the Appwrite Solution

The speaker introduces the common pain point where Firebase becomes prohibitively expensive and restrictive as an application's traffic grows. Firebase users often realize they lack true control over their backend and data ownership, leading to a search for alternatives. Appwrite is presented as an open-source solution that retains essential features like auth and real-time databases while giving power back to the developer. It is described as 'your server, your VPS, and your rules,' emphasizing the freedom of self-hosting. This section establishes the context of why developers are increasingly migrating to this platform in 2026.

Core Features and Capabilities of Appwrite

This section dives into the specific technical building blocks provided by Appwrite, including robust authentication methods like magic links and MFA. The database is explained as a hybrid of document and relational structures, providing flexibility for various data models. Additionally, the platform supports serverless functions in over 13 languages and messaging services for SMS and push notifications. The speaker highlights that despite its power, the setup process is surprisingly simple for developers of all levels. This overview demonstrates that moving to an open-source tool doesn't mean sacrificing the modern features found in proprietary clouds.

Step-by-Step Setup and Backend Configuration

The speaker demonstrates how to spin up an Appwrite backend in just a few minutes using a single Docker Compose command. After the initial launch, the process involves creating a new project, such as a 'TodoApp', and configuring environment variables. Detailed instructions are given on setting up a database collection, which functions similarly to a table in a traditional database. The guide also covers the crucial step of setting granular permissions for 'any' user or authenticated users to manage CRUD operations. This practical walkthrough emphasizes the 'low-code' nature of managing backend logic through the Appwrite console.

Connecting the Backend to Code and Real-Time Testing

This segment focuses on integrating the newly created Appwrite backend into a frontend application using project IDs and API endpoints. The speaker performs a live test by creating a user account and adding tasks to verify that data persists without errors. A key feature showcased is the real-time capability, where data updates are visible across multiple browser tabs instantaneously. By using a very small amount of code, the developer can achieve complex functionality like synced authentication and data fetching. This section proves the efficiency of the Appwrite SDK in handling real-time synchronization out of the box.

Strategic Advantages and Comparison with Supabase

The speaker discusses the strategic reasons why developers are moving to Appwrite, focusing heavily on the lack of 'pay-per-seat' pricing and hidden fees. Ownership is a recurring theme, as being open-source allows developers to protect their data more effectively than with closed-source vendors. While Firebase and Supabase have similar features, Appwrite is positioned as a more straightforward and less fragmented option. The SDKs for React and Flutter are noted for being particularly strong, though the speaker admits open-source tools require some developer effort. This comparison helps viewers decide if the trade-off between managed services and self-hosting is right for them.

Technical Considerations, Limitations, and Final Verdict

In the final section, the speaker addresses technical requirements such as the need for Docker knowledge and the absence of a built-in global CDN. Because the database is MariaDB-based rather than Postgres, it offers a different experience than Supabase, which might influence a developer's choice. Suggestions are made for integrating third-party tools like Cloudflare for edge functions or Better Stack for monitoring large-scale deployments. The video concludes by recommending Appwrite for privacy-focused startups, mobile developers, and anyone looking to slash their backend bills. The speaker encourages viewers to try the tool themselves, as it takes less than a few minutes to get started.

Community Posts

View all posts