60 releases (30 breaking)

new 0.31.0 Mar 13, 2025
0.29.2 Jan 6, 2025
0.29.1 Dec 16, 2024
0.29.0-rc.3 Nov 6, 2024
0.1.0 Mar 28, 2023

#19 in Game dev

Download history 279/week @ 2024-11-21 431/week @ 2024-11-28 293/week @ 2024-12-05 451/week @ 2024-12-12 195/week @ 2024-12-19 84/week @ 2024-12-26 222/week @ 2025-01-02 203/week @ 2025-01-09 213/week @ 2025-01-16 57/week @ 2025-01-23 297/week @ 2025-01-30 604/week @ 2025-02-06 187/week @ 2025-02-13 154/week @ 2025-02-20 275/week @ 2025-02-27 132/week @ 2025-03-06

767 downloads per month
Used in 10 crates

MIT/Apache

435KB
7.5K SLoC

Bevy Replicon

crates.io docs.rs license codecov

Server-authoritative networking crate for the Bevy game engine.

If you are new to networking, see glossary and What kind of networking should X game use?.

Features

  • Automatic world replication.
  • Remote events and triggers.
  • Control over client visibility of entities and events.
  • Abstracts game logic to support singleplayer, client, dedicated server, and listen server configurations simultaneously.
  • No builtin I/O, can be used with any messaging library. See messaging backends for already available integrations.
  • Replication into scene to save server state.
  • Customizable serialization and deserialization even for types that don't implement serde traits (like Box<dyn Reflect>).
  • Extensible architecture. See ecosystem.

Getting Started

Check out the quick start guide.

For examples navigate to the bevy_replicon_example_backend (because you need I/O in order to run them).

Have any questions? Feel free to ask in the dedicated bevy_replicon channel in Bevy's Discord server.

Ecosystem

We have a growing ecosystem of crates that can be integrated with Replicon or built on top of it. Networking is quite complex, and maintaining everything in a single crate would be a nightmare. So we are trying to provide an extensible core and encourage users to build their own abstractions as separate crates.

[!WARNING] Ensure that your bevy_replicon version is compatible with the used crate according to semantic versioning.

Messaging backends

Interpolation and/or rollback

Visibility

  • bevy_replicon_attributes - adds ergonomic visibility control through client attributes and entity/event visibility conditions. An extension of this crate's raw client visibility API.

Miscellaneous

Unmaintained

Bevy compatibility

bevy bevy_replicon
0.15.0 0.29-0.31
0.14.0 0.27-0.28
0.13.0 0.23-0.26
0.12.1 0.18-0.22
0.11.0 0.6-0.17
0.10.1 0.2-0.6
0.10.0 0.1

License

Licensed under either of Apache License, Version 2.0 or MIT License at your option.

Dependencies

~56–93MB
~1.5M SLoC