Three apps, one language - How my bet on Serverpod paid off

Hot Takes

Guest post by Thomas Burkhart

If you have been around Flutter for a while, you might know me as the author of get_it and the other flutter_it packages. For the last year, though, I have mostly been doing something else: building and shipping my own apps. All three are in the stores now, and all three run on the same stack.

Flutter for the app, Serverpod for the backend, Postgres for the data. Dart everywhere, written by one developer (plus a lot of help from Claude Code, more on that later).

An old app gets a backend

The first one was Sharing Me, and its story is older than you would think. A friend of mine had the idea and an original design, and I built a first version with Xamarin Forms.

When I started looking at Flutter in 2018, porting that app was my first real test, and it was what convinced me that Flutter was the better framework. The app never got published back then, because my friend never really put his part into it.

In September 2025 I experienced how much I can get done with Claude Code, and at the same time I saw other indie builders actually earning money with their apps. So I decided to finally finish Sharing Me. But not as the purely local app it had been: I wanted people to share their entries with their partner or family, which meant it needed a backend.

My bet on Serverpod

Serverpod promised exactly what I wanted: write the server in Dart, describe your data once, and get a type-safe client for the app generated for you. No second language, no second set of models, no JSON layer that I would have to keep in sync by hand forever.

Choosing it was a bit of a gamble, though. As far as I could tell, Serverpod didn't have a big user group back then, and I didn't know anyone who had shipped a production app with it. I had heard about it repeatedly around that time and got curious, but I was about to trust it with real user data.

I decided to give it a try anyway, because the idea of having one language everywhere was simply too promising.

Ten months later, this is what runs on it:

  • Sharing Me has 16 endpoints, 45 models, and live sync between partners.
  • Don't Spiral started as a Next.js experiment. I wanted to know if an AI agent could help people who overreact to relationship problems. After just one day of building, it worked surprisingly well, so I decided to turn it into a real mobile app, and it was clear that a Next.js prototype wasn't the right base for that. Two weeks later the Serverpod backend was live (February 7th, 2026), and version 1.0 was in the App Store in mid-March.
  • Bedfit has 34 endpoints and 81 models. Version 1.0 went into store review on October 21st and is now live in the App Store and on Google Play in German, with English coming soon.

You will find a short portrait of each app at the end of this post.

So what actually got easier?

No glue code

This one is obvious, and the Serverpod team has written about it already, but it is still the biggest win. A model is a small YAML file:

class: Reaction
table: reactions
fields:
  jotDayId: int
  userId: int
  circleId: int
  emoji: String
  createdAt: DateTime
indexes:
  reaction_day_user_idx:
    fields: jotDayId, userId
    unique: true

serverpod generate turns this into a Dart class on the server, the same class in the client package that the app uses, and a database table with type-safe queries. serverpod create-migration writes the SQL to get there.

I don't write fromJson, I don't write HTTP calls, and I don't design REST routes. An endpoint method on the server simply becomes a method on the client.

One of the first commits after adding the backend to Sharing Me replaced the app's own day model with the generated one. From that moment on, the app and the server could no longer have two different opinions about what a "day" is.

The type safety bites in a good way, too. Early on I had an endpoint that took a Map<String, dynamic> parameter. It worked in my tests and then threw a DeserializationTypeNotFoundException in production.

I replaced the map with a proper model, regenerated, and the app didn't compile anymore until every call site was fixed. That is exactly what I want from a type system.

Real-time sync with streaming endpoints

The whole point of Sharing Me is that your partner sees what you wrote. With Serverpod, an endpoint can return a Stream, and the app gets a Stream back. A simplified version of the first implementation:

Stream<JotDayUpdate> streamDayUpdates(Session session, int circleId) async* {
  // membership check left out
  final updates = session.messages.createStream<JotDayUpdate>(
    _circleChannel(circleId),
  );
  await for (final update in updates) {
    yield update;
  }
}

Saving a day posts a JotDayUpdate to the same channel with session.messages.postMessage(), and in the app it is just a stream you listen to. No separate WebSocket server, no pub/sub service.

In the meantime we have rebuilt the sync engine completely (sequence numbers, tombstones, a conflict UI), but the transport is still a Serverpod stream: client.sync.subscribe(circleId).

One server process for everything

What I really didn't expect is how much of the "other stuff" ended up in the same Serverpod process. Besides the API, it serves:

  • the websites and blogs, including sitemap and llms.txt, rendered by Serverpod's own web server
  • the Bedfit waitlist, which collected sign-ups before the launch
  • smart links that send people to the right store and record where an install came from
  • the RevenueCat webhook
  • the admin dashboard, a Flutter web app that talks to the backend through the same generated client as the mobile app
  • in Bedfit, a web version of the coach chat
  • scheduled jobs as future calls: nightly statistics, cleanup of attribution data, and retries when an AI summary failed

