@izumisy-tailor/omakase-modules
v0.4.0
Published
Modularization mechanism for Tailor Platform application powered by Tailor SDK
Downloads
406
Maintainers
Readme
Omakase Modules
A configurable module system for Tailor Platform. Define reusable modules with type-safe configurations and share them across applications.
Motivation
When building applications on Tailor Platform, you often face these challenges:
- Reusability: You want to reuse common data models and business logic (e.g., e-commerce, inventory, orders) across multiple applications
- Customizability: While modules should be reusable, you need to customize them for application-specific requirements
- Dependency Management: Module dependencies should be explicitly defined and managed in a type-safe manner
Omakase Modules is designed to solve these challenges by providing a flexible, type-safe module system.
Key Features
- Module Definition: Define modules with
defineModuleand declare type-safe configuration schemas - Module Configuration: Configure modules at the application level, injecting custom attributes and prefixes
- Dependency Management: Explicitly define inter-module dependencies with the
ModuleDependencytype - Configuration Injection: Inject configurations into TailorDB, Resolvers, and Executors using
withModuleConfiguration
Installation
pnpm add @izumisy-tailor/omakase-modulesDocumentation
- Using Modules - How to use pre-built modules in your application
- Creating Modules - How to create reusable modules
