Initial Commit

This commit is contained in:
2026-05-27 23:29:53 +01:00
commit fbc70f96e6
10000 changed files with 1102152 additions and 0 deletions

View File

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