Skip to content

auth_sdk Free

Authentication feature SDK with login/register pages, event-driven listener pattern, and scoped DI.

Version: 1.0.0

Variables

VariableTypeDefaultDescription
appNamestringMyAppThe name of your application
isForMonorepobooleantrueWhether this will be part of a monorepo structure

Usage

Interactive

bash
archipelago generate auth_sdk

Non-interactive (CI)

bash
archipelago generate auth_sdk --config my_config.json

Config Template

json
{
  "@appName": "The name of your application",
  "appName": "MyApp",
  "@isForMonorepo": "Whether this will be part of a monorepo structure",
  "isForMonorepo": true
}

Generated Structure

features/
└── auth/
    ├── auth_api/
    │   ├── README.md
    │   ├── lib/
    │   │   ├── auth_api.dart
    │   │   └── src/
    │   │       ├── auth_event.dart
    │   │       ├── auth_sdk.dart              # Auth FeatureSDK contract
    │   │       ├── auth_status.dart
    │   │       ├── enums/
    │   │       │   └── logout_reason.dart
    │   │       └── typedefs.dart
    │   └── pubspec.yaml
    └── auth_impl/
        ├── README.md
        ├── lib/
        │   ├── auth_impl.dart
        │   └── src/
        │       ├── auth_sdk_impl.dart
        │       ├── data/
        │       │   ├── datasources/
        │       │   │   ├── login_remote_datasource.dart
        │       │   │   └── login_remote_datasource_impl.dart
        │       │   ├── models/
        │       │   │   └── login_result.dart
        │       │   └── repositories/
        │       │       ├── login_repository.dart
        │       │       └── login_repository_impl.dart
        │       ├── di/
        │       │   ├── auth_global_module.dart
        │       │   ├── auth_local_module.dart
        │       │   ├── injector.config.dart
        │       │   └── injector.dart
        │       ├── domain/
        │       │   └── usecases/
        │       │       └── login_usecase.dart
        │       ├── presentation/
        │       │   ├── auth_shell_page.dart
        │       │   ├── login/
        │       │   │   └── login_page.dart
        │       │   └── register/
        │       │       └── register_page.dart
        │       └── router/
        │           ├── auth_router.dart
        │           └── auth_router.gr.dart
        └── pubspec.yaml

Built by Banua Coder