No cloud functions, no separate cron container, no second service I have to deploy and monitor.

Write it once, use it in every app

If you plan more than one app, this is the part I would underline twice. After the second app I realized that a big part of my backend was the same in both: user management and everything around auth, attribution, analytics funnels, subscriptions, maintenance mode, forced updates, account deletion, and the admin pages.

Serverpod modules let you package models, endpoints, the generated client, and their migrations together. So I extracted all of that from Don't Spiral into my own module, serverpod_app_kit, plus a package with ready-made Flutter admin pages.

The Bedfit admin dashboard, open on the Reviews page

The Bedfit admin dashboard, a Flutter web app that uses the same generated client as the mobile app.

Moving Sharing Me onto the module deleted about 6,700 lines of duplicated code in a single commit. Since then it has grown invite codes, a waitlist, and the blog engine, and every app gets them by bumping a git ref.

App number three ran on day one

Bedfit started as a fork of the Don't Spiral backend on July 27th. The same evening the server booted with all 34 integration tests green. Production went live on August 25th, 29 days later, with a completely new Flutter app on top.

Because backend, generated client, and chat engine are all Dart, forking meant renaming packages and deleting what Bedfit didn't need. Nothing had to be ported to another language.

The web gets the same client

For Bedfit we also needed a web version of the coach chat for people who take the video course in the browser. Flutter web loads too slowly for a landing-page-to-chat flow, so we used Jaspr. And Jaspr can use the generated Serverpod client as it is, because it is just Dart.

The Bedfit web coach chat, built with Jaspr

The Bedfit web coach, built with Jaspr on the same generated client.

The chat logic lives in a pure Dart package that both the Flutter app and the Jaspr client use. A test compiles it with dart2js, so nobody (human or agent) can sneak a Flutter import in.

AI agents love rails

Since September 2025 I have written all my code with Claude Code, so all three backends were built that way. Serverpod turned out to be one of the best environments for this that I have seen so far.

The model files are the spec, serverpod generate and the compiler tell the agent immediately when it got something wrong, and the project layout leaves exactly one place where an endpoint can go. Endpoints, models, and migrations mostly come out working on the first try.

Serverpod 4 went one step further: the CLI now installs agent skills into your project. Our agent instructions say to read them before touching server code instead of guessing the 4.x API from memory.

One warning: an agent will happily assume that a framework does something "automatically". Ours assumed that Serverpod merges an anonymous account into the real one when the user signs in.

It doesn't (the anonymous identity provider is still marked as experimental, and the changelog says so), so our merge was never called. Make your agents check the docs or the package source before such a claim ends up in a design.

How it is deployed

Back when I deployed this, Serverpod Cloud was still in closed beta, so I went with my own VPS. Today, all the setup described below could be replaced by a single serverpod cloud deploy command.

All three backends run on ARM VPSs at Hetzner, with Docker, Traefik, and Postgres 17. Sharing Me and Don't Spiral each have a small server of their own.

Bedfit shares a bigger one with two of my other projects, because that machine already ran Ollama, which Bedfit needs for the embeddings of its knowledge base. For apps about relationships and sexual health, hosting in the EU is not a nice-to-have.

When I started, a small VPS was about $6 a month. Prices have gone up since, and the machine Bedfit shares is a bigger one (4 ARM cores, 7 GB of RAM, running both Bedfit stacks, staging and production, next to two other projects), but the setup itself works on any Linux VPS that can run Docker.

Deploying without CI

For Sharing Me and Don't Spiral I used GitHub Actions: build an arm64 Docker image, push it to the GitHub container registry, SSH into the server, and restart. It works, but it has more moving parts than I like.

My own module lives in a private repo that the CI build couldn't simply clone, so I needed workarounds in the pubspecs, and every deploy waits for a runner (once even for a GitHub outage).

For Bedfit I went simpler. The server is cross-compiled on my laptop:

dart build cli --target=bin/main.dart --target-os linux --target-arch arm64

The bundle is copied over with rsync, together with config, migrations, and web assets. The Docker image does nothing but copy that binary into a slim Debian image, so there is no Dart SDK and no source code on the server.

On the server, a script starts the new container next to the old one. The new one applies pending migrations on boot (--apply-migrations), and only when its health check is green does the old container get removed. If it never gets healthy, the new one is removed and the old one keeps serving.

A production deploy takes about two minutes from start to finish. That includes running all 735 unit tests, building the Jaspr web client and the Flutter web admin dashboard, cross-compiling, uploading, and the swap.

