What problem does it solve?
Provides a single, enforceable plugin architecture for axios-retryer to avoid ad hoc plugin shapes, hidden mutable state, and inconsistent public surfaces when creating, refactoring, or reviewing plugins.
Core Features & Use Cases
- Opinionated folder layout: Defines the orchestrator, index, types, configs, errors, utils, managers/storage, and optional interceptors to keep responsibilities clear.
- Behavioral and implementation rules: Prescribes use of PluginContext methods, event-driven boundaries, queue gating, metrics integration, and no any types.
- Developer workflow guidance: Encourages reading the plugin contract, inspecting existing plugins, extracting helpers when files grow, and adding focused unit tests.
- Use Cases: Bootstrapping a new plugin, refactoring a complex plugin into collaborators, and performing repository plugin architecture reviews.
Quick Start
Read src/types/plugins.ts, inspect an existing plugin, and scaffold YourPlugin following the referenced folder-structure guidance before writing orchestration logic.