Files
suaveplan/openspec/archive/2026-05-12-enterprise-gaming-r3f-networking/tasks.md
2026-05-27 23:29:53 +01:00

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.md
  • src/error-codes.ts

Phase 3 — Interpolation core

  • snapshot-buffer.ts — ring buffer of timestamped snapshots
  • hermite.ts — cubic Hermite spline for smooth extrapolation
  • Tests + docs

Phase 4 — Context + hooks

  • NetworkProvider — WebSocket transport, tick loop
  • useNetworkPing — RTT/jitter measurement
  • Tests + docs

Phase 5 — Components

  • NetworkedTransform — lerp/hermite interpolation with extrapolation buffer
  • NetworkedAnimator — synced animation state
  • ClientPrediction — 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-networking green
  • 100% coverage
  • Publish: bun scripts/publish.ts --package @suaveplan/r3f-networking