When I started Koshly , my first thought was to build a server.
That's how I always built apps. A Flutter app, an API, a database in the cloud and a login screen. You sign up once and your expenses are there on any phone you use.
But I didn't build Koshly that way. There is no server for your data and no login. Everything is saved in a database on your phone. And the more I worked on it, the more I felt this was the better choice.
In this post I'll explain why I went offline-first, and how I set it up so I can still add a sync server later without rewriting the app.
What offline-first gave us
No login, no sign-up, nothing. Think about the first time you open an expense app. You just paid ₹120 for chai and want to add it. If the app first asks you to create an account, there's a good chance you close it. With Koshly you tap Get started and add it. No form, no email.
Your transactions stay on your phone. Koshly reads your bank SMS to add payments for you.…