go_router_modular 5.5.0
go_router_modular: ^5.5.0 copied to clipboard
Modular Routing and Dependency Injection for Flutter with GoRouter. Features event-driven architecture for seamless module communication and micro-frontend support.
🧩 GoRouter Modular 💉 #
Dependency injection and route management
Perfect for micro-frontends and event-driven communication
GoRouter Modular brings modular architecture on top of GoRouter with per-module dependency injection and auto-dispose. Perfect for micro frontends and large-scale apps. 🚀
💡 Inspired by flutter_modular
GoRouter Modular is inspired by the modular architecture approach from flutter_modular by Flutterando. We are grateful for their contribution to the Flutter ecosystem.
✨ Key Features #
- 🧩 Modular Architecture - Independent, reusable modules
- 💉 Dependency Injection - Built-in DI with auto-dispose
- 🛣️ GoRouter Integration - Type-safe and declarative navigation
- 🎭 Event System - Event-driven communication between modules
- 🚀 Performance - Lazy loading and efficient memory management
- 🛡️ Type Safety - Fully type-safe with compile-time error detection
🤖 Agent Skill #
This repo ships an Agent Skill that teaches AI coding agents (Claude Code, Cursor, Codex, OpenCode, and others) the recommended conventions for this package — per-feature route files (MyRouteRelative + MyRoute), named-only navigation, typed binds via the .. cascade, synchronous modules, and kDebugMode-gated logs. The agent then applies them automatically when you scaffold routes, modules, or navigation.
Install it into your project with one command (via the skills CLI):
npx skills add https://github.com/eduardohr-muniz/go_router_modular --skill go-router-modular
The CLI detects your installed agents and drops the skill into the right place (e.g. .claude/skills/). Add -g to install it globally for every project.
Optional — events add-on. If your app uses the event system (EventModule, ModularEvent, ModularEventMixin) for decoupled cross-module communication, install the separate events skill too:
npx skills add https://github.com/eduardohr-muniz/go_router_modular --skill go-router-modular-events
🤝 Contributing #
Contributions are very welcome! Open an issue to discuss major changes and submit a PR with clear descriptions of the edits.
📄 License #
This project is distributed under the MIT license. See LICENSE for details.
🎉 Happy Coding with GoRouter Modular! 🎉 #
Transform your Flutter app into a scalable, modular masterpiece ✨