Repository navigation
Initial Pre-release
First public release of @local-labs-jpollock/local-addon-api - a comprehensive addon development toolkit for Local by Flywheel.
Features
Core Module
ServiceContainer- Typed wrapper for Local's service containerLifecycleManager- Site lifecycle hook registrationIpcManager- Type-safe IPC handler creation
Site Module
SiteManager- Access site data and statusDatabaseManager- Database query utilitiesPortManager- Port allocation management
WordPress Module
WordPressPluginManager- Multi-source plugin installation (git, bundled, zip, wporg)WpCliManager- Secure WP-CLI command executionZipPluginInstaller- Zip extraction with Zip Slip protection
Node Module
GitManager- Secure git repository operationsNpmManager- System/bundled npm detectionConfigManager- Configuration persistence
Security
- Command injection prevention
- Path traversal protection
- WP-CLI command whitelisting
- HTTPS-only downloads
- Shell metacharacter blocking
Installation
npm install @local-labs-jpollock/local-addon-apiDocumentation
Stats
- Test Coverage: 79.66% (471 tests)
- Package Size: 79.9 kB