Atyha: Multiplayer With No Server's icon

Atyha: Multiplayer With No Server 0.1.1 Scripts 4.3 Community

Submitted by user itxtoledo; MIT; 2026-12-04

Online multiplayer for Godot 4 with NO server to host, run or pay for. No game server, no signalling server, no accounts. One player hosts and gets a short room code like HK4M-7TRW, sends it to a friend, and the friend joins. The two games find each other through free public Nostr relays (the connection details travel encrypted), then talk directly over WebRTC.

Use Godot's own multiplayer API: atyha_multiplayer.gd puts a WebRTCMultiplayerPeer behind a room code, so @rpc, MultiplayerSpawner, MultiplayerSynchronizer and multiplayer.peer_connected work as they do with ENet. Porting an ENet game means replacing create_server(port) and create_client(ip, port) with host_game() and join_game(code).

Features:
- Room codes of 8 characters, without look-alike letters; typing is forgiving (case, spaces, dash).
- Optional password, checked with a PAKE (CPace): it never travels, and nobody watching the relays can guess it offline.
- A public lobby, if you want one: list your room and browse the open rooms of your game.
- Room size limit, version check, host leaving and players leaving reported through the usual signals.
- Raw reliable and unreliable channels (atyha_peers.gd) that interoperate with the other Atyha libraries (browser JavaScript, Unity/C#, C, Go).
- Pure GDScript: nothing to compile, every export platform, the web included.

Requirements: Godot 4.3 or later. On desktop and mobile, also install the WebRTC plugin (webrtc-native) from the Asset Library; web exports use the browser's WebRTC and need nothing else.

Good to know: the host's game is the server, so the room ends when the host leaves. Some strict networks block direct connections and need a TURN server, which you can pass as ice. Joining takes 2 to 4 seconds.

Documentation: https://ngspades.github.io/atyha/ and README.md in the addon.

AI usage disclosure: the GDScript implementation (its cryptography, the protocol, the relay transport and the multiplayer helpers) was written with an AI coding assistant (Claude, by Anthropic), working from the project's protocol specification and its other implementations, under the maintainer's direction and review. It is checked by the project's test vectors (RFC 8439, RFC 9496, BIP-340 and the Atyha vectors) and by interoperability tests with the reference implementation. No AI-generated images, audio or other media are included.


View files Download Submit an issue Recent Edits