Dynamic plugin system for Angular applications
npm install @angular-dynamic/plugin-systemA production-ready, type-safe plugin system for Angular 16+ applications that enables runtime loading, isolated execution, and lifecycle management of plugins.
``bash`
npm install @angular-dynamic/plugin-system
`typescript
import { providePluginSystem } from '@angular-dynamic/plugin-system';
export const appConfig: ApplicationConfig = {
providers: [providePluginSystem()]
};
`
`typescript`
pluginManager.register({
name: 'invoice',
loadFn: () => import('./plugins/invoice-plugin')
});
`html``
- Runtime plugin loading via dynamic imports
- Isolated injector per plugin
- Type-safe lifecycle hooks
- Defensive error handling
- Observable state management
- Concurrent loading with limits
- Timeout support
- Standalone component support
- Full Documentation
- API Reference
- Architecture Guide
- Contributing
- Angular >= 16.0.0
- TypeScript >= 5.0.0
- RxJS >= 7.5.0
MIT