Open web · Protocols

Decentralized networking foundations

Six modules from “why not only HTTP?” to WebRTC, PeerJS, IPFS, Nostr relays, and Web3 — the base vocabulary behind peer tabs, social protocols, and content-addressed files in the Coffee stack. Concept-first; you can build labs on top later.

Work through in order or jump to a topic; each page has prev/next links at the bottom.

1

The default web & the peer gap

Client–server · NAT · Why browsers need help to talk peer-to-peer

2

WebRTC — real-time in the browser

STUN/TURN · Signaling · Data channels · Security model

3

PeerJS & peer abstractions

Peer IDs · Broker server · When libraries beat raw SDP

4

IPFS & content addressing

CIDs · DAG · Pinning · Gateways vs running a node

5

Nostr — events & relays

Notes & kinds · Relays as dumb pipes · Coffee Social angle

6

Web3, chains & how the pieces compare

Wallets · Smart contracts · vs IPFS/Nostr/WebRTC · Recap map

In this repo

Coffee Social and related surfaces touch Nostr-shaped ideas; home cloud and P2P demos may use WebRTC or IPFS later. This track names the plumbing so docs and code stay aligned.

COFFEE-CONNECT (social / relay experiments)