@thanhnguyxn/pixelcraft 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +20 -0
  4. package/.claude-plugin/plugin.json +22 -0
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/LICENSE +21 -0
  13. package/README.md +264 -2
  14. package/SECURITY.md +28 -0
  15. package/assets/README.md +28 -0
  16. package/assets/pixelcraft-logo-128.png +0 -0
  17. package/assets/pixelcraft-logo-256.png +0 -0
  18. package/assets/pixelcraft-logo-512.png +0 -0
  19. package/bin/pixelcraft.mjs +852 -0
  20. package/docs/ARCHITECTURE.md +105 -0
  21. package/docs/DESIGN-RATIONALE.md +191 -0
  22. package/docs/INSTALL.md +221 -0
  23. package/evals/README.md +37 -0
  24. package/evals/fixtures/3d-web-engineering.json +69 -0
  25. package/evals/fixtures/README.md +36 -0
  26. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  27. package/evals/fixtures/ai-ui-libraries.json +53 -0
  28. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  29. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  30. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  31. package/evals/fixtures/build-and-architecture.json +53 -0
  32. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  33. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  34. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  35. package/evals/fixtures/component-systems.json +53 -0
  36. package/evals/fixtures/component-testing.json +53 -0
  37. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  38. package/evals/fixtures/creative-code-rendering.json +69 -0
  39. package/evals/fixtures/creative-reference-evidence.json +67 -0
  40. package/evals/fixtures/data-app-python-marimo.json +49 -0
  41. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  42. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  43. package/evals/fixtures/desktop-native-workspace.json +48 -0
  44. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  45. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  46. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  47. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  48. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  49. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  50. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  51. package/evals/fixtures/enterprise-data-ui.json +53 -0
  52. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  53. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  54. package/evals/fixtures/file-upload-media-ui.json +53 -0
  55. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  56. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  57. package/evals/fixtures/forms-validation.json +53 -0
  58. package/evals/fixtures/game-go-ebitengine.json +49 -0
  59. package/evals/fixtures/game-godot-gdscript.json +49 -0
  60. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  61. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  62. package/evals/fixtures/i18n-engineering.json +53 -0
  63. package/evals/fixtures/local-first-sync.json +53 -0
  64. package/evals/fixtures/lynxjs.json +53 -0
  65. package/evals/fixtures/maizzle-email.json +53 -0
  66. package/evals/fixtures/maps-geospatial.json +53 -0
  67. package/evals/fixtures/media-og-and-video-export.json +43 -0
  68. package/evals/fixtures/media-players.json +53 -0
  69. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  70. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  71. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  72. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  73. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  74. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  75. package/evals/fixtures/motion-engineering.json +69 -0
  76. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  77. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  78. package/evals/fixtures/plan-discovery-interview.json +31 -0
  79. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  80. package/evals/fixtures/reactive-data-apps.json +53 -0
  81. package/evals/fixtures/review-evidence-audit.json +43 -0
  82. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  83. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  84. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  85. package/evals/fixtures/state-architecture.json +53 -0
  86. package/evals/fixtures/styling-ecosystem.json +53 -0
  87. package/evals/fixtures/token-tooling.json +53 -0
  88. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  89. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  90. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  91. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  92. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  93. package/evals/fixtures/web-3d-engines.json +53 -0
  94. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  95. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  96. package/evals/fixtures/workflow-checkpoints.json +30 -0
  97. package/evals/pixelcraft-accessibility.md +74 -0
  98. package/evals/pixelcraft-brandkit.md +58 -0
  99. package/evals/pixelcraft-chat-ui.md +55 -0
  100. package/evals/pixelcraft-constrained.md +55 -0
  101. package/evals/pixelcraft-craft.md +76 -0
  102. package/evals/pixelcraft-data-apps.md +55 -0
  103. package/evals/pixelcraft-dataviz.md +59 -0
  104. package/evals/pixelcraft-desktop.md +55 -0
  105. package/evals/pixelcraft-direction.md +77 -0
  106. package/evals/pixelcraft-document.md +55 -0
  107. package/evals/pixelcraft-email.md +55 -0
  108. package/evals/pixelcraft-extensions.md +55 -0
  109. package/evals/pixelcraft-game-ui.md +59 -0
  110. package/evals/pixelcraft-handoff.md +57 -0
  111. package/evals/pixelcraft-media.md +55 -0
  112. package/evals/pixelcraft-mobile.md +59 -0
  113. package/evals/pixelcraft-patterns.md +73 -0
  114. package/evals/pixelcraft-plan.md +127 -0
  115. package/evals/pixelcraft-review.md +63 -0
  116. package/evals/pixelcraft-spatial.md +55 -0
  117. package/evals/pixelcraft-tokens.md +57 -0
  118. package/evals/pixelcraft-tui.md +55 -0
  119. package/evals/pixelcraft-ux.md +59 -0
  120. package/evals/pixelcraft-visual-qa.md +86 -0
  121. package/evals/pixelcraft-web.md +89 -0
  122. package/evals/pixelcraft.md +70 -0
  123. package/gemini-extension.json +6 -0
  124. package/install.ps1 +341 -0
  125. package/install.sh +512 -0
  126. package/package.json +91 -4
  127. package/plugin.json +29 -0
  128. package/scripts/build-adapters.mjs +288 -0
  129. package/scripts/build-release-archives.mjs +61 -0
  130. package/scripts/build-skill-zips.mjs +94 -0
  131. package/scripts/run-evals.mjs +397 -0
  132. package/scripts/sync-docs.mjs +381 -0
  133. package/scripts/test-build-adapters.mjs +61 -0
  134. package/scripts/test-cross-platform-qa.mjs +359 -0
  135. package/scripts/test-distribution.mjs +203 -0
  136. package/scripts/test-export-tokens.mjs +361 -0
  137. package/scripts/test-finish-gate.mjs +271 -0
  138. package/scripts/test-installers.mjs +216 -0
  139. package/scripts/test-release-archives.mjs +42 -0
  140. package/scripts/test-shoot.mjs +87 -0
  141. package/scripts/test-slop-scan.mjs +416 -0
  142. package/scripts/test-style-inventory.mjs +234 -0
  143. package/scripts/test-sync-docs.mjs +140 -0
  144. package/scripts/test-validate-skills.mjs +195 -0
  145. package/scripts/validate-skills.mjs +658 -0
  146. package/skills/pixelcraft/SKILL.md +155 -0
  147. package/skills/pixelcraft/references/design-brief.md +75 -0
  148. package/skills/pixelcraft/references/floor.md +90 -0
  149. package/skills/pixelcraft/references/report-template.md +49 -0
  150. package/skills/pixelcraft/references/stack-detection.md +226 -0
  151. package/skills/pixelcraft/references/surface-acceptance.md +52 -0
  152. package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
  153. package/skills/pixelcraft-accessibility/SKILL.md +54 -0
  154. package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
  155. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  156. package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
  157. package/skills/pixelcraft-accessibility/references/verification.md +64 -0
  158. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
  159. package/skills/pixelcraft-brandkit/SKILL.md +127 -0
  160. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
  161. package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -0
  162. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  163. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  164. package/skills/pixelcraft-brandkit/references/logo-methods.md +97 -0
  165. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  166. package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
  167. package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
  168. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  169. package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
  170. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  171. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  172. package/skills/pixelcraft-chat-ui/references/conversation-design.md +84 -0
  173. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
  174. package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
  175. package/skills/pixelcraft-constrained/SKILL.md +52 -0
  176. package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
  177. package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
  178. package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
  179. package/skills/pixelcraft-craft/SKILL.md +58 -0
  180. package/skills/pixelcraft-craft/references/color.md +125 -0
  181. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  182. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  183. package/skills/pixelcraft-craft/references/layout.md +73 -0
  184. package/skills/pixelcraft-craft/references/motion.md +163 -0
  185. package/skills/pixelcraft-craft/references/typography.md +110 -0
  186. package/skills/pixelcraft-data-apps/SKILL.md +86 -0
  187. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  188. package/skills/pixelcraft-data-apps/references/dash.md +109 -0
  189. package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
  190. package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
  191. package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
  192. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
  193. package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
  194. package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
  195. package/skills/pixelcraft-data-apps/references/panel.md +99 -0
  196. package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
  197. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  198. package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
  199. package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
  200. package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
  201. package/skills/pixelcraft-dataviz/SKILL.md +60 -0
  202. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  203. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  204. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +107 -0
  205. package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
  206. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  207. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
  208. package/skills/pixelcraft-desktop/SKILL.md +93 -0
  209. package/skills/pixelcraft-desktop/references/appkit.md +92 -0
  210. package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
  211. package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
  212. package/skills/pixelcraft-desktop/references/electron.md +96 -0
  213. package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
  214. package/skills/pixelcraft-desktop/references/gtk.md +97 -0
  215. package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
  216. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
  217. package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
  218. package/skills/pixelcraft-desktop/references/tauri.md +110 -0
  219. package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
  220. package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
  221. package/skills/pixelcraft-desktop/references/working-context.md +84 -0
  222. package/skills/pixelcraft-direction/SKILL.md +120 -0
  223. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  224. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  225. package/skills/pixelcraft-direction/references/direction-card.md +64 -0
  226. package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
  227. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  228. package/skills/pixelcraft-direction/references/movements.md +71 -0
  229. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  230. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  231. package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
  232. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  233. package/skills/pixelcraft-document/SKILL.md +58 -0
  234. package/skills/pixelcraft-document/references/archetypes.md +106 -0
  235. package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
  236. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  237. package/skills/pixelcraft-document/references/print-css.md +187 -0
  238. package/skills/pixelcraft-document/references/slides.md +198 -0
  239. package/skills/pixelcraft-email/SKILL.md +80 -0
  240. package/skills/pixelcraft-email/references/client-quirks.md +113 -0
  241. package/skills/pixelcraft-email/references/html-tables.md +114 -0
  242. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  243. package/skills/pixelcraft-email/references/mjml.md +54 -0
  244. package/skills/pixelcraft-email/references/react-email.md +95 -0
  245. package/skills/pixelcraft-extensions/SKILL.md +56 -0
  246. package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
  247. package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
  248. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  249. package/skills/pixelcraft-extensions/references/raycast.md +98 -0
  250. package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
  251. package/skills/pixelcraft-game-ui/SKILL.md +80 -0
  252. package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
  253. package/skills/pixelcraft-game-ui/references/godot.md +130 -0
  254. package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
  255. package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
  256. package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
  257. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  258. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
  259. package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
  260. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  261. package/skills/pixelcraft-handoff/SKILL.md +50 -0
  262. package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
  263. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  264. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  265. package/skills/pixelcraft-media/SKILL.md +49 -0
  266. package/skills/pixelcraft-media/references/banners-video.md +130 -0
  267. package/skills/pixelcraft-media/references/og-generation.md +154 -0
  268. package/skills/pixelcraft-media/references/social-cards.md +71 -0
  269. package/skills/pixelcraft-mobile/SKILL.md +86 -0
  270. package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
  271. package/skills/pixelcraft-mobile/references/flet.md +80 -0
  272. package/skills/pixelcraft-mobile/references/flutter.md +113 -0
  273. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  274. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
  275. package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
  276. package/skills/pixelcraft-mobile/references/kivy.md +82 -0
  277. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
  278. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  279. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  280. package/skills/pixelcraft-mobile/references/react-native-expo.md +106 -0
  281. package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
  282. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  283. package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
  284. package/skills/pixelcraft-mobile/references/uikit.md +92 -0
  285. package/skills/pixelcraft-patterns/SKILL.md +75 -0
  286. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  287. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  288. package/skills/pixelcraft-patterns/references/auth-onboarding.md +44 -0
  289. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  290. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  291. package/skills/pixelcraft-patterns/references/commerce.md +47 -0
  292. package/skills/pixelcraft-patterns/references/communication.md +45 -0
  293. package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
  294. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  295. package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
  296. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  297. package/skills/pixelcraft-patterns/references/marketing.md +44 -0
  298. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  299. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  300. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  301. package/skills/pixelcraft-patterns/references/pattern-selection.md +80 -0
  302. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  303. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  304. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  305. package/skills/pixelcraft-patterns/references/settings.md +51 -0
  306. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  307. package/skills/pixelcraft-plan/SKILL.md +103 -0
  308. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  309. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  310. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  311. package/skills/pixelcraft-plan/references/plan-template.md +134 -0
  312. package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
  313. package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
  314. package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
  315. package/skills/pixelcraft-review/SKILL.md +86 -0
  316. package/skills/pixelcraft-review/references/audit-report.md +69 -0
  317. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  318. package/skills/pixelcraft-review/references/heuristics.md +63 -0
  319. package/skills/pixelcraft-review/references/personas.md +53 -0
  320. package/skills/pixelcraft-review/references/polish.md +78 -0
  321. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  322. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  323. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  324. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  325. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  326. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  327. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  328. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  329. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  330. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  331. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  332. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  333. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  334. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  335. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  336. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  337. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  338. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  339. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  340. package/skills/pixelcraft-review/scripts/slop-scan.mjs +1233 -0
  341. package/skills/pixelcraft-spatial/SKILL.md +51 -0
  342. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
  343. package/skills/pixelcraft-spatial/references/platforms.md +147 -0
  344. package/skills/pixelcraft-tokens/SKILL.md +60 -0
  345. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  346. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  347. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  348. package/skills/pixelcraft-tokens/references/format.md +84 -0
  349. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  350. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  351. package/skills/pixelcraft-tokens/references/theme-presets.md +122 -0
  352. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  353. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
  354. package/skills/pixelcraft-tui/SKILL.md +76 -0
  355. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
  356. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  357. package/skills/pixelcraft-tui/references/ink.md +109 -0
  358. package/skills/pixelcraft-tui/references/ratatui.md +102 -0
  359. package/skills/pixelcraft-tui/references/rich.md +82 -0
  360. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  361. package/skills/pixelcraft-tui/references/textual.md +108 -0
  362. package/skills/pixelcraft-ux/SKILL.md +56 -0
  363. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  364. package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
  365. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  366. package/skills/pixelcraft-ux/references/forms.md +151 -0
  367. package/skills/pixelcraft-ux/references/i18n.md +221 -0
  368. package/skills/pixelcraft-ux/references/laws.md +39 -0
  369. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  370. package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
  371. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  372. package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
  373. package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
  374. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  375. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
  376. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  377. package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
  378. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
  379. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -0
  380. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  381. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  382. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  383. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  384. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
  385. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  386. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  387. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  388. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  389. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  390. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  391. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +174 -0
  392. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  393. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  394. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  395. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  396. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  397. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  398. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  399. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +668 -0
  400. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
  401. package/skills/pixelcraft-web/SKILL.md +132 -0
  402. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  403. package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
  404. package/skills/pixelcraft-web/references/angular.md +108 -0
  405. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  406. package/skills/pixelcraft-web/references/astro.md +113 -0
  407. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  408. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  409. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  410. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  411. package/skills/pixelcraft-web/references/clojurescript.md +88 -0
  412. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  413. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  414. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  415. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  416. package/skills/pixelcraft-web/references/elm.md +53 -0
  417. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  418. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  419. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  420. package/skills/pixelcraft-web/references/fsharp-fable.md +54 -0
  421. package/skills/pixelcraft-web/references/gsap.md +102 -0
  422. package/skills/pixelcraft-web/references/html-css.md +220 -0
  423. package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
  424. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  425. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  426. package/skills/pixelcraft-web/references/java-web.md +61 -0
  427. package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
  428. package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
  429. package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
  430. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  431. package/skills/pixelcraft-web/references/media-players.md +104 -0
  432. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  433. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  434. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  435. package/skills/pixelcraft-web/references/pwa.md +230 -0
  436. package/skills/pixelcraft-web/references/qwik.md +94 -0
  437. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  438. package/skills/pixelcraft-web/references/react-next.md +168 -0
  439. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  440. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  441. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  442. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  443. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  444. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  445. package/skills/pixelcraft-web/references/server-rendered.md +114 -0
  446. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  447. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  448. package/skills/pixelcraft-web/references/solid.md +111 -0
  449. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  450. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  451. package/skills/pixelcraft-web/references/svelte.md +111 -0
  452. package/skills/pixelcraft-web/references/tailwind.md +99 -0
  453. package/skills/pixelcraft-web/references/video-media.md +69 -0
  454. package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
  455. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -0,0 +1,230 @@
