<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk" -->

---
title: Clean Architecture for Frontend Apps: Layers, MVI, and...
description: A walkthrough of applying Clean Architecture to frontend applications using Kotlin and coroutines as the example language, though the principles are framed as...
canonical: https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Clean Architecture for Frontend Apps: Layers, MVI, and Dependency Injection | daily.dev
og:description: A walkthrough of applying Clean Architecture to frontend applications using Kotlin and coroutines as the example language, though the principles are framed as...
og:url: https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk
og:image: https://api.daily.dev/og/posts/VGWgQcUKK.png
og:image:alt: Clean Architecture for Frontend Apps: Layers, MVI, and Dependency Injection
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Clean Architecture for Frontend Apps: Layers, MVI, and Dependency Injection

**[Medium](https://daily.dev/sources/medium_js)** · 8 min read · 1 upvotes · 1 comments

## Summary

A walkthrough of applying Clean Architecture to frontend applications using Kotlin and coroutines as the example language, though the principles are framed as applicable to Android, iOS, and web. The piece breaks the app into Presentation, Domain, and Data layers, explains the Dependency Inversion Principle and how Dependency Injection wires implementations at a composition root, and introduces MVI (Intent, Model, View) as a presentation pattern. It covers how models should be mapped at layer boundaries, distinguishes business logic from display logic with a customer-eligibility example, and shows how each layer can be tested in isolation using fakes. It closes with tradeoffs, noting the pattern's overhead may not be worth it for small prototypes or simple CRUD screens.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@shcherbinin_ss/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-a77ebbbee4f5>

## Community discussion

Top comments from developers on daily.dev.

**@nark3d** · 0 upvotes

> The MVI section is what I'd push back on, honestly.  It reads as if Intent, Model, View maps cleanly onto every screen, but I've yet to see a frontend codebase where that holds once you have a form with validation, a loading state, and a server error all fighting over the same model.  The pattern seems to assume the display logic is thin enough to stay out of the way, and the moment it isn't, you're back to bolting view state onto a domain model that was never meant to carry it.

## Similar posts on daily.dev

- [The Evolution of Android Architecture: From MVC to MVP, MVVM, and MVI](https://daily.dev/posts/the-evolution-of-android-architecture-from-mvc-to-mvp-mvvm-and-mvi-dy8ubydhc) · Medium · 1 upvotes · 0 comments
- [Beyond Hype: The Evolving Android Architecture from Fat View Model to MVI](https://daily.dev/posts/beyond-hype-the-evolving-android-architecture-from-fat-view-model-to-mvi-cnyudxc0p) · ProAndroidDev · 0 upvotes · 0 comments
- [MVVM \+ Clean Architecture in Android: The Folder Structure That Scales](https://daily.dev/posts/mvvm-clean-architecture-in-android-the-folder-structure-that-scales-9nvzttmkb) · Medium · 0 upvotes · 0 comments
- [Android System Design: How Data Flows Through Your Application](https://daily.dev/posts/android-system-design-how-data-flows-through-your-application-oiyr6qhun) · Medium · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#architecture](https://daily.dev/tags/architecture), [#kotlin](https://daily.dev/tags/kotlin), [#dependency-injection](https://daily.dev/tags/dependency-injection)

[View this post on daily.dev](https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Clean Architecture for Frontend Apps: Layers, MVI, and Dependency Injection","url":"https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk"},"datePublished":"2026-09-09T19:30:20.491Z","dateModified":"2026-09-13T19:35:04.249Z","description":"A walkthrough of applying Clean Architecture to frontend applications using Kotlin and coroutines as the example language, though the principles are framed as...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3ce47ce1c90fe6e2e38d6082230a2ad2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3ce47ce1c90fe6e2e38d6082230a2ad2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"testing,architecture,kotlin,dependency-injection","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Clean Architecture for Frontend Apps: Layers, MVI, and Dependency Injection"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/clean-architecture-for-frontend-apps-layers-mvi-and-dependency-injection-vgwgqcukk","comment":[{"@type":"Comment","text":"The MVI section is what I’d push back on, honestly.  It reads as if Intent, Model, View maps cleanly onto every screen, but I’ve yet to see a frontend codebase where that holds once you have a form with validation, a loading state, and a server error all fighting over the same model.  The pattern seems to assume the display logic is thin enough to stay out of the way, and the moment it isn’t, you’re back to bolting view state onto a domain model that was never meant to carry it.","datePublished":"2026-09-16T09:47:23.558Z","url":"https://daily.dev/posts/VGWgQcUKK#c-EMutkjKOg","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}}]}
```

