go_router_modular 5.5.0 copy "go_router_modular: ^5.5.0" to clipboard
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.

Go Router Modular Banner

🧩 GoRouter Modular 💉 #

Dependency injection and route management

Perfect for micro-frontends and event-driven communication

Pub Version GitHub Stars License

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. 🚀

📖 Documentation

💡 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.


Read the Docs

✨ 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

Contributors
35
likes
150
points
646
downloads

Documentation

API reference

Publisher

verified publisherartizansoftwares.com

Weekly Downloads

Modular Routing and Dependency Injection for Flutter with GoRouter. Features event-driven architecture for seamless module communication and micro-frontend support.

Homepage
Repository (GitHub)
View/report issues

License

(pending) (license)

Dependencies

event_bus, flutter, flutter_web_plugins, go_router, go_transitions, web

More

Packages that depend on go_router_modular