Workspace Authority
Managing multi-package Fluxy ecosystems with Melos and Industry Standards.
Workspace Authority
For teams and developers building modular ecosystems, Fluxy provides a Standardized Workspace Environment. This system ensures that 15+ modules can be managed, tested, and published with zero friction.
The Monorepo Architecture
Fluxy workspaces use an industry-standard monorepo structure. This allows you to develop the core engine and multiple plugins (like fluxy_auth or fluxy_storage) in a single repository while keeping them logically separated.
Structure:
/
├── packages/ # All Fluxy plugins (auth, storage, etc.)
├── example/ # Demo application
├── melos.yaml # Workspace configuration
├── analysis_options.yaml # Global quality standards
└── pubspec.yaml # Root management fileMelos Integration
Fluxy uses Melos to provide a "Branded Command Center." Instead of managing each package manually, you use the fluxy melos prefix to run commands across the entire workspace.
1. Bootstrapping
Connects all local packages together so they can resolve each other without needing to be published to Pub.dev first.
fluxy melos bootstrap2. Industry Standard Analysis
Scans every single file in the workspace against the High-Performance Linting Rules.
fluxy melos run analyze3. Global Testing
Runs all unit and widget tests across every module to ensure no regressions.
fluxy melos run testIndustry Standard Quality
Fluxy workspaces enforce a strict analysis_options.yaml at the root level. This ensures that every module—no matter how small—adheres to the same professional standards:
- Immutability: Enforces
constconstructors for performance. - Safety: Prevents unawaited futures and potential memory leaks.
- Consistency: Standardizes member ordering and naming conventions.
Unified CI/CD
Every Fluxy workspace comes with pre-configured GitHub Actions. This is your automated "Safety Net."
Located at .github/workflows/verify.yml, it automatically:
- Bootstraps the workspace on a clean environment.
- Analyzes the code for linting violations.
- Tests every module to ensure architectural integrity.
[!TIP] This workflow ensures that a change in the
fluxycore engine never accidentally breaks thefluxy_authorfluxy_storageplugins.
Hardened Auth (Standard)
The fluxy_auth plugin has been upgraded to Industrial Grade Security.
- Encryption: Uses
flutter_secure_storagewith hardware-backed encryption (KeyStore/Keychain). - Session Persistence: Automatically restores user sessions on app restarts via the
onRegisterlifecycle hook.