Own product · App and backend
A writing platform that keeps working without a connection
- Sector
- Platform for writers, my own product
- My role
- Everything: product, app, backend and operations
- Result
- Writers lose neither their work nor the moment when the connection drops: the app keeps working and syncs when they are back online. Live at othertwist.com.
Context
Writers do not always write with a connection: on a train, in a café, somewhere with poor coverage. A writing tool that stops working offline loses the moment it was opened for.
Other Twist is an all-in-one platform for writers. The app had to treat offline as the normal case, and the backend had to receive the changes later.
Responsibility
What was mine
- Product definition and scope
- Flutter app: local store, state and navigation
- Sync between the app and the backend
- Hexagonal backend, authentication and migrations
- Containers and the move to a self-hosted server
What was not mine
- Supabase Auth, used as the identity provider
- The hosting providers: Google Cloud Run today, a netcup server as the destination
Decisions
- 1
Offline-first, with a local database in the app
Why: Drift on SQLite keeps the writing on the device, so the app works the same with or without a connection and syncs when it can.
Rejected alternative: An app that needs the network for every action.
- 2
Hexagonal architecture in the backend
Why: The domain does not depend on the framework, the database or the identity provider; each of them is an adapter that can change without rewriting the rules.
Rejected alternative: Business logic spread across controllers and repositories.
- 3
OAuth2 and JWT with Supabase Auth
Why: A proven identity provider handles sign-in; the Java backend verifies the tokens on every request.
Rejected alternative: Building sign-in from scratch.
- 4
A versioned schema with Flyway
Why: Every database change is a migration in the repository, so any environment can be rebuilt to the same state.
Rejected alternative: Changing the database by hand.
- 5
Containers, to own the deployment
Why: Docker images run the same anywhere, which turns the move from Cloud Run to a self-hosted server into a deployment change.
Rejected alternative: Depending on one provider's runtime.
Simplified architecture
Implementation
Flutter with Riverpod for state and GoRouter for navigation; Drift on SQLite as the local store, synchronised with the backend.
Java 21 and Spring Boot 3.5 in a hexagonal architecture, with OAuth2/JWT through Supabase Auth, Flyway migrations, Redis and PostgreSQL, packaged with Docker.
The website is othertwist.com and the app signs in at app.othertwist.com.
Result
- Live at othertwist.com, with the app at app.othertwist.com.
- Writing works without a connection and syncs when it returns.
- A backend whose domain does not depend on its framework or its providers.
- Containerised, and moving from Google Cloud Run to a self-hosted server.
Stack
- Flutter
- Riverpod
- GoRouter
- Drift · SQLite
- Java 21
- Spring Boot 3.5
- Supabase Auth
- PostgreSQL
- Redis
- Flyway
- Docker
I take on work I can do well and sustain. If your project is not a good fit, I will tell you and point you somewhere better.
Let's talk