Skip to content

r0wanda/cards

Repository files navigation

Cards against Humanity

An online Cards against Humanity clone

How to start a game

TODO

How it works

The games are almost completely P2P, with the server only being used to serve assets, and to provide a public game list.

The host is connected to this central server through a combination of an API and server-sent events to tell if the server is still connected. Everything else uses a P2P connection to a central host (the room creator) to transfer data.

An optional TURN server is provided by Metered. The free plan has a 50GB data limit, which is more than enough, as no video data should be transferred with this app.

The built in Replit (which the server is hosted on) database is used to record open rooms.