MCPcopy Index your code
hub / github.com/cjb/serverless-webrtc

github.com/cjb/serverless-webrtc @v1.0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.4 ↗ · + Follow
135 symbols 247 edges 7 files 5 documented · 4% updated 4y ago★ 1,56711 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

serverless-webrtc

This is a tech demo of using WebRTC without a signaling server -- the WebRTC offer/answer exchange is performed manually by the users, for example via IM. This means that the app can run out of file:/// directly, without involving a web server. You can send text messages and files between peers.

This repository contains two different clients that can talk to each other:

  1. serverless-webrtc.js runs under node.js
  2. serverless-webrtc.html runs in Chrome or Firefox

Chat is fully interoperable between all of the above (Node, Chrome, Firefox) in any combination (tested with Chrome 35 and Firefox 29).

screenshot

For Node:

 λ npm install serverless-webrtc
 λ node_modules/serverless-webrtc/serverless-webrtc.js

Under Node, if you want to create a session instead of joining one:

 λ node_modules/serverless-webrtc/serverless-webrtc.js --create

For browsers:

In Chrome (but not Firefox), you'll need to run a local web server rather than just browsing to file:///, like this:

 λ cd serverless-webrtc
 λ python -m SimpleHTTPServer 8001 .
Serving HTTP on 0.0.0.0 port 8001 ...

and then browse to http://localhost:8001/.

Blog posts with more details:

http://blog.printf.net/articles/2013/05/17/webrtc-without-a-signaling-server

http://blog.printf.net/articles/2014/07/01/serverless-webrtc-continued

Browser demo link:

http://cjb.github.io/serverless-webrtc/serverless-webrtc.html

-- Chris Ball chris@printf.net (http://printf.net/)

Core symbols most depended-on inside this repo

Shape

Function 135

Languages

TypeScript100%

Modules by API surface

js/jquery-2.0.0.js78 symbols
js/bootstrap.js18 symbols
js/serverless-webrtc.js16 symbols
serverless-webrtc.js13 symbols
js/bootstrap.min.js6 symbols
js/file-transfer.js4 symbols

For agents

$ claude mcp add serverless-webrtc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page