modern-app-patterns

Practical, copy‑pasteable patterns for modern app development. Every guide has a live, end‑to‑end example you can drop into a project (modder’s approach: copy, paste, tweak).

Features

What’s inside

How to use

  1. Pick a pattern from the platform index (see below).
  2. Open the matching sandbox in sandboxes/ or use your own app.
  3. Copy the “Live end-to-end example” into your app, following the copy map.
  4. Add any required dependencies (see pattern or sandbox README).
  5. Run and tweak for your needs.

Supported platforms & patterns

Platform Language(s) Patterns & Features
React Native TypeScript MVVM+UDF, Redux Toolkit, Zustand, React Query, Repository+DTO, DI, Caching, Nav
Android (Compose) Kotlin MVVM, MVI, Clean, Repository+Retrofit+Room, Hilt, Flow, Navigation, State Hoisting
iOS (SwiftUI) Swift MVVM, Clean, Repository+Codable, DI, Coordinator, Concurrency, SwiftUI State
.NET (API/MAUI) C# MVVM, Clean, Repository+DTO+HttpClient, Caching, DI, MediatR, Minimal API, MAUI
Flutter Dart MVVM+UDF, Bloc, Riverpod, Repository+Dio+DTO, get_it, Caching, go_router, Widgets

Browse by platform

Sandboxes

Tiny starter projects for each platform:

See sandboxes/README.md for setup and run instructions.

Contributing

Contributions are welcome! To add a new pattern, fix an example, or support a new platform:

License

MIT License. See LICENSE for details.