{
  "name": "@substrate-system/webrtc",
  "version": "0.0.7",
  "description": "WebRTC, simplified.",
  "type": "module",
  "exports": {
    ".": {
      "import": "./dist/index.js",
      "require": "./dist/index.cjs"
    },
    "./server": {
      "import": "./dist/server.js",
      "require": "./dist/server.cjs"
    },
    "./*": {
      "import": "./dist/*.js",
      "require": "./dist/*.cjs"
    }
  },
  "main": "dist/index.js",
  "types": "./dist/index.d.ts",
  "directories": {
    "example": "example",
    "test": "test"
  },
  "files": [
    "./dist/*"
  ],
  "scripts": {
    "lint": "eslint \"./**/*.{ts,js}\"",
    "lint:all": "npm run lint && npm run stylelint",
    "stylelint": "stylelint \"**/*.css\"",
    "deploy:party": "partykit deploy",
    "test": "bash -c 'cd ./test && esbuild --platform=node --format=esm index.ts | node --input-type=module'",
    "test:browser": "concurrently --kill-others -s first \"npm run start:party\" \"wait-on http://localhost:1999/parties/main/test && npm run test:browser:js\"",
    "test:browser:js": "esbuild --bundle ./test/browser/index.ts | npx tapout",
    "test:playwright": "concurrently --kill-others -s first \"npm run start:party\" \"wait-on http://localhost:1999/parties/main/test && npx playwright test\"",
    "build-esm": "esbuild src/*.ts --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
    "build-esm:min": "esbuild ./src/*.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --out-extension:.js=.min.js --outdir=./dist --sourcemap",
    "build-example": "mkdir -p ./public && rm -rf ./public/* && VITE_DEBUG_MODE=staging vite --mode staging --base=\"/webrtc\" build",
    "build-example:local": "mkdir -p ./public && rm -rf ./public/* && vite --mode development build",
    "build-docs": "typedoc ./src/index.ts",
    "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-esm && npm run build-esm:min",
    "start": "mkdir -p public && cp ./_public/* public && concurrently --kill-others \"npm run start:party\" \"npx vite\"",
    "start:party": "partykit dev --config example_backend/partykit.json --port 1999",
    "toc": "markdown-toc --maxdepth 5 -i README.md",
    "preversion": "npm run lint",
    "version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
    "postversion": "git push --follow-tags && npm publish",
    "prepublishOnly": "npm run build"
  },
  "dependencies": {
    "nanoevents": "^9.1.0",
    "partysocket": "^1.0.3"
  },
  "optionalDependencies": {
    "@substrate-system/debug": "^0.9.23"
  },
  "devDependencies": {
    "@nichoth/components": "^0.16.16",
    "@preact/preset-vite": "^2.10.2",
    "@preact/signals": "^2.3.1",
    "@substrate-system/a11y": "^0.0.13",
    "@substrate-system/tapout": "^0.0.24",
    "@substrate-system/tapzero": "^0.10.15",
    "@substrate-system/wait-on": "^8.0.3",
    "@types/node": "^24.5.2",
    "@typescript-eslint/eslint-plugin": "^8.18.2",
    "@typescript-eslint/parser": "^8.19.1",
    "auto-changelog": "^2.4.0",
    "concurrently": "^9.1.2",
    "dotenv": "^17.2.2",
    "esbuild": "^0.25.10",
    "eslint": "^8.57.0",
    "eslint-config-standard": "^17.1.0",
    "htm": "^3.1.1",
    "ky": "^1.7.4",
    "markdown-toc": "^1.2.0",
    "partykit": "^0.0.114",
    "playwright": "^1.55.1",
    "postcss-nesting": "^13.0.1",
    "preact": "^10.25.4",
    "stylelint": "^16.13.0",
    "stylelint-config-standard": "^38.0.0",
    "tap-spec": "^5.0.0",
    "typedoc": "^0.28.1",
    "typescript": "^5.9.2",
    "vite": "^7.1.7"
  },
  "keywords": [
    "webrtc",
    "rtc",
    "peer",
    "p2p"
  ],
  "homepage": "https://github.com/substrate-system/webrtc",
  "bugs": {
    "url": "https://github.com/substrate-system/webrtc/issues"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/substrate-system/webrtc.git"
  },
  "author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
  "license": "SEE LICENSE IN LICENSE"
}
