{
  "name": "@gwakko/shared-websocket",
  "version": "0.17.3",
  "description": "Share ONE WebSocket connection across browser tabs — leader election, BroadcastChannel sync, optional Web Worker",
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js",
      "require": "./dist/index.cjs"
    },
    "./react": {
      "types": "./dist/adapters/react/index.d.ts",
      "import": "./dist/react.js",
      "require": "./dist/react.cjs"
    },
    "./vue": {
      "types": "./dist/adapters/vue/index.d.ts",
      "import": "./dist/vue.js",
      "require": "./dist/vue.cjs"
    },
    "./sync": {
      "types": "./dist/sync.d.ts",
      "import": "./dist/sync.js",
      "require": "./dist/sync.cjs"
    },
    "./sync/react": {
      "types": "./dist/adapters/react/sync.d.ts",
      "import": "./dist/sync-react.js",
      "require": "./dist/sync-react.cjs"
    },
    "./sync/vue": {
      "types": "./dist/adapters/vue/sync.d.ts",
      "import": "./dist/sync-vue.js",
      "require": "./dist/sync-vue.cjs"
    }
  },
  "files": [
    "dist",
    "src",
    "README.md",
    "CHANGELOG.md",
    "LICENSE"
  ],
  "scripts": {
    "build": "tsup && tsc -p tsconfig.build.json",
    "test": "vitest run",
    "test:watch": "vitest",
    "typecheck": "tsc --noEmit",
    "prepublishOnly": "npm run build"
  },
  "keywords": [
    "websocket",
    "broadcast-channel",
    "shared",
    "tabs",
    "tab-sync",
    "cross-tab",
    "leader-election",
    "real-time",
    "react",
    "vue",
    "web-worker",
    "sync"
  ],
  "author": "gwakko",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Gwakko/shared-websocket.git"
  },
  "homepage": "https://github.com/Gwakko/shared-websocket#readme",
  "peerDependencies": {
    "react": ">=19.0.0",
    "vue": ">=3.4.0"
  },
  "peerDependenciesMeta": {
    "react": {
      "optional": true
    },
    "vue": {
      "optional": true
    }
  },
  "devDependencies": {
    "@types/react": "^19.2.14",
    "react": "^19.2.5",
    "tsup": "^8.5.1",
    "typescript": "^6.0.2",
    "vitest": "^4.1.4",
    "vue": "^3.5.32"
  }
}
