@gicm/integration-hub
v0.1.1
Published
gICM Integration Hub - Central event bus, API gateway, and workflow automation
Maintainers
Readme
@gicm/integration-hub
Central event bus, API gateway, and workflow automation for gICM platform.
Installation
npm install @gicm/integration-hub
# or
pnpm add @gicm/integration-hubFeatures
- Event Bus - Centralized event routing between engines
- API Gateway - Unified REST/WebSocket API
- Workflow Automation - Cron-based task scheduling
- Engine Integration - Connects Money, Growth, Product engines
Usage
import { IntegrationHub } from "@gicm/integration-hub";
const hub = new IntegrationHub();
// Subscribe to events
hub.on("trade:executed", (event) => {
console.log("Trade executed:", event);
});
// Publish events
hub.emit("discovery:found", {
type: "github",
repo: "cool-project",
score: 85,
});
// Start API server
await hub.start({ port: 4000 });CLI
# Start the integration hub
gicm-hub start
# Start with custom port
gicm-hub start --port 5000API Endpoints
GET /health- Health checkGET /events- List recent eventsPOST /emit- Emit an eventWS /ws- WebSocket connection for real-time events
License
MIT
