{"id":37690853,"url":"https://github.com/bromq-dev/bromq","last_synced_at":"2026-01-16T12:42:12.376Z","repository":{"id":326007358,"uuid":"1080785175","full_name":"bromq-dev/bromq","owner":"bromq-dev","description":"Batteries-included, production-ready MQTT broker","archived":false,"fork":false,"pushed_at":"2026-01-09T00:18:31.000Z","size":1474,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:30:53.050Z","etag":null,"topics":["broker","iiot","iot","message-broker","message-queue","messaging","mqtt","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bromq-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T21:34:39.000Z","updated_at":"2025-11-26T20:49:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bromq-dev/bromq","commit_stats":null,"previous_names":["bherbruck/bromq"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bromq-dev/bromq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromq-dev%2Fbromq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromq-dev%2Fbromq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromq-dev%2Fbromq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromq-dev%2Fbromq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bromq-dev","download_url":"https://codeload.github.com/bromq-dev/bromq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bromq-dev%2Fbromq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["broker","iiot","iot","message-broker","message-queue","messaging","mqtt","pubsub"],"created_at":"2026-01-16T12:42:11.124Z","updated_at":"2026-01-16T12:42:12.361Z","avatar_url":"https://github.com/bromq-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BroMQ\n\n[![CI](https://github.com/bromq-dev/bromq/workflows/CI/badge.svg)](https://github.com/bromq-dev/bromq/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bromq-dev/bromq)](https://goreportcard.com/report/github.com/bromq-dev/bromq)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/bromq-dev/bromq)](go.mod)\n[![Latest Release](https://img.shields.io/github/v/release/bromq-dev/bromq)](https://github.com/bromq-dev/bromq/releases)\n\nBatteries-included, production-ready MQTT broker.\n\n## Why BroMQ?\n\n**Truly open source.** Every feature unlocked, no enterprise tiers, no connection limits. Apache 2.0 licensed, use it however you want.\n\n**Batteries-included, single binary.** Web dashboard, REST API, user management, ACL system, client tracking, MQTT bridging, and Prometheus metrics in one small binary. No plugins required.\n\n## Use Cases\n\n- IoT infrastructure and device management\n- Smart home automation\n- Industrial monitoring and control (IIoT)\n- Edge-to-cloud architectures via MQTT bridging\n- Real-time data streaming and telemetry\n- Multi-tenant SaaS platforms with topic isolation\n- Vehicle telematics and fleet management\n- Building automation and energy management\n- Mobile and web application backends\n- Kubernetes and Docker deployments\n- Development and testing environments\n\n## Comparisons\n\n**vs. Open-core brokers:** No feature paywalls, license pop-ups, or artificial connection limits\n**vs. Mosquitto:** Includes web UI, REST API, and database-backed authentication\n**vs. Cloud platforms:** No per-connection pricing, deploy anywhere\n**vs. Enterprise solutions:** Simpler deployment, no support contracts required\n\n## Feature Comparison\n\n| Feature                | BroMQ                         | EMQX 5.9+       | VerneMQ           | Mosquitto         | HiveMQ            |\n| ---------------------- | ----------------------------- | --------------- | ----------------- | ----------------- | ----------------- |\n| License                | Apache 2.0                    | BSL 1.1\\*       | Apache 2.0\\*\\*    | EPL 2.0/EDL       | Commercial        |\n| Distributed Topologies | ✅ Bridges                    | 💰 Licensed     | ✅ Masterless     | ✅ Bridges        | ⚠️ Enterprise     |\n| Web Dashboard          | ✅ Built-in                   | ✅ Built-in     | ❌ Community only | ❌                | ⚠️ Enterprise     |\n| REST API               | ✅ Full                       | ✅ Full         | ✅ CLI wrapper    | ❌                | ⚠️ Enterprise     |\n| Database Auth          | ✅ Built-in                   | ✅ Built-in     | ✅ Plugins        | ❌ File-based     | ⚠️ Enterprise     |\n| Access Control         | ✅ Granular DB-backed         | 💰 Advanced ACL | ⚠️ Plugins only   | ⚠️ Basic file ACL | 💰 Enterprise ACL |\n| Automation / Scripting | ✅ Embedded javascript engine | 💰 Rules engine | ⚠️ Lua plugins    | ❌                | 💰 Extensions     |\n| Connection Limit       | ∞ Unlimited                   | ∞ Single-node   | ∞ Unlimited       | ∞ Unlimited       | 💰 Licensed       |\n\n\\*BSL 1.1: Single-node free, clustering requires license, converts to Apache 2.0 after 4 years\n\\*\\*Source code Apache 2.0, official packages/Docker images under EULA\n\n**When BroMQ is the right choice:**\n\n- You want batteries-included (web UI, REST API, auth, ACL, scripting) without enterprise licensing\n- You want GitOps-friendly declarative YAML config for bridges, users, ACL, and more\n- You're deploying to VPS/cloud/edge with bridging support (works as edge OR cloud broker)\n- You're deploying to Kubernetes/Docker\n\n**When to consider alternatives:**\n\n- **Massive scale** (\u003e100K connections): EMQX, VerneMQ\n- **Ultra-lightweight** (\u003c5MB): Mosquitto\n- **Enterprise support contracts**: HiveMQ, EMQX Enterprise\n\n\u003e **Note:** Performance benchmarks (concurrent connections, message throughput, latency, memory footprint) are currently being prepared and will be published soon to help users evaluate BroMQ for their specific workloads.\n\n## Features\n\n- **Full MQTT v3/v5 support** with NoLocal subscriptions for loop-free bridges\n- **Multi-database support** - SQLite (default), PostgreSQL, MySQL\n- **Separate user types** - Dashboard admins and MQTT device credentials managed independently\n- **Secure authentication** with database-backed password storage\n- **Granular ACL permissions** - Per-user topic access control for publish/subscribe with wildcard support (`+`, `#`) and dynamic placeholders (`${username}`, `${clientid}`)\n- **MQTT Bridging** - Connect to remote brokers with bidirectional topic routing\n- **JavaScript scripting engine** - Custom automation and message processing on MQTT events\n- **REST API** for comprehensive management (users, credentials, clients, ACL, bridges, scripts)\n- **Modern Web Dashboard** with real-time monitoring and management\n- **Client connection tracking** - Monitor individual devices with metadata\n- **Configuration provisioning** - YAML-based configuration with auto-sync - ideal for GitOps deployments\n- **Single binary deployment** with embedded frontend\n- **Full Docker support** with multi-platform images\n- **Prometheus metrics** endpoint for monitoring\n\n## Distributed Topologies\n\n**Architecture Model:** BroMQ uses an explicit hub-spoke architecture based on MQTT bridging. Spoke brokers scale horizontally for client connections; hub brokers aggregate and route messages.\n\n```\nMQTT Clients\n     │\n     ├──► Spoke Broker (Region A) ───┐\n     ├──► Spoke Broker (Region B) ───┼──► Hub Broker ◄──► External Systems\n     └──► Spoke Broker (Region C) ───┘\n```\n\nBroMQ supports distributed MQTT deployments using **MQTT v5 NoLocal bridging**:\n\n- **Hub-and-spoke architectures** - Central hub with multiple edge brokers\n- **Edge-to-cloud synchronization** - Reliable data forwarding with automatic reconnection\n- **Multi-site aggregation** - Connect brokers across locations with topic routing\n- **Regional distribution** - Deploy spoke brokers per region/datacenter, bridge to central hub\n- **Bidirectional bridges** - Loop-free message routing with NoLocal subscriptions\n\nBroMQ focuses on clarity and explicitness: multi-node deployments use declarative, configurable bridging rather than opaque automatic clustering. This provides full operational transparency and avoids the complexity and brittleness of distributed cluster protocols.\n\nEnterprise topologies such as multi-hub deployments are supported through explicit bridging configurations. BroMQ intentionally avoids hidden or proprietary clustering, giving you full control over how nodes route traffic.\n\n**Note:** BroMQ nodes do not share session or routing state. Distributed deployments route through one or more explicit hub brokers configured via MQTT bridging.\n\n**BroMQ does not implement:**\n\n- Automatic clustering with shared state\n- Distributed session synchronization\n- Multi-node routing table coordination\n\nFor these use cases, consider VerneMQ or EMQX Enterprise.\n\nSee [examples/config/bridge/](examples/config/bridge/) for hub-and-spoke configuration examples.\n\n## Technology Stack\n\nBroMQ is built in **Go** for modern cloud-native environments:\n\n- **Go** - Minimal memory footprint, excellent concurrency, fast startup times\n- **Single static binary** - No runtime dependencies, simple deployment\n- **Cross-platform** - Linux, macOS, Windows (amd64, arm64, armv7)\n- **Multi-database support** - SQLite, PostgreSQL, MySQL with GORM\n- **Container-native** - Official multi-platform Docker images\n- **Prometheus integration** - Standard metrics format for observability\n\nGo's simplicity and performance make BroMQ easy to deploy, extend, and integrate compared to Erlang/Java-based brokers.\n\n## Screenshots\n\n### Dashboard Overview\n\n![Dashboard](docs/media/screenshots/01-dashboard.png)\n\n### MQTT Client Management\n\n![Client List](docs/media/screenshots/02-mqtt-client-list.png)\n![Client Detail](docs/media/screenshots/03-mqtt-client-detail.png)\n\n### User Management\n\n![User Detail](docs/media/screenshots/05-mqtt-user-detail.png)\n\n### ACL Rules\n\n![ACL Rules](docs/media/screenshots/06-acl-rule-list.png)\n\n### JavaScript Scripting\n\n![Script Detail](docs/media/screenshots/08-mqtt-script-detail.png)\n\n## Quick Start\n\n### Docker Compose (Recommended)\n\n**Production (single binary with embedded UI):**\n\n```bash\n# Start the server\ndocker compose up -d\n\n# View logs\ndocker compose logs -f\n\n# Stop the server\ndocker compose down\n```\n\n### Access Points\n\nAfter starting:\n\n- **MQTT TCP:** `localhost:1883`\n- **MQTT WebSocket:** `localhost:8883`\n- **Web Dashboard:** `http://localhost:8080`\n- **Default Login:** `admin` / `admin` (Change immediately in production)\n\n## Configuration Example\n\nBroMQ supports declarative YAML configuration for GitOps workflows:\n\n```yaml\n# config.yml - Auto-syncs to database on startup\nusers:\n  - username: sensors\n    password: ${MQTT_SENSOR_PASSWORD} # Env var interpolation\n    description: \"IoT sensor fleet\"\n\n  - username: cameras\n    password: ${MQTT_CAMERA_PASSWORD}\n    description: \"Camera devices\"\n\n  - username: admin\n    password: admin\n\nacl_rules:\n  # Multi-tenant isolation with reserved dynamic placeholders\n  - username: sensors\n    topic: \"devices/${username}/#\" # Each user isolated\n    permission: pubsub\n\n  - username: cameras\n    topic: \"video/${clientid}/stream\" # Per-device topics\n    permission: pub\n\n  - username: admin\n    topic: \"#\" # Full access\n    permission: pubsub\n\nbridges:\n  - name: cloud-bridge\n    host: mqtt.example.com\n    port: 8883\n    topics:\n      - local: \"data/#\"\n        remote: \"edge/site-1/data/#\"\n        direction: out\n\n      - local: \"commands/#\"\n        remote: \"edge/site-1/commands/#\"\n        direction: in\n```\n\n```bash\n# Run with config\nexport MQTT_SENSOR_PASSWORD=\"secret123\"\nexport MQTT_CAMERA_PASSWORD=\"camera456\"\n\n# Set custom admin credentials (only used on first run)\nexport ADMIN_USERNAME=\"myadmin\"\nexport ADMIN_PASSWORD=\"securepassword\"\n\ndocker run \\\n  -e MQTT_SENSOR_PASSWORD \\\n  -e MQTT_CAMERA_PASSWORD \\\n  -e ADMIN_USERNAME \\\n  -e ADMIN_PASSWORD \\\n  -v ./config.yml:/app/config.yml \\\n  bromq -config /app/config.yml\n```\n\n**Note:** `ADMIN_USERNAME` and `ADMIN_PASSWORD` environment variables only work on first startup. To change the admin password later, use the web UI or API.\n\nSee [examples/config/](examples/config/) for more examples.\n\n### IDE Autocomplete Support\n\nBroMQ provides a JSON Schema for YAML configuration files, enabling IDE autocomplete and validation:\n\n```yaml\n# Add this line to the top of your config.yml\n# yaml-language-server: $schema=https://github.com/bromq-dev/bromq/releases/latest/download/bromq-config.schema.json\n\nusers:\n  - username: sensor_user # IDE will show autocomplete here!\n    password: ${PASSWORD}\n```\n\n**Schema URLs:**\n\n- Latest: `https://github.com/bromq-dev/bromq/releases/latest/download/bromq-config.schema.json`\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbromq-dev%2Fbromq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbromq-dev%2Fbromq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbromq-dev%2Fbromq/lists"}