1
+ # Progressive web apps
2
+
3
+ A PWA is not merely “a website with a manifest.” Installation, offline behavior, push, storage, updates, platform integration, and browser UI each have separate support matrices. Feature-detect every capability; never infer it from a user-agent string.
4
+
5
+ ## Manifest contract
6
+
7
+ Link the same manifest from every installable page:
8
+
9
+ ```html
10
+ <link rel="manifest" href="/manifest.webmanifest" />
11
+ ```
12
+
13
+ Common members:
14
+
15
+ | Member | Meaning / UX rule |
16
+ |---|---|
17
+ | `name` / `short_name` | full and constrained-space app names; Chromium installability requires at least one |
18
+ | `id` | stable app identity; changing it can create a distinct installed app in supporting browsers |
19
+ | `start_url` | URL opened on launch; keep it inside `scope`, stable, authenticated-state aware, and useful when offline |
20
+ | `scope` | URL space treated as in-app; navigation outside it may expose browser context UI |
21
+ | `display` | preferred presentation: `browser`, `minimal-ui`, `standalone`, or `fullscreen`; actual fallback/support varies |
22
+ | `display_override` | ordered advanced fallback such as `window-controls-overlay` before `standalone`; verify browser support |
23
+ | `icons` | install/home/task switcher icons; Chromium requires both 192px and 512px entries |
24
+ | `background_color` | launch/placeholder background before CSS loads; match real first paint to avoid flash |
25
+ | `theme_color` | surrounding OS/browser chrome color; also coordinate meta theme-color behavior |
26
+ | `description` / `screenshots` | richer install UI metadata in supporting browsers |
27
+ | `orientation` | only lock when the experience truly requires it; orientation locks are often hostile UX |
28
+ | `categories` / `lang` / `dir` | metadata/localization hints; implementation is incomplete or platform-dependent |
29
+ | `shortcuts` | launcher shortcuts to deep actions; URLs must stay in scope and handle auth/offline states |
30
+ | `share_target` | receive shares in supporting browsers; validate method/params and security/privacy behavior |
31
+ | `file_handlers` | register file-type handling where supported; browser/OS support is limited |
32
+ | `protocol_handlers` | register custom/web-safe protocol handling where supported; validate navigation/security |
33
+ | `launch_handler` | influence whether launch focuses an existing client or opens a new one; support varies |
34
+ | `prefer_related_applications` / `related_applications` | native-app preference can suppress web install promotion; for Chromium installability the preference must be absent or false |
35
+
36
+ Example:
37
+
38
+ ```json
39
+ {
40
+ "id": "/",
41
+ "name": "Example Workspace",
42
+ "short_name": "Workspace",
43
+ "start_url": "/?source=pwa",
44
+ "scope": "/",
45
+ "display": "standalone",
46
+ "background_color": "#ffffff",
47
+ "theme_color": "#102033",
48
+ "description": "Offline-capable project workspace.",
49
+ "icons": [
50
+ { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
51
+ { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" },
52
+ { "src": "/icons/maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
53
+ ]
54
+ }
55
+ ```
56
+
57
+ Maskable icons need content inside the platform's safe zone; verify adaptive masks rather than padding everything blindly.
58
+
59
+ ## Installability criteria
60
+
61
+ Current Chromium criteria for firing `beforeinstallprompt`/showing browser install promotion include:
62
+
63
+ - app not already installed;
64
+ - user engagement heuristic: the user has clicked/tapped the page at least once and spent at least 30 seconds viewing it across visits;
65
+ - HTTPS or localhost/loopback in development;
66
+ - manifest with `name` or `short_name`;
67
+ - icons including 192px and 512px;
68
+ - `start_url`;
69
+ - `display` one of `fullscreen`, `standalone`, `minimal-ui`, or `window-controls-overlay` (or an appropriate `display_override` result);
70
+ - `prefer_related_applications` absent or false.
71
+
72
+ Other browsers differ. Some let users create shortcuts/install even when promotion criteria are not met. Service workers are central to offline UX, but current Chromium promotion criteria do not simply mean “register any service worker”; verify target-browser requirements instead of copying old checklist versions.
73
+
74
+ ## Install prompt UX
75
+
76
+ `beforeinstallprompt` is a browser-owned opportunity, not permission to interrupt:
77
+
78
+ ```js
79
+ let deferredInstallPrompt;
80
+
81
+ window.addEventListener('beforeinstallprompt', (event) => {
82
+ event.preventDefault();
83
+ deferredInstallPrompt = event;
84
+ showInstallAction.hidden = false;
85
+ });
86
+
87
+ showInstallAction.addEventListener('click', async () => {
88
+ if (!deferredInstallPrompt) return;
89
+ deferredInstallPrompt.prompt();
90
+ const { outcome } = await deferredInstallPrompt.userChoice;
91
+ deferredInstallPrompt = null;
92
+ reportOutcomeHonestly(outcome);
93
+ });
94
+ ```
95
+
96
+ UX rules:
97
+
98
+ - do not ask on first paint; wait until the user has experienced enough value to understand why installation matters;
99
+ - use an explicit, dismissible in-product action (“Install workspace”) rather than a modal ambush;
100
+ - explain the concrete benefit: offline access, launch behavior, file handling, shortcuts—not vague “better experience”;
101
+ - respect dismissal and do not reprompt aggressively;
102
+ - detect/display state using `appinstalled`, display-mode media queries, and navigator/standalone clues where applicable;
103
+ - handle unsupported browsers with an honest manual path, not a disabled fake button;
104
+ - never obstruct core use behind installation.
105
+
106
+ On iOS/iPadOS there is no `beforeinstallprompt` event for arbitrary Safari pages. If installation is truly useful, expose instructions only at a user-initiated/help moment (for example, Share → Add to Home Screen). Do not fake a native permission sheet.
107
+
108
+ ## Offline-first UX states
109
+
110
+ Offline is a product state, not a failed page. Model these separately:
111
+
112
+ | State | Required UX |
113
+ |---|---|
114
+ | fast online | ordinary behavior; do not show false freshness confidence if data is cached |
115
+ | slow/degraded network | progressive loading, cancellation/timeouts, preserve input, avoid dead skeleton loops |
116
+ | offline with fresh cache | clear connectivity/status affordance only when relevant; full core functionality where designed |
117
+ | offline with stale cache | explicit “last updated”/staleness treatment and non-destructive refresh action |
118
+ | offline uncached route/action | useful fallback explaining what is unavailable and what remains possible |
119
+ | queued mutation | visible pending state, retry/inspect/cancel path, conflict behavior, durable ordering semantics |
120
+ | sync in progress | progress/failure state without blocking unrelated work |
121
+ | server failure while online | do not mislabel as user connectivity failure; expose status/retry/support appropriately |
122
+ | permission/login expiry | preserve unsent data where safe and explain auth recovery clearly |
123
+
124
+ Rules:
125
+
126
+ - preserve form input and locally created drafts across refresh/offline transitions;
127
+ - never silently drop or duplicate queued mutations;
128
+ - do not cache sensitive authenticated data merely because it is convenient; threat-model storage;
129
+ - expose content age/provenance where decisions depend on freshness;
130
+ - make retry idempotent and backoff deliberate;
131
+ - the browser `online` event/`navigator.onLine` is a hint, not proof that the service/API is reachable.
132
+
133
+ ## Service worker caching strategies
134
+
135
+ Service workers are programmable network proxies. Registration and installation are separate lifecycle events, and the worker controlling future loads may not control the page that registered it until navigation/reload depending on lifecycle handling.
136
+
137
+ | Strategy | Best use | Risk |
138
+ |---|---|---|
139
+ | cache-first | versioned static assets/fonts/images that rarely change | stale forever if URL is not versioned; storage growth |
140
+ | network-first fallback-cache | timely API/page data where freshness matters but stale fallback is acceptable | slow timeout hurts UX; stale financial/medical/legal data can mislead |
141
+ | stale-while-revalidate | UI assets/data where instant response matters and eventual freshness is acceptable | user may see older state; mutation-sensitive data needs clear labeling |
142
+ | network-only | payments/auth/balances/high-integrity actions | no offline behavior |
143
+ | cache-only | deliberately precached immutable app shell/assets | fails when asset missing; wrong for dynamic truth |
144
+ | cache-then-network UI pattern | show cached content while validating freshness | visible state must say when refresh is in progress/completed/failed |
145
+
146
+ Implementation rules:
147
+
148
+ - precache only the minimum app shell; huge upfront caches harm install/storage;
149
+ - prefer **Serwist** or **Workbox** over hand-rolling raw `fetch` caches (see [build-and-architecture.md](build-and-architecture.md) for Serwist precaching, runtime routing, and `BackgroundSyncPlugin` setup);
150
+ - version cache names and delete obsolete caches during `activate`;
151
+ - do not cache opaque/cross-origin/authenticated responses without understanding scope and leakage;
152
+ - combine with correct HTTP caching; service-worker cache and HTTP cache are distinct layers;
153
+ - route requests by URL/method/headers deliberately; POST/mutations are not ordinary cacheable GETs;
154
+ - keep fallback pages/assets small and meaningful;
155
+ - test first visit before activation, repeat visit, update, offline reload, cache eviction, and multiple tabs.
156
+
157
+ ## Push permission UX
158
+
159
+ Push is high-interruption capability. Permission must be earned in context:
160
+
161
+ 1. explain what notifications will contain and why they matter before invoking permission;
162
+ 2. trigger the permission request only from a clear user action such as subscribing to a specific topic;
163
+ 3. offer topic/frequency/channel controls where possible rather than one binary all-or-nothing request;
164
+ 4. handle `default`, `granted`, and `denied` states accurately; if denied, instruct users how to change browser/OS settings without nagging;
165
+ 5. confirm subscription state in-product and provide unsubscribe/disable controls;
166
+ 6. validate endpoint expiration, server VAPID keys, payload size/encryption, and retry behavior separately from visual permission;
167
+ 7. do not use notification permission as a proxy for install permission—they are independent decisions.
168
+
169
+ On iOS/iPadOS 16.4+, standards-based Web Push is available to Home Screen web apps, and the permission request must be in response to direct user interaction. It is not generally equivalent to desktop-browser push support. Feature-detect Push API/Notification/service worker/installed-app context and treat unsupported paths as honest product states.
170
+
171
+ ## Update-available flow
172
+
173
+ Service-worker updates occur when the browser detects a byte-different worker file. Keep the worker filename stable; changing its filename can prevent normal update detection. Typical lifecycle:
174
+
175
+ 1. browser registers/checks worker;
176
+ 2. new worker installs;
177
+ 3. worker waits while old worker controls existing clients;
178
+ 4. activation occurs after old clients release control or explicit lifecycle coordination;
179
+ 5. page receives `controllerchange` if activation takes control.
180
+
181
+ UX-safe flow:
182
+
183
+ ```js
184
+ let reloadingForUpdate = false;
185
+
186
+ navigator.serviceWorker.addEventListener('controllerchange', () => {
187
+ if (reloadingForUpdate) return;
188
+ reloadingForUpdate = true;
189
+ window.location.reload();
190
+ });
191
+
192
+ newWorker.addEventListener('statechange', () => {
193
+ if (newWorker.state === 'installed' && navigator.serviceWorker.controller) {
194
+ showUpdateToast({ action: () => newWorker.postMessage({ type: 'SKIP_WAITING' }) });
195
+ }
196
+ });
197
+ ```
198
+
199
+ Rules:
200
+
201
+ - show an update action when a new version is waiting, but never force reload mid-form or during a critical transaction;
202
+ - make copy concrete (“Restart to use version …”), not generic alarm;
203
+ - coordinate multiple tabs/worker versions when data schemas change;
204
+ - consider cache/schema migration and incompatible client-server versions;
205
+ - expose offline/update failure and retry rather than an infinite spinner;
206
+ - test first install, byte-identical reload, byte-different update, user deferral, multi-tab behavior, and low-network interruption.
207
+
208
+ ## iOS/iPadOS caveats
209
+
210
+ Apple platform behavior changes frequently. Verify the exact target version; do not treat Android/Desktop PWA behavior as portable.
211
+
212
+ - installation historically happens through Share → Add to Home Screen rather than Chromium-style programmatic prompts;
213
+ - web.dev installation documentation notes that only the standalone display mode is available on iOS/iPadOS;
214
+ - Apple devices can install the same PWA multiple times, and each installation has isolated storage/is treated as a separate app;
215
+ - web push requires Home Screen web apps on iOS/iPadOS 16.4+ and direct user interaction; browser tabs are not equivalent;
216
+ - background execution, lifecycle, storage persistence, cache eviction, badges, vibration, media, Bluetooth/USB, file handling, and advanced platform integrations have narrower/different support;
217
+ - viewport safe areas, home indicator, status-bar appearance, keyboard resizing, scrolling momentum, and fullscreen behavior must be physically tested;
218
+ - storage is not guaranteed permanent. Request persistence with `navigator.storage.persist()` where supported, but still design for eviction/loss;
219
+ - feature-detect APIs; Safari/WebKit version and installed-app context matter more than “iOS” as a label.
220
+
221
+ ## Verification matrix
222
+
223
+ - Lighthouse/browser installability audit is a clue, not proof;
224
+ - inspect manifest JSON/network response, icon decoding, scope/start URL, screenshots, and maskable cropping;
225
+ - test Chromium desktop/mobile install prompt and at least one non-Chromium target;
226
+ - throttle network, go offline after first load/update, reload deep links, mutate/queue data, and recover;
227
+ - inspect Cache Storage/IndexedDB/quota/persistence;
228
+ - test push permission lifecycle and payload rendering;
229
+ - test update deferral/activation in multiple tabs;
230
+ - test real iPhone/iPad installed-home-screen behavior or mark it `not-checked`.
@@ -0,0 +1,94 @@
1
+ # Qwik
2
+
3
+ ## Token mapping
4
+
5
+ Import generated CSS variables in global/root styling and consume semantic variables in component CSS. Qwik's resumability favors small serialized state; keep token names static rather than generating dynamic unbounded style objects per interaction.
6
+
7
+ ## Layout and responsive idioms
8
+
9
+ Use standard HTML/CSS first. Qwik components should remain small and lazily resumable; visual composition does not require hydration. Route layouts in Qwik City own persistent shell structure. Avoid putting large nonserializable objects into component state/props.
10
+
11
+ ## Typography/custom fonts
12
+
13
+ Load fonts in document head/root layout with subset/fallback policy. Resumable HTML means typography can render before JS; preserve that advantage rather than delaying text behind client bootstrap.
14
+
15
+ ## Motion/reduced motion
16
+
17
+ Use CSS where possible. Event handlers are lazy-loaded in Qwik, so motion tied to interaction can remain local through `$` handlers. Honor `prefers-reduced-motion`; reserve `useVisibleTask$` strictly for unavoidable browser-only DOM/observer setup (canvas, third-party widgets) because it eagerly loads JS when scrolled into view and undercuts resumability.
18
+
19
+ ## Accessibility specifics
20
+
21
+ Resumability is not accessibility by itself. Initial HTML needs correct semantics, labels, landmarks, and focus order. Use `useId()` for SSR-safe `<label for>` and `aria-describedby` wiring. Manage focus after lazy interaction, route transition, deletion, and dialog close. Anchor/button distinction remains mandatory.
22
+
23
+ ## States idiom
24
+
25
+ Use `routeLoader$`, `routeAction$`, `server$`, `useResource$` + `<Resource>`, and explicit pending/error/empty branches. Because Qwik serializes state into HTML, avoid secrets/nonserializable values (wrap unavoidable non-serializable handles with `noSerialize(...)`) and preserve input/error state across action failure.
26
+
27
+ ## Qwik 1.x vs Qwik 2.0 and task/resource idioms
28
+
29
+ Check `package.json` for the installed major before writing imports: **Qwik 2.0** moves core packages to **`@qwik.dev/core`** and **`@qwik.dev/router`** (replacing `@builder.io/qwik` and `@builder.io/qwik-city`).
30
+
31
+ - **`useTask$` vs `useVisibleTask$`**: default to **`useTask$`** for reactive state derivation and async work (runs during SSR and resumes on the client only when tracked signals change). Use **`useVisibleTask$`** only as a browser-only escape hatch (e.g., attaching ResizeObserver/canvas/chart instances) and return a cleanup function via `cleanup(() => ...)`.
32
+ - **`useResource$` + `<Resource>`**: use for streamed/reactive async data with explicit `onPending`, `onRejected`, and `onResolved` states.
33
+ - **`server$`**: define typed server-only RPC functions callable from event handlers without exposing server secrets or database code to the browser bundle.
34
+
35
+ ```tsx
36
+ import { component$, Resource, useResource$, useSignal, useTask$ } from '@qwik.dev/core';
37
+ import { server$ } from '@qwik.dev/router';
38
+
39
+ const searchInvoices = server$(async (query: string) => db.invoices.search(query));
40
+
41
+ export const InvoiceSearch = component$(() => {
42
+ const query = useSignal('');
43
+ const debounced = useSignal('');
44
+
45
+ useTask$(({ track, cleanup }) => {
46
+ const next = track(() => query.value);
47
+ const id = setTimeout(() => { debounced.value = next; }, 200);
48
+ cleanup(() => clearTimeout(id));
49
+ });
50
+
51
+ const results = useResource$<Invoice[]>(({ track }) => {
52
+ const q = track(() => debounced.value);
53
+ return searchInvoices(q);
54
+ });
55
+
56
+ return (
57
+ <Resource
58
+ value={results}
59
+ onPending={() => <p role="status" aria-busy="true">Searching…</p>}
60
+ onRejected={(err) => <p role="alert">Search failed: {err.message}</p>}
61
+ onResolved={(items) => (items.length ? <ul>{items.map((i) => <li key={i.id}>{i.number}</li>)}</ul> : <p>No matches.</p>)}
62
+ />
63
+ );
64
+ });
65
+ ```
66
+
67
+ ## Forms idiom
68
+
69
+ Qwik Router `routeAction$` + `<Form>` (or Modular Forms `@modular-forms/qwik`; see `forms-validation.md`) progressively enhance forms. Use native labels/types/autocomplete/inputmode and return field errors without discarding values. Avoid converting every input into eager client-controlled state when native form semantics suffice.
70
+
71
+ ## Do/don't pairs
72
+
73
+ | Do | Don't |
74
+ |---|---|
75
+ | `<Link href="/invoice/42">View invoice</Link>` | Click-only `<div>` calling navigation |
76
+ | `useTask$` for reactive state and `useResource$` + `<Resource>` for async UI states | Reaching for `useVisibleTask$` for data fetching (breaks resumability and delays SSR) |
77
+ | `server$` / `routeAction$` with serializable error shapes | Storing class instances, functions, or secrets directly in `useStore`/`useSignal` |
78
+ | Match imports to installed major (`@qwik.dev/core` + `@qwik.dev/router` in v2) | Mixing v1 `@builder.io/qwik-city` and v2 `@qwik.dev/router` imports |
79
+ | Stable static layout before interaction | Blank shell waiting for lazy behavior that content does not need |
80
+
81
+ ## Known traps
82
+
83
+ Serialization boundary violations (missing `noSerialize` on DOM/library handles), overusing `useVisibleTask$` and throwing away resumability, leaking server-only code outside `server$`/`routeLoader$`, lazy focus management gaps, stale route data, CSS duplication across lazy chunks.
84
+
85
+ ## Verification commands
86
+
87
+ ```sh
88
+ npm run lint
89
+ npm run test -- --run
90
+ npm run build
91
+ npx playwright test
92
+ ```
93
+
94
+ Inspect initial HTML before JS (`static` / no-JS `rendered`) as well as post-interaction browser state (`rendered`); both are distinct evidence.
@@ -0,0 +1,69 @@
1
+ # React Three Fiber (R3F v9) integration
2
+
3
+ Use R3F as a renderer inside an existing React application, not as an alternate application architecture. Keep the DOM/scene boundary explicit. For non-React declarative 3D (Svelte Threlte, Vue TresJS) or Babylon.js/`<model-viewer>`, see [web-3d-engines.md](web-3d-engines.md).
4
+
5
+ ## Version & ecosystem compatibility
6
+
7
+ - **R3F v9 + React 19**: React 19 requires **`@react-three/fiber` v9+** (R3F v8 is strictly for React 18). Match `@react-three/drei`, `@react-three/postprocessing`, and `@react-three/rapier` majors to your installed React/R3F versions.
8
+ - **Postprocessing (`@react-three/postprocessing`)**: batch effects inside a single `<EffectComposer multisampling={0}>` (for example selective `<Bloom mipmapBlur luminanceThreshold={1} />` + `<ToneMapping mode={ToneMappingMode.ACES_FILMIC} />`) instead of stacking unmerged fullscreen shader passes.
9
+ - **Physics (`@react-three/rapier`)**: wrap physics bodies in `<Physics paused={reducedMotion || !visible}>` so WASM physics steps pause when offscreen or static, and keep collider meshes simpler than visual meshes (`colliders="hull"` / primitives).
10
+ - **WebGPU (`three/webgpu`)**: R3F v9 accepts an async `gl` factory (`gl={async (props) => { const r = new WebGPURenderer(props); await r.init(); return r; }}`) so scenes can opt into Three.js `WebGPURenderer` + TSL (`scene-architecture.md`) with WebGL2 fallback.
11
+
12
+ ## Component boundaries
13
+
14
+ - Place `<Canvas>` in a narrow `'use client'` component dynamically imported with `ssr: false` (or client-only lazy wrapper) when using server-rendered React/Next.js/React Router/TanStack Start.
15
+ - Keep SEO text, headings, buttons, pricing, product options, and accessible descriptions outside `<Canvas>`.
16
+ - Keep per-frame values in refs/mutable objects (`meshRef.current.rotation.y += delta`); **never** call `setState` inside `useFrame`.
17
+ - Memoize shared geometries/materials and avoid recreating loaders, vectors (`new THREE.Vector3()`), or callbacks inside `useFrame`.
18
+
19
+ ## Demand rendering & explicit `invalidate`
20
+
21
+ Default to `frameloop="demand"` for product viewers, configurators, and mostly static scenes so the GPU idles at 0% between interactions, and call **`useThree((s) => s.invalidate)`** whenever external state or an imperative animation requires a fresh frame:
22
+
23
+ ```tsx
24
+ 'use client';
25
+ import { useEffect, useRef } from 'react';
26
+ import { Canvas, useThree } from '@react-three/fiber';
27
+ import { OrbitControls } from '@react-three/drei';
28
+ import type * as THREE from 'three';
29
+
30
+ function ProductMesh({ finishColor }: { finishColor: string }) {
31
+ const meshRef = useRef<THREE.Mesh>(null);
32
+ const invalidate = useThree((s) => s.invalidate);
33
+
34
+ useEffect(() => {
35
+ invalidate(); // Request one new frame when finishColor changes under frameloop="demand"
36
+ }, [finishColor, invalidate]);
37
+
38
+ return (
39
+ <mesh ref={meshRef}>
40
+ <boxGeometry args={[1, 1, 1]} />
41
+ <meshStandardMaterial color={finishColor} />
42
+ </mesh>
43
+ );
44
+ }
45
+
46
+ export function ProductCanvas({ finishColor }: { finishColor: string }) {
47
+ return (
48
+ <Canvas dpr={[1, 2]} frameloop="demand" gl={{ antialias: true, powerPreference: 'high-performance' }}>
49
+ <ambientLight intensity={0.6} />
50
+ <directionalLight position={[4, 6, 4]} intensity={1.2} />
51
+ <ProductMesh finishColor={finishColor} />
52
+ <OrbitControls enableDamping makeDefault />
53
+ </Canvas>
54
+ );
55
+ }
56
+ ```
57
+
58
+ ## Interaction, SSR, and fallback
59
+
60
+ - Keep camera controls bounded (`minDistance`, `maxDistance`, `maxPolarAngle`) and expose a DOM "Reset view" button and keyboard controls for interactive viewers.
61
+ - Render a styled poster/image fallback inside `<Suspense fallback={...}>` and wrap `<Canvas>` in a React Error Boundary so WebGL/WebGPU unavailability degrades to a clean static product view.
62
+ - Never instantiate WebGL/WebGPU during SSR; seed any procedural geometry deterministically so visual QA is reproducible.
63
+
64
+ ## Official references
65
+
66
+ - R3F docs: https://r3f.docs.pmnd.rs/
67
+ - R3F hooks & `invalidate`: https://r3f.docs.pmnd.rs/api/hooks
68
+ - `@react-three/postprocessing`: https://react-postprocessing.docs.pmnd.rs/
69
+ - `@react-three/rapier`: https://github.com/pmndrs/react-three-rapier
@@ -0,0 +1,168 @@
1
+ # React / Next.js
2
+
3
+ ## Token mapping
4
+
5
+ Import generated CSS variables at the app/root layout layer or map them into a typed theme object consumed by components:
6
+
7
+ ```ts
8
+ import './tokens.css';
9
+ const theme = { action: 'var(--semantic-color-action)' };
10
+ ```
11
+
12
+ Do not duplicate hex values in component props when CSS variables already represent the semantic role. Server/client component boundaries must not turn token constants into unnecessary client bundles.
13
+
14
+ ## Layout and responsive idioms
15
+
16
+ Use semantic HTML/CSS layout before component abstractions. In Next.js, keep static/content-heavy sections server-rendered and isolate client interactivity. Use route segments/layouts for shared structure; do not recreate shell chrome per page. Streaming/suspense boundaries should preserve stable layout rather than replacing the entire viewport with spinners.
17
+
18
+ ## Typography/custom fonts
19
+
20
+ Use `next/font` where applicable, configure subsets/fallbacks/display behavior deliberately, and cover required scripts. React Native-style fixed pixel assumptions do not belong here; text must zoom/reflow in the browser.
21
+
22
+ ## Motion/reduced motion
23
+
24
+ CSS handles simple transitions. Never read `window.matchMedia` synchronously at module scope or render time in SSR/RSC apps—subscribe inside `useSyncExternalStore` (with a safe server snapshot) or `useEffect` in a `'use client'` component:
25
+
26
+ ```ts
27
+ 'use client';
28
+ import { useSyncExternalStore } from 'react';
29
+
30
+ const QUERY = '(prefers-reduced-motion: reduce)';
31
+
32
+ export function usePrefersReducedMotion(): boolean {
33
+ return useSyncExternalStore(
34
+ (onChange) => {
35
+ const mql = window.matchMedia(QUERY);
36
+ mql.addEventListener('change', onChange);
37
+ return () => mql.removeEventListener('change', onChange);
38
+ },
39
+ () => window.matchMedia(QUERY).matches,
40
+ () => false // SSR snapshot
41
+ );
42
+ }
43
+ ```
44
+
45
+ Clean up listeners, observers, and animation frames in effects or ref cleanup callbacks.
46
+
47
+ ## Accessibility specifics
48
+
49
+ React does not create semantics for you. Use real controls, label association with `htmlFor`/`id` (use `useId()` for reusable components so SSR and client IDs match), and manage focus after route transitions, dialog close, deletion, and error summary display. Framework `<Link>` renders an anchor; do not use click handlers for navigation without `href` semantics. Hydration must not leave visible controls inert.
50
+
51
+ ## States idiom
52
+
53
+ Check the installed React/Next.js versions and router before using these examples. Server Actions and route-segment conventions here assume a compatible App Router; preserve existing Pages Router or client mutation patterns when a migration is out of scope.
54
+
55
+ Use route-level `loading`/`error`/`not-found` plus component-level state deliberately; they are not substitutes for empty/partial/offline/optimistic states. Server Actions need pending indication, duplicate-submit protection, validation error return shape, input preservation, rollback semantics, and **explicit server-side authentication + authorization checks inside every action** (Server Actions are public HTTP endpoints—never assume UI gating or route middleware alone protects them).
56
+
57
+ ## Forms idiom
58
+
59
+ Use `<form action>` progressive enhancement where feasible. Correct `autocomplete`/`inputMode` are preserved in JSX capitalization (`autoComplete`, `inputMode`). `useFormStatus` is imported from `'react-dom'` and **must be called in a child component rendered inside `<form>`** (calling it in the same component that renders `<form>` always returns `pending: false`). Return field errors as data and associate them accessibly; preserve input on failed server validation.
60
+
61
+ ## Modern React 19 / 19.2 idioms
62
+
63
+ - **Refs & cleanup**: pass `ref` directly as a regular prop (no `forwardRef` boilerplate) and return a cleanup function from callback refs (`ref={(node) => { ...; return () => cleanup(); }}`).
64
+ - **Async & mutations**: read promises/context conditionally with `use()`, pair `<form action>` with `useActionState` and `useOptimistic` (`state-architecture.md`), and keep render functions pure so **React Compiler** auto-memoizes safely without manual `useMemo`/`useCallback` clutter.
65
+ - **React 19.2 primitives**: use `<Activity mode={open ? 'visible' : 'hidden'}>` to preserve UI/form state in hidden tabs/panels without paying full active render cost, `useEffectEvent` to read latest props/callbacks inside `useEffect` without restarting subscriptions, and `<ViewTransition>` (where supported by the React release channel) for semantic state/route transitions gated by reduced-motion preferences.
66
+
67
+ ## Next.js 15 / 16 idioms
68
+
69
+ - **Async request APIs**: `params`, `searchParams`, `cookies()`, and `headers()` are asynchronous (`const { id } = await params`).
70
+ - **Explicit caching (`'use cache'`)**: do not assume implicit `fetch` caching. Opt into Cache Components / `'use cache'` with `cacheLife('hours')` and `cacheTag('invoices')`, and invalidate cleanly with `updateTag(...)` (immediate read-your-own-writes in Server Actions) or `revalidateTag(...)`.
71
+ - **Built-in flows & error boundaries**: use `next/form` (`<Form action="/search">`) for progressively enhanced GET navigation forms, `after(() => ...)` for non-blocking post-response logging/analytics, and `unauthorized()` / `forbidden()` paired with `unauthorized.tsx` / `forbidden.tsx` where enabled.
72
+ - **Request boundary**: in Next.js 16+, prefer `proxy.ts` (replacing `middleware.ts` naming) for lightweight request routing/header rewrites—and still verify auth/permissions inside Server Components, Route Handlers, and Server Actions.
73
+
74
+ ## React Router v7 (framework mode)
75
+
76
+ For Vite-native full-stack React with web-standard `Request`/`Response` semantics, configure explicit routes in `app/routes.ts` and import generated `./+types/<route>` (`Route.LoaderArgs`, `Route.ActionArgs`, `Route.ComponentProps`):
77
+
78
+ ```tsx
79
+ // app/routes/invoice.tsx
80
+ import type { Route } from './+types/invoice';
81
+ import { Form, useNavigation } from 'react-router';
82
+
83
+ export async function loader({ params, request }: Route.LoaderArgs) {
84
+ return loadInvoice(params.id, request);
85
+ }
86
+
87
+ // Optional client-side cache/offline layer; pair with HydrateFallback for SPA/client loads
88
+ export async function clientLoader({ serverLoader }: Route.ClientLoaderArgs) {
89
+ return serverLoader();
90
+ }
91
+
92
+ export async function action({ request, params }: Route.ActionArgs) {
93
+ const formData = await request.formData();
94
+ return updateInvoice(params.id, formData);
95
+ }
96
+
97
+ export function HydrateFallback() {
98
+ return <div role="status" aria-busy="true">Loading invoice…</div>;
99
+ }
100
+
101
+ export default function InvoiceRoute({ loaderData, actionData }: Route.ComponentProps) {
102
+ const busy = useNavigation().state === 'submitting';
103
+ return (
104
+ <Form method="post">
105
+ <button type="submit" disabled={busy}>{busy ? 'Saving…' : 'Save'}</button>
106
+ {actionData?.error && <p role="alert">{actionData.error}</p>}
107
+ </Form>
108
+ );
109
+ }
110
+ ```
111
+
112
+ Use `clientAction` when optimistic client caches must update before or alongside server mutations.
113
+
114
+ ## TanStack Router & TanStack Start
115
+
116
+ For end-to-end type-safe search params, nested loaders, and full-stack RPC server functions on Vite, validate URL state with `validateSearch`, guard auth/preload data in `beforeLoad`, and enforce validation + auth middleware on `createServerFn`:
117
+
118
+ ```tsx
119
+ import { createFileRoute, redirect } from '@tanstack/react-router';
120
+ import { createMiddleware, createServerFn } from '@tanstack/react-start';
121
+ import { z } from 'zod';
122
+
123
+ const authMiddleware = createMiddleware({ type: 'function' }).server(async ({ next }) => {
124
+ const session = await getSession();
125
+ if (!session) throw new Error('Unauthorized');
126
+ return next({ context: { userId: session.userId } });
127
+ });
128
+
129
+ const updateStatus = createServerFn({ method: 'POST' })
130
+ .middleware([authMiddleware])
131
+ .inputValidator(z.object({ id: z.string(), status: z.enum(['draft', 'sent']) }))
132
+ .handler(async ({ data, context }) => saveInvoiceStatus(context.userId, data));
133
+
134
+ export const Route = createFileRoute('/invoices')({
135
+ validateSearch: z.object({ page: z.number().int().min(1).catch(1), q: z.string().catch('') }),
136
+ beforeLoad: ({ context }) => {
137
+ if (!context.session) throw redirect({ to: '/login' });
138
+ },
139
+ loaderDeps: ({ search }) => ({ page: search.page, q: search.q }),
140
+ loader: ({ deps }) => fetchInvoices(deps),
141
+ });
142
+ ```
143
+
144
+ ## Do/don't pairs
145
+
146
+ | Do | Don't |
147
+ |---|---|
148
+ | `<Link href="/invoices/42">View invoice</Link>` | `<div onClick={() => router.push('/invoices/42')}>View invoice</div>` |
149
+ | Call `useFormStatus()` from `'react-dom'` inside a `<SubmitButton />` child of `<form>` | Call `useFormStatus()` in the same component that renders `<form>` (stays `pending: false`) |
150
+ | Check session & resource ownership inside every Server Action / `createServerFn` | Rely on UI hiding or `middleware.ts`/`proxy.ts` alone to secure mutations |
151
+ | Guard `window.matchMedia` in `useSyncExternalStore` (with server snapshot) or `useEffect` | Call `window.matchMedia(...)` unconditionally during render (crashes SSR) |
152
+ | Narrow `'use client'` leaf (`<QtyStepper sku={sku} />`) inside a Server Component | Convert the whole route to `'use client'` for one interactive control |
153
+ | Validate URL search params (`validateSearch` / `searchParams`) for filter/page/share state | Store shareable view state only in ephemeral component memory |
154
+
155
+ ## Known traps
156
+
157
+ Server/client serialization boundaries, unauthenticated Server Actions, calling `useFormStatus` outside a `<form>` child, unguarded `window` reads in SSR, stale closure state, effect-driven data fetching waterfalls, hydration mismatch from locale/date/random values, focus loss after route change, cache tag omission, suspense fallback layout shift.
158
+
159
+ ## Verification commands
160
+
161
+ ```sh
162
+ npm run lint
163
+ npm run test -- --run
164
+ npm run build
165
+ npx playwright test
166
+ ```
167
+
168
+ Use the actual package manager/scripts. Inspect browser rendering and hydration timing in a real browser (`rendered`); typechecks and builds provide `static` evidence only.
@@ -0,0 +1,63 @@
1
+ # Creative rendering choices
2
+
3
+ ## Select by content
4
+
5
+ | Renderer | Strong fit | Cost / boundary |
6
+ |---|---|---|
7
+ | DOM/CSS | UI, small transitions, layout effects | Keep semantic state in HTML; avoid layout-heavy animation |
8
+ | SVG | Icons, diagrams, vector marks, path drawing, moderate object counts | DOM/SVG complexity grows with many animated nodes |
9
+ | Canvas 2D | Procedural drawing, simple particles, paint tools | App must provide semantics, focus, text/data alternative |
10
+ | **PixiJS v8** | Sprite/texture-heavy 2D scenes, particles, filters, batching | Adds a runtime and GPU memory; supports WebGPU + WebGL2 automatically |
11
+ | OGL / raw WebGL / `regl` | A compact shader or custom GPU surface | Lower-level lifecycle/compatibility work |
12
+ | Three.js / R3F / Babylon / Threlte / TresJS | 3D scene graphs, camera, lighting, loaders | Read [scene-architecture.md](scene-architecture.md) and [web-3d-engines.md](web-3d-engines.md) |
13
+ | **WebGPU** | Compute shaders, high-draw-call instancing, or modern GPU pipelines | Capability-detect first; ship WebGL2 or static fallback |
14
+
15
+ ## PixiJS v8 breaking-change initialization
16
+
17
+ PixiJS v8 **removed synchronous constructor options** and renamed `app.view` → **`app.canvas`**. Always construct `new Application()`, await `app.init({ preference: 'webgpu', ... })` (falls back to WebGL2 automatically), mount `app.canvas`, and call `app.destroy({ removeView: true }, { children: true, texture: true })` on unmount:
18
+
19
+ ```ts
20
+ import { Application } from 'pixi.js';
21
+
22
+ export async function mountPixiStage(container: HTMLElement) {
23
+ const app = new Application();
24
+ await app.init({
25
+ preference: 'webgpu',
26
+ resizeTo: container,
27
+ resolution: Math.min(window.devicePixelRatio || 1, 2),
28
+ autoDensity: true,
29
+ backgroundAlpha: 0,
30
+ });
31
+ container.appendChild(app.canvas);
32
+ return () => app.destroy({ removeView: true }, { children: true });
33
+ }
34
+ ```
35
+
36
+ Keep product UI, forms, and navigation in real DOM outside the Pixi canvas.
37
+
38
+ ## WebGL / WebGPU capability check & fallback
39
+
40
+ ```ts
41
+ export async function detectGpuBackend(): Promise<'webgpu' | 'webgl2' | 'none'> {
42
+ if ('gpu' in navigator) {
43
+ try {
44
+ const adapter = await navigator.gpu.requestAdapter();
45
+ if (adapter) return 'webgpu';
46
+ } catch {
47
+ // Fall through to WebGL2 check
48
+ }
49
+ }
50
+ const probe = document.createElement('canvas');
51
+ return probe.getContext('webgl2') ? 'webgl2' : 'none';
52
+ }
53
+ ```
54
+
55
+ - WebGPU requires a secure context (`https://` or `localhost`) and a valid `GPUAdapter`; never assume `'gpu' in navigator` means an adapter exists.
56
+ - Provide a deterministic static poster/SVG fallback when `'none'` is returned or GPU context fails.
57
+ - Do not treat a `<canvas>` tag as proof that WebGL/WebGPU initialized; verify rendered pixels and context state in a real browser (`rendered`).
58
+
59
+ ## Official references
60
+
61
+ - PixiJS v8 guides: https://pixijs.com/8.x/guides
62
+ - WebGL API: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
63
+ - WebGPU API: https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API