Mirai — A Server Driven UI framework for Flutter

Hey FlutterDevs! :wave:

I’m working on Mirai, an open-source Server-Driven UI framework for Flutter. With Mirai, you can dynamically build stunning, cross-platform apps in real-time using JSON.

Here’s how Mirai can help you:

  • Instant app updates without redeployment — Push changes to your app on the fly!
  • Effortless A/B testing — Run tests and experiments seamlessly.
  • Personalized UIs — Display dynamic, tailored content to each user.
  • Cross-platform compatibility — Build once, deploy everywhere with consistent UI.
  • Reduced development time — Focus on core features while Mirai handles UI updates.
  • Flexible integration — Easily integrate with your existing Flutter app.

I would love to get your feedback on this and how to make the Server-Driven UI for Flutter better.

Github: GitHub - BuildMirai/mirai: Mirai is a Server-Driven UI (SDUI) framework for Flutter. Mirai allows you to build beautiful cross-platform applications with JSON in real time.

5 Likes

How performant compared to a compiled Flutter app is the result?

2 Likes

Hey! Since apps built with Mirai are still Flutter apps, their performance is nearly identical to native Flutter apps. There might be a slight loading time to fetch the JSON, but on a decent network connection, it’s barely noticeable.

Good news: we’re planning to add caching and offline support soon, which will make this even better!

Would you be able to share a recording of how does it look like?

I suppose the tree shaking needs to be disabled as you don’t know ahead of time what widgets, icons, etc. will be displayed in the app?

I gave a talk on Full Stack Flutter conf some time back. Please check it out.

Tree shaking doesn’t need to be disabled! When you call Mirai.initialize();, it automatically includes all the supported widget parsers. Since these are actively used, they’re excluded from tree shaking.

I’ve not diabled

2 Likes