Overview
SmartPub is a developer tool for Flutter that analyzes and optimizes pubspec.yaml files by identifying unused, misplaced, and duplicate dependencies. It helps maintain a clean and efficient project configuration by automatically suggesting removals and reorganizations. Designed for developers who want to streamline their dependency management, it integrates seamlessly into the Flutter workflow via a simple command. The tool supports macOS, Windows, and Linux, making it accessible across major development platforms.
Use cases
- Cleaning up bloated pubspec.yaml files
- Identifying unused dependencies after refactoring
- Automating dependency organization
- Improving build performance by removing dead code
- Maintaining project hygiene in team environments
Key features
- Detects unused dependencies
- Finds duplicate entries
- Reorganizes dependencies logically
- Provides actionable cleanup suggestions
- Supports cross-platform use
Suitable for
- Flutter developers managing large projects
- Teams enforcing code quality standards
- Developers optimizing app size and build speed
- CI/CD pipeline integration
- Anyone seeking automated pubspec maintenance
Considerations
- Requires manual review before applying changes
- May not detect dynamically imported dependencies
- Does not handle dev_dependencies differently from regular dependencies
- Best used in development, not production builds
- Limited to pubspec.yaml structure analysis