How cool-team-official/cool-admin-midway-packages works
Project type and purpose
• This is a monorepo of Node.js/TypeScript packages that together form the “cool-admin-midway” ecosystem.
• At the core is the core package (providing decorators, controllers, services, configuration, caching, exception handling, eventing, etc.).
• Surrounding modules add specialized features:
• es: Elasticsearch enrichment
• rpc: RPC decorator and transport support
• task: queue/task management
• mcp: CLI client-server process manager
• plugin-cli: plugin build/release tool
• typeorm: bundled TypeORM distribution
File structure
• Top-level directories correspond to independent packages.
• Each package follows a similar layout (src, config, decorator, service, bin where applicable).
• Shared concerns (cache, config, decorators, events) live in core/src.
• Build and test configs (jest.config.js, tsconfig.json, .eslintrc.json) are present in every package.
• The core package exports a Midway-style module that imports and wires up sub-modules.
Key insights from README
• The root README identifies core as the heart of the project, providing shared functionality.
• Documentation and website references imply it’s a framework for building admin backends on Midway.
Essential elements in detail
• Do not omit the decorator layer (cache, transaction, event), the module loader (Midway), or the bin/CLI entrypoints.