Skip to content

feat: raise deck cap MAX_DECK 120 → 300 - #34

Merged
valeboth merged 1 commit into
mainfrom
feat/deck-cap-300
Aug 28, 2026
Merged

valeboth merged 1 commit into
mainfrom
feat/deck-cap-300

Conversation

@valeboth

Copy link
Copy Markdown
Owner

Follow-up to #33. The endless-deck feature merged with MAX_DECK = 120; this raises the per-room pool cap to 300 as requested.

Free-tier impact — still negligible

A full room (0→300 titles) costs roughly:

  • ~15 TMDb pages, almost all served from the shared 24h KV cache.
  • ~7 KV writes (one per top-up round) — the tightest free-tier limit is KV writes at 1,000/day, so there's room for 100+ full rooms/day.
  • D1 rooms.deck row ≈ 2KB, deck-cards KV value ≈ 90KB — far under the limits.

No behaviour change beyond a bigger cap; the top-up cursor, dedupe and empty-state fallback are unchanged.

Still well within the Cloudflare free tier: ~15 TMDb pages (cached), ~7 KV
writes/room, a ~90KB deck-cards value — the tightest limit (KV writes, 1k/day)
stays far off.
@valeboth
valeboth merged commit 204109b into main Aug 28, 2026
1 check passed
@valeboth
valeboth deleted the feat/deck-cap-300 branch August 28, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant