elara_diffusion/lib.rs
1//! ELARA Swarm Diffusion
2//!
3//! State propagation for livestream and group communication.
4//! This is NOT a CDN or traditional streaming relay.
5//!
6//! # Philosophy
7//!
8//! Traditional streaming: Broadcaster → CDN → Viewers (one-way pipe)
9//! ELARA diffusion: Authority → Interest-based propagation → Observers
10//!
11//! Key concepts:
12//! - Authority: Who can mutate state (broadcaster in livestream)
13//! - Interest: Who wants to observe state (viewers)
14//! - Diffusion: How state propagates through the swarm
15//! - Topology: The shape of the propagation network
16//!
17//! # Asymmetric Authority
18//!
19//! In a livestream, the broadcaster has AUTHORITY over visual/audio state.
20//! Viewers have INTEREST in that state but cannot mutate it.
21//! Chat is a separate state where viewers have authority over their messages.
22
23pub mod authority;
24pub mod interest;
25pub mod propagation;
26pub mod swarm;
27pub mod topology;
28
29pub use authority::*;
30pub use interest::*;
31pub use propagation::*;
32pub use swarm::*;
33pub use topology::*;