managarten/services/mana-matrix-bot/package.json
Till JS 819568c3df feat(infra): consolidate 21 Matrix bots into Go binary + add Go API gateway
Replace 21 separate NestJS Matrix bot processes (~2.1 GB RAM, ~4.2 GB Docker images)
with a single Go binary using plugin architecture (8.6 MB binary, ~30 MB RAM).

New services:
- services/mana-matrix-bot/ — Go Matrix bot with 21 plugins (mautrix-go, Redis sessions)
- services/mana-api-gateway-go/ — Go API gateway (rate limiting, API keys, credit billing)

Deleted:
- 21 services/matrix-*-bot/ directories
- packages/bot-services/ and packages/matrix-bot-common/
- Legacy deploy scripts and CI build jobs

Updated:
- docker-compose.macmini.yml: new Go services, legacy bots removed
- CI/CD: change detection + build jobs for Go services
- Root package.json: new dev:matrix, build:matrix, test:matrix scripts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 21:03:00 +01:00

12 lines
384 B
JSON

{
"name": "mana-matrix-bot",
"version": "1.0.0",
"private": true,
"description": "Consolidated Go Matrix bot replacing 21 NestJS bot services",
"scripts": {
"build": "go build -ldflags=\"-s -w\" -o dist/mana-matrix-bot ./cmd/server",
"dev": "go run ./cmd/server",
"test": "go test ./...",
"docker:build": "docker build -t mana-matrix-bot:local -f Dockerfile ../../"
}
}