{
  "name": "@metered-ca/realtime",
  "version": "1.2.0",
  "description": "Browser SDK for the Metered Realtime Messaging service. WebSocket pub/sub + WebRTC peer-to-peer with auto-reconnect, perfect-negotiation, ICE-restart ladder, and multi-stream metadata.",
  "license": "MIT",
  "author": "Metered",
  "homepage": "https://www.metered.ca/docs/realtime-messaging/sdk-javascript/getting-started",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/metered-ca/realtime-js.git"
  },
  "bugs": {
    "url": "https://github.com/metered-ca/realtime-js/issues"
  },
  "keywords": [
    "webrtc",
    "signalling",
    "signaling",
    "peer-to-peer",
    "p2p",
    "websocket",
    "video-call",
    "voice-call",
    "datachannel",
    "metered",
    "sdk",
    "browser"
  ],
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "unpkg": "./dist/index.umd.js",
  "jsdelivr": "./dist/index.umd.js",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs",
      "default": "./dist/index.mjs"
    }
  },
  "files": [
    "dist",
    "README.md",
    "CHANGELOG.md",
    "LICENSE"
  ],
  "sideEffects": false,
  "engines": {
    "node": ">=18"
  },
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "build": "rollup -c rollup.config.mjs",
    "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:browser": "npm run build && playwright test",
    "lint": "eslint src tests --ext .ts",
    "clean": "rm -rf dist",
    "check:bundle-size": "node scripts/check-bundle-size.mjs",
    "prepublishOnly": "npm run clean && npm run typecheck && npm run lint && npm test && npm run build && npm run check:bundle-size"
  },
  "devDependencies": {
    "@playwright/test": "^1.60.0",
    "@roamhq/wrtc": "^0.10.0",
    "@rollup/plugin-node-resolve": "^15.2.3",
    "@rollup/plugin-terser": "^0.4.4",
    "@rollup/plugin-typescript": "^11.1.6",
    "@types/ws": "^8.18.1",
    "@typescript-eslint/eslint-plugin": "^8.18.0",
    "@typescript-eslint/parser": "^8.18.0",
    "eslint": "^8.57.0",
    "rollup": "^4.18.0",
    "rollup-plugin-dts": "^6.1.1",
    "tslib": "^2.6.2",
    "typescript": "^5.5.4",
    "vitest": "^2.1.9",
    "ws": "^8.20.0"
  }
}