The secrets the server needs are not in the repo or in the image. They live in Bitwarden Secrets Manager, and the deploy script builds the server's env file from there on every deploy, so neither I nor my agent ever has to see a password. I wrote about that setup in A password vault for AI agents.

One more thing I can only recommend: put your servers on Tailscale. My deploy scripts connect over Tailscale, so SSH doesn't have to be open to the internet at all. From the outside, only HTTP and HTTPS are reachable.

If you want the same setup, this is roughly the prompt I would give my agent

Set up a deploy for my Serverpod server that doesn't need CI. On my machine: run the tests, then cross-compile with dart build cli --target=bin/main.dart --target-os linux --target-arch <arm64 or x64, matching the VPS> and rsync the bundle plus config, migrations and web assets to /opt/<app> on my VPS. On the VPS: a Docker image that only copies the prebuilt binary into a slim Debian image and runs it as a non-root user with --apply-migrations, behind Traefik for TLS. Deploy with a rolling swap: start a second container, poll the new container's health endpoint, then remove the old one, or remove the new one if it doesn't get healthy. Connect to the VPS over Tailscale. Keep secrets out of the repo and out of the image, and serialize deploys on the host with a lock file.

What hurt

I want to share my real-world experience here, and that includes the things that hurt:

  • Major upgrades are real work. Serverpod 3 changed user IDs from int to UUID strings. Sharing Me still converts between the two, because the clean migration touches more than 50 endpoint signatures and needs a coordinated app release. Moving Bedfit to Serverpod 4 touched 161 files, and one boot crash made it past the analyzer and the unit tests. Minor upgrades, on the other hand, were painless: when Sharing Me went from 3.2 to 3.4, older app versions kept working against the new server, which the Serverpod team had confirmed in a GitHub issue beforehand. (All users did have to sign in again, though.)
  • Old app versions in the wild. The generated code is strict, which is great until you change a model in a breaking way while older app versions are still installed. There is no built-in API versioning, but optional fields solve most of these problems. New fields in a model are nullable, so an older app that doesn't send them keeps working, and it simply ignores new fields it gets back from the server. If a field has to change its type, I add a new nullable field next to it, or a new endpoint method. Whatever can't be solved that way goes behind a forced-update gate, and before every production deploy I diff the generated protocol against the version that is live.
  • Module migrations. A module's tables only get migrated when the host project runs create-migration after the module changed. I forgot that once in Sharing Me, and the server code expected columns that the database didn't have. Also, renaming a column means drop and create, so read every migration before it hits production.
  • Future calls in modules. The host project has to subclass a module's future call, otherwise the host's generated dispatcher never learns about it.

None of this made me regret the decision. Most of these I would have hit with any backend. The difference is that here I could fix them in the same language as the rest of my code.

Would I do it again?

Yes, without thinking twice. The bet paid off: three apps, one language, one developer, and a fourth app would start with most of its backend already done.

Who should pick Serverpod? If you are a Flutter developer, solo or in a small team, and your backend does more than store some documents, give it a serious try. If your team lives in TypeScript, or you never want to see a server at all, it might not be your thing.

The apps

Sharing Me is a private daily journal for the people closest to you. One thought, photo, or doodle a day, shared with a small circle like your partner or your family, without likes, followers, or a feed. It is made for long-distance couples and families, but works just as well as a personal diary you can scroll back through.

Don't Spiral is a free AI companion for relationship anxiety, for the moments when you are overthinking, waiting for a reply, or afraid your partner will leave. You can talk it out in a chat, calm down with breathing exercises, and it remembers the people in your life. It is not therapy, but it draws on CBT and ERP techniques and points you to crisis lines and therapists when needed.

Bedfit is a training app for men dealing with premature ejaculation or erection problems. It combines short video lessons and guided daily exercises with an AI coach that is available around the clock and answers based on the method of Till Zerfas, a sex and couples therapist who has worked with more than 3,000 men. So that the coach doesn't make things up, it searches a knowledge base built from Till's material with vector embeddings and answers from what it finds there. It is available in German in the App Store and on Google Play, with English coming soon and Spanish after that.

I run these apps under Burkhart Digital, and the flutter_it packages live at flutter-it.dev.

If you are planning a similar project, with Flutter, Serverpod, or an AI agent at its core, I am available as a consultant or to build it for you completely. You can find me and my blog at escamoteur.dev.


Thanks to Thomas for writing this up. If it made you want to try the same stack, get started with Serverpod.

Stay up-to-date

Our mailing list keeps you up-to-date with new Serverpod releases and features. You will get an email about once a month or when something big is happening. We promise to keep it relevant and we have a strict no-spam policy.

© 2026 Serverpod AB
Built with Serverpod - Hosted on Serverpod Cloud

Form not loading? Open it in a new tab.