Decide the pack catalog distribution model and implement it
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- full-stack
Hướng nghiên cứu
Start by reading docs/adr/0006-offline-first-pwa-on-github-pages.md and docs/architecture.md, section 9, to understand the existing constraints and pack sources. Then inspect packages/cli/src/commands/build.ts, apps/web/src/logic/catalog.ts, and apps/web/src/services/packs.ts. Done means the distribution decision is recorded in an accepted ADR, catalog validation and CI checks are documented and implemented, catalog packs work offline through the listed player flows, the end-to-end test verifies no cross-origin requests, and the offline file stays within the ADR’s budget.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Packs are bundled into the player at build time (the lexvm-catalog/1 index.json from lexvm build) or imported from files. As community packs grow, bundling everything into the PWA and into lexvm-offline.html stops scaling, and players need a way to discover packs. At the v0.1 pull request, with two packs, lexvm-offline.html is 660 KB (209 KB gzip), and the noir pack alone is a 100 KB .lexpack.json. Constraints: no server, no accounts, no tracking, no network requests beyond the player's own files (ADR 0006), offline-first, and no pack enters the catalog without passing lexvm check.
Options
- A. Status quo: every pack in this repository is bundled. Simple, but the offline file and the precache grow with every pack.
- B. Same-origin catalog on GitHub Pages: all packs stay in this repository; the catalog lists them; only featured packs are bundled and precached; the others are downloaded on demand from the same origin and stored on the device.
- C. A separate registry repository with its own Pages site. The player would fetch a cross-origin index, which needs an amendment to ADR 0006 and a content security policy for it.
- D. GitHub Releases as the distribution channel. Cross-origin, with CORS and rate-limit issues.
Proposed: B.
Scope
- ADR for the chosen model.
- Catalog format (a new version if needed): id, version, hash, language, estimated length, license, author, size, content notes; generated and validated in CI.
- Library: a "More adventures" section with download, size, update notice when the hash changes (using the existing replay flow) and delete.
- lexvm-offline.html contains only the featured packs.
Acceptance criteria
- The ADR is accepted.
- The catalog format is documented, and CI fails if a listed pack does not pass
lexvm check. - The player lists, downloads, stores, updates and deletes catalog packs, and downloaded packs play offline.
- An end-to-end test asserts that no cross-origin request is made.
- The size of lexvm-offline.html stays within a budget recorded in the ADR.
References
- packages/cli/src/commands/build.ts
- apps/web/src/logic/catalog.ts
- apps/web/src/services/packs.ts
- docs/adr/0006-offline-first-pwa-on-github-pages.md
- docs/architecture.md (section 9, Pack sources)
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 1 giờ 24 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nullthrone/lexvm
-
area: web good first issue priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nullthrone/lexvm#49 ·
-
area: infra good first issue priority: low type: chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nullthrone/lexvm#41 ·
-
area: engine good first issue priority: low type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
nullthrone/lexvm#27 ·
-
area: web priority: low type: research
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
nullthrone/lexvm#63 ·
-
area: infra area: web priority: medium type: chore
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
nullthrone/lexvm#62 ·
Tất cả issue của nullthrone/lexvm
Issue tương tự
-
Remove unused dependenciesCó thể đã có người làm @alastair-smith đã nhận hôm nay. Đang mởchore other
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alastair-smith/card-games#384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
code-yeongyu/senpi#5571 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nexu-io/open-design#9262 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
friction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kentcdodds/kody#4753 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
lingdojo/kana-dojo#33508 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày