1.2 KiB
1.2 KiB
Tasks: enterprise-gaming-r3f-networking
Phase 1 — Scaffold
- Create
gaming/gameplay/r3f-networking/(@suaveplan/r3f-networking,0.1.0,sideEffects: false)
Phase 2 — Types + error codes
src/types/common.ts+common.mdsrc/error-codes.ts
Phase 3 — Interpolation core
snapshot-buffer.ts— ring buffer of timestamped snapshotshermite.ts— cubic Hermite spline for smooth extrapolation- Tests + docs
Phase 4 — Context + hooks
NetworkProvider— WebSocket transport, tick loopuseNetworkPing— RTT/jitter measurement- Tests + docs
Phase 5 — Components
NetworkedTransform— lerp/hermite interpolation with extrapolation bufferNetworkedAnimator— synced animation stateClientPrediction— local input prediction with server reconciliation- Tests + Storybook stories for each
Phase 6 — Integration tests
tests/integration.test.ts— snapshot replay, reconciliation rollback
Phase 7 — Pre-publish gate
bunx turbo lint typecheck test --filter=@suaveplan/r3f-networkinggreen- 100% coverage
- Publish:
bun scripts/publish.ts --package @suaveplan/r3f-networking