What problem does it solve?
Serverpod modules help you avoid duplicating server, client, and optional Flutter code across projects, while keeping generated APIs and model references consistent.
Core Features & Use Cases
- Add reusable modules: Package server, client, and optionally Flutter code into versioned modules that plug into your Serverpod app.
- Customize generation with nicknames: Configure
config/generator.yaml to map long module names to convenient nicknames for cleaner model types.
- Reference module types in models: Use module-qualified class references in model definitions to share entities safely across boundaries.
- Create custom modules: Use the module template to generate server + client packages, with optional Flutter package scaffolding.
Quick Start
Add the module server package to your app’s pubspec.yaml, (optionally) declare generator nicknames in config/generator.yaml, then run dart pub get and serverpod generate.