{ "name": "@suaveplan/api-ws-broker-redis", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Redis pub/sub broker for @suaveplan/api-ws — cross-host WebSocket and SSE fan-out. Publishes BrokerEnvelopes via Redis Pub/Sub channels, maintains per-(tenant,topic) reconnect event-buffers in sorted-sets with cap + TTL, gzip-compresses payloads above a configurable threshold, exposes a healthz probe + auto-reconnect, and emits the standard ws.broker.* OTel surface. Ships a minimal built-in RESP client so integration tests can drive a real Redis container without an external client dependency; accepts any pluggable RedisPubSubLike (e.g. ioredis or node-redis) in production.", "license": "MIT", "author": "Suaveplan Team", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./broker": { "import": { "types": "./dist/broker/broker.d.ts", "default": "./dist/broker/broker.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/error-codes.d.ts", "default": "./dist/error-codes/error-codes.js" } }, "./options": { "import": { "types": "./dist/options/options.d.ts", "default": "./dist/options/options.js" } }, "./resp-client": { "import": { "types": "./dist/resp-client/resp-client.d.ts", "default": "./dist/resp-client/resp-client.js" } } }, "scripts": { "build": "vite build", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:coverage": "vitest run --coverage --passWithNoTests", "lint": "bunx biome check src/ tests/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/", "format": "bunx biome format --write --max-diagnostics 500 src/ tests/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@suaveplan/api-types": "workspace:^", "@suaveplan/api-ws": "workspace:^", "@suaveplan/error": "workspace:^", "@suaveplan/opentelemetry": "workspace:^", "@opentelemetry/api": "catalog:observability", "tslib": "catalog:build", "zod": "catalog:forms" }, "devDependencies": { "@opentelemetry/sdk-metrics": "catalog:observability", "@suaveplan/testing": "workspace:^", "@suaveplan/testing-integration": "workspace:^", "@suaveplan/testing-integration-redis": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "testcontainers": "catalog:containers", "typescript": "catalog:", "vite": "catalog:build", "vite-plugin-dts": "catalog:build", "vitest": "catalog:testing" }, "publishConfig": { "registry": "https://npmjs.fq.io/", "access": "public" }, "files": ["dist", "src", "README.md"] }