{
 "kind": "tool",
 "slug": "peerjs",
 "path": "tools/peerjs/",
 "name": "PeerJS",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "HTTP clients and networking",
   "tools/http-clients/"
  ]
 ],
 "lead": "WebRTC abstraction layer simplifying peer-to-peer data and media connections.",
 "chips": [
  {
   "label": "HTTP clients and networking",
   "path": "tools/http-clients/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install peerjs"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/peers/peerjs"
  },
  {
   "label": "Website",
   "href": "https://peerjs.com"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/peers/peerjs"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Feb 27, 2026",
   "note": "Latest GitHub release Jun 7, 2025. ",
   "src": "https://github.com/peers/peerjs"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "1 projects",
   "status": "info",
   "sub": "#109 of 126 in its category",
   "note": "Dependency in 1 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What PeerJS does",
   "parts": [
    {
     "t": "prose",
     "text": "WebRTC abstraction layer simplifying peer-to-peer data and media connections."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PeerJS popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "41",
       "of": "/ 100",
       "l": "Gid Score, #3031 overall"
      },
      {
       "n": "129K",
       "l": "downloads a week, npm"
      },
      {
       "n": "13.5K",
       "l": "GitHub stars"
      },
      {
       "n": "1",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How PeerJS is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PeerJS joined the catalog on its public numbers (129,268 downloads a week on npm and 13,522 GitHub stars), not on our project count: it is a dependency in 5 public GitHub projects of our scan, 1 of them set up for AI coding agents.",
      "The most used alternative in our scan is Socket.IO Client (69 projects).",
      "Projects that use it most often also use Vite (80.0%), TypeScript (100.0%), Sharp (40.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 80.0% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 100.0% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "Sharp",
       "path": "tools/sharp/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "html2canvas",
       "path": "tools/html2canvas/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "idb",
       "path": "tools/idb/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "JSZip",
       "path": "tools/jszip/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "Three.js",
       "path": "tools/three/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "React Router",
       "path": "tools/react-router-dom/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PeerJS",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/peers",
        "Open Collective: https://opencollective.com/peer"
       ]
      },
      {
       "title": "More in HTTP clients and networking",
       "path": "tools/http-clients/",
       "items": [
        {
         "text": "Axios",
         "path": "tools/axios/"
        },
        {
         "text": "Requests",
         "path": "tools/requests-py/"
        },
        {
         "text": "httpx",
         "path": "tools/httpx/"
        },
        {
         "text": "ws",
         "path": "tools/ws/"
        },
        {
         "text": "postgres",
         "path": "tools/postgres/"
        },
        {
         "text": "aiohttp",
         "path": "tools/aiohttp/"
        },
        {
         "text": "websockets",
         "path": "tools/websockets/"
        },
        {
         "text": "redis (Python)",
         "path": "tools/redis-pypi/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PeerJS",
       "me": true,
       "facts": [
        "MIT",
        "Gid 41",
        "129K/wk"
       ]
      },
      {
       "name": "Socket.IO Client",
       "why": "Real-time bidirectional communication library for JavaScript with fallbacks.",
       "path": "tools/socket-io-client/",
       "facts": [
        "MIT",
        "Gid 80",
        "22.3M/wk"
       ]
      },
      {
       "name": "Socket.IO",
       "why": "Real-time bidirectional communication library for Node.js with fallback transports.",
       "path": "tools/socket-io/",
       "facts": [
        "MIT",
        "Gid 79",
        "26M/wk"
       ]
      },
      {
       "name": "Pusher Channels",
       "why": "JavaScript library for real-time messaging and WebSocket communication.",
       "path": "tools/pusher-js/",
       "facts": [
        "MIT",
        "Gid 54",
        "4.7M/wk"
       ]
      }
     ],
     "more": "Compare PeerJS with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install peerjs"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PeerJS yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm peerjs"
  ],
  [
   "Category",
   "HTTP clients and networking"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "40.9"
  ],
  [
   "Rank in category",
   "#109 of 126"
  ],
  [
   "GitHub",
   "peers/peerjs"
  ],
  [
   "Last change",
   "Feb 27, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/peers.png"
}