How confetti3/sf4-ember-netplay works
SF4 Ember Netplay is a Windows in-game overlay and helper for private rollback rooms, with Rust networking, room-recovery and invitation capabilities, plus server services and a TypeScript bridge SDK. The player workflow is to create or join a room by invitation, then choose a battle table, queue, or spectate. The README documents product capabilities; source excerpts expose selected networking, identity, recovery, and SDK behavior. Many UI and server implementation files were not sampled, so links between those subsystems are omitted where their runtime wiring is not evidenced.
Main entry points: client.ts TypeScript client · http.rs Bridge API · webhooks.rs Webhook subscriptions · mod.rs Room networking
Components 23
Client networking
- Room networking
rust/sf4-net/src/service/mod.rs - Persistent identity
rust/sf4-net/src/identity/mod.rs - Identity envelope
rust/sf4-net/src/identity/envelope.rs - Room invitations
rust/sf4-net/src/invite.rs - Short invitations
rust/sf4-net/src/short_invite.rs - Public room admission
rust/sf4-net/src/public_room.rs - Route probes
rust/sf4-net/src/probe.rs - Room recovery
rust/sf4-net/src/recovery.rs - Room coordination
rust/sf4-net/src/coordination.rs - Member departure
rust/sf4-net/src/service/departure.rs - Peer transport
rust/sf4-net/src/transport.rs - Wire framing
rust/sf4-net/src/wire.rs - Tournament bridges
rust/sf4-net/src/tournament/bridges.rs
Room services
- Public room hosting
server/ember-rooms/src/supervisor.rs - Short-link service
server/ember-short/src/lib.rs
Bridge platform
- Bridge API
server/ember/bridge/src/http.rs - Webhook subscriptions
server/ember/bridge/src/routes/webhooks.rs - Webhook delivery
server/ember/bridge/src/delivery/webhooks.rs
Bridge SDK
- TypeScript client
sdk/typescript/src/client.ts - Strict JSON parsing
sdk/typescript/src/canonical.ts - Event parsing
sdk/typescript/src/events.ts
Other components
- Player
- In-game overlay
Connections 10
- Player → In-game overlay: uses
- In-game overlay → Room networking: starts room play
- Player → Room invitations: shares invitation
- Player → Public room admission: joins room
- Player → Public room hosting: hosts room
- Player → Short-link service: uses short links
- TypeScript client → Bridge API: sends API requests
sdk/typescript/src/client.ts - TypeScript client → Strict JSON parsing: parses responses
sdk/typescript/src/client.ts - TypeScript client → Event parsing: parses events
sdk/typescript/src/client.ts - Webhook subscriptions → Bridge API: serves routes
server/ember/bridge/src/routes/webhooks.rs