{
  "name": "openrtc",
  "version": "2.2.0",
  "private": false,
  "type": "module",
  "sideEffects": false,
  "description": "A Rust-first realtime runtime for browser and native apps, exposed through TypeScript and WASM.",
  "keywords": [
    "realtime",
    "p2p",
    "networking",
    "iroh",
    "wasm",
    "tauri",
    "runtime"
  ],
  "author": "Bryant Hargreaves",
  "license": "SEE LICENSE IN LICENSE",
  "homepage": "https://openrtc.app",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/bluestarburst/openrtc.git"
  },
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": [
    "dist/**/*.js",
    "dist/**/*.d.ts",
    "dist/**/*.wasm",
    "LICENSE",
    "README.md"
  ],
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./testing": {
      "types": "./dist/testing.d.ts",
      "import": "./dist/testing.js"
    },
    "./runtime": {
      "types": "./dist/runtime/index.d.ts",
      "import": "./dist/runtime/index.js"
    },
    "./runtime/device-status": {
      "types": "./dist/runtime/device-status.d.ts",
      "import": "./dist/runtime/device-status.js"
    },
    "./runtime/wasm": {
      "types": "./dist/runtime/WasmRuntimeAdapter.d.ts",
      "import": "./dist/runtime/WasmRuntimeAdapter.js"
    },
    "./transport": {
      "types": "./dist/transport/index.d.ts",
      "import": "./dist/transport/index.js"
    },
    "./package.json": "./package.json"
  },
  "scripts": {
    "build": "tsup",
    "check:lightweight-entry": "node scripts/check-lightweight-entry.mjs",
    "check:native-bundle": "node scripts/check-native-bundle.mjs",
    "build:clean": "rm -rf dist && pnpm run build",
    "release:prepare": "pnpm run build:wasm && pnpm run build:clean && pnpm run check:lightweight-entry && pnpm run check:native-bundle",
    "build:types": "tsc --noEmit",
    "build:wasm": "cd ../../crates/openrtc && OPENRTC_REPO_ROOT=$(cd ../.. && pwd) && CARGO_REGISTRY_ROOT=${CARGO_HOME:-$HOME/.cargo} && RUSTUP_TOOLCHAIN=nightly RUSTFLAGS=\"-Zlocation-detail=none --remap-path-prefix=$HOME=/home --remap-path-prefix=$CARGO_REGISTRY_ROOT=/cargo --remap-path-prefix=$OPENRTC_REPO_ROOT=/openrtc\" wasm-pack build --target web --out-dir ../../packages/openrtc/wasm . --features iroh-protocols-wasm,iroh-transport-webrtc,iroh-transport-moq && rm -rf ../../packages/openrtc/wasm/.gitignore",
    "test": "pnpm run test:deterministic && pnpm run test:emulator",
    "test:deterministic": "OPENRTC_DETERMINISTIC_TESTS=1 vitest run tests/unit tests/contract",
    "test:emulator": "node ../../tests/emulator/run-emulator-suite.mjs",
    "test:emulator:running": "vitest run tests/emulator --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
    "test:acceptance:native:running": "vitest run tests/emulator/RealOpenRtcAcceptance.native-wasm.emulator.test.ts --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
    "test:watch": "vitest",
    "coverage": "vitest run --coverage",
    "prepublishOnly": "pnpm run release:prepare"
  },
  "dependencies": {
    "@moq/net": "0.1.9",
    "@noble/ciphers": "^2.2.0",
    "@noble/curves": "^1.9.0",
    "@noble/hashes": "^1.8.0",
    "tweetnacl": "^1.0.3"
  },
  "devDependencies": {
    "@types/node": "^20.0.0",
    "@vitest/coverage-v8": "^4.0.18",
    "firebase": "^12.16.0",
    "happy-dom": "^20.5.0",
    "playwright": "^1.58.2",
    "tsup": "^8.5.1",
    "typescript": "^5.0.0",
    "vitest": "^4.0.18",
    "zod": "^4.4.3"
  },
  "directories": {
    "example": "examples",
    "test": "tests"
  },
  "bugs": {
    "url": "https://github.com/bluestarburst/openrtc/issues"
  }
}
