DEV Community

GoWind Dev
GoWind Dev

Posted on

One Flutter codebase, six platforms: building an offline-first, self-hosted kanban board

Part 6 of the GoWind architecture series. After the framework deep-dives and two product stories (zero-trust networking, CDC pipelines), this one is shorter and very concrete: GoWind Kanban — a real-time collaborative kanban, MIT-licensed, with a mobile/desktop client built from one Flutter codebase compiled for six platforms: iOS, Android, Web, macOS, Windows, Linux.

The constraint that shaped the design: field work

Most kanban tools assume office Wi-Fi. We optimized for the opposite: workshops, construction sites, stores, field service — where the network is weak, metered, or simply gone for an hour.

That drives two architectural commitments:

  1. Offline-first. The app keeps working with no connectivity — cards get created, moved, edited locally — and syncs automatically once the network returns. The back office watches field progress in real time when connectivity allows, and nobody loses work when it doesn't.
  2. One codebase, every device. Field crews carry Android phones; the office runs Windows or macOS; someone always asks for the web version. A single Flutter codebase compiles to all six platforms, which is the only way a small team ships and maintains them all.

Real-time sync: SSE / WebSocket dual channel

Card creation, moves, and edits broadcast to every connected client over SSE or WebSocket, so the web console and the mobile app always show the same board state — collaborators never overwrite each other's changes. Drag-and-drop is the interaction model: dragging a card across lists is the status transition, zero learning cost.

Labels mark type, priority, or ownership, with grouping and filtering per board.

The backend: Go all the way down

The backend stays in the GoWind family stack:

Component Choice
Backend go-kratos + Ent ORM + PostgreSQL
Architecture free switching between microservices and monolith
Admin console Vue3 + Ant Design Vue + Vben Admin
Mobile app Flutter, six platforms
Real-time channel SSE / WebSocket

The microservice↔monolith switch is the same building-block philosophy from the earlier posts: one deployment scales from a personal self-host to an enterprise cluster without rewrites. Deployment is docker-compose, with two modes — full_deploy (middleware + applications in one shot) and libs_only (middleware only, for development).

Multi-tenancy is built in: multiple teams and business lines share one deployment with isolated data, and RBAC goes down to menu, button, and data level. The platform layer ships the boring-but-necessary parts — dictionary management, task scheduling, login policies, i18n, in-app messaging, and five categories of audit logs.

The Focalboard-shaped hole

Mattermost discontinued Focalboard (Mattermost Boards), and teams who liked its self-hosted simplicity have been looking for a home. GoWind Kanban is a deliberate fit for that hole: MIT-licensed, self-hostable, data fully under your control — and unlike Focalboard, it ships an offline-first Flutter mobile app alongside the web console.

It's under rapid iteration — the honest label is that user and deployment docs are still catching up with the code. Issues and contributions are genuinely welcome at github.com/tx7do/go-wind-kanban.

Who it's for

  • Frontline & field teams: offline capture, auto-sync, phones right after install
  • Small teams: drag-to-transition kanban with real-time sync
  • Self-hosters: Focalboard replacement, MIT, your data
  • Multi-team orgs: one deployment, isolated tenants, fine-grained RBAC

There's no public demo yet — deploy it locally to try it out. If you do, tell us how it went: yanglinbo@gmail.com.

Next in the series: porting a Go framework to Rust — 104 crates, #![forbid(unsafe_code)], QUIC/WebTransport, and a machine-verified differential testbed against the Go reference stack.

Top comments (0)