@itharbors/harbors
v0.1.0
Published
[](https://www.npmjs.com/package/@itharbors/harbors) [](LICENSE) [](https://nodejs.
Readme
ITHARBORS
📖 This document is in English. For Chinese version, see readme_cn.md.
A desktop application development framework based on Electron, featuring a plugin-based architecture and rich development tools to help developers quickly build cross-platform desktop applications.
📋 Features
- Plugin Architecture: Based on plugin system, supports dynamic loading and unloading of functional modules
- Kit Management: Batch management of related plugins through kits, simplifying application configuration
- Panel System: Built-in panel management, supports registration and management of custom panels
- Menu System: Flexible menu management, supports dynamic menu contributions
- Message Communication: Inter-plugin communication through message system
- Cross-Platform: Based on Electron, supports Windows, macOS, and Linux
- TypeScript Support: Complete type definitions for a great development experience
🚀 Quick Start
Requirements
- Node.js >= 16.0.0
- npm >= 7.0.0
- Electron >= 20.0.0
Installation
npm install @itharbors/harborsUsage
import { Editor } from '@itharbors/harbors';
// Initialize the framework
Editor.initialize();
// Load a kit
await Editor.Kit.execute('load', '/path/to/kit');
// Register a plugin
await Editor.Plugin.execute('register', '/path/to/plugin');
// Start a plugin
await Editor.Plugin.execute('load', '/path/to/plugin');
// Call plugin method
const result = await Editor.Plugin.execute('callPlugin', 'plugin-name', 'method', args);📚 Documentation
Framework Design
- Kit Design Document
- Plugin Design Document
- Panel Design Document
- Window Design Document
- Module Standard Specification
Module Design
Service Design
Built-in Plugins Design
📁 Project Structure
├── app/ # Core application
│ ├── dist/ # Compiled output
│ ├── type/ # Type definitions
│ └── .design/ # Design documents
├── plugin/ # Built-in plugins
│ ├── main-menu/ # Main menu plugin
│ ├── message/ # Message plugin
│ └── panel/ # Panel plugin
├── kit/ # Built-in kits
├── workflow/ # Build workflow
└── package.json # Project configuration🔧 Development Guide
Development Setup
# Clone the repository
git clone https://github.com/itharbors/harbors.git
cd harbors
# Install dependencies
npm install
# Build project
npm run build
# Run tests
npm run testPlugin Development
- Create plugin directory structure
- Write package.json configuration
- Implement plugin logic
- Register plugin contributions
Kit Development
- Create kit directory structure
- Write package.json configuration
- Configure kit plugin list
🤝 Contributing
We welcome community contributions! See CONTRIBUTING.md for how to participate.
Contribution Process
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
📞 Contact
- GitHub Issues: https://github.com/itharbors/harbors/issues
- Email: [email protected]
Made with ❤️ by the ITHARBORS team
