pixijs-environments
Configure PixiJS for Workers, SSR, and Strict CSP
PixiJS applications can fail when browser APIs are unavailable or security policies block dynamic compilation. This skill guides adapter selection, worker setup, and CSP-compatible initialization.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "pixijs-environments" from https://skillstore.io/skills/pixijs-pixijs-environments.md and its manifest at https://skillstore.io/api/skills/pixijs-pixijs-environments/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“pixijs-environments”。 My PixiJS worker fails because document is unavailable. What should I review?
预期结果:
- Configure WebWorkerAdapter before renderer initialization.
- Transfer an OffscreenCanvas from the main thread to the worker.
- Replace direct browser-global access with adapter methods.
- Keep DOM overlays and DOM-based accessibility outside the worker.
正在使用“pixijs-environments”。 PixiJS reports that my environment does not allow unsafe-eval. Must I weaken CSP?
预期结果:
- Keep the existing CSP restriction.
- Import the PixiJS unsafe-eval compatibility module before renderer initialization.
- The module provides static polyfills rather than enabling unsafe evaluation.
- Verify the import remains in the production bundle and retest initialization.
正在使用“pixijs-environments”。 Can I use the custom adapter example directly for Node.js rendering?
预期结果:
- Treat the example as an integration outline, not a complete runtime.
- Supply compatible canvas, image, XML parsing, and graphics implementations.
- Verify that referenced rendering context constructors exist in your runtime.
- Test renderer initialization and asset loading before adding application features.
安全审计
安全All 65 static alerts are false positives in this documentation context. Backticks mark Markdown, dynamic-code references explain CSP mitigation, worker creation uses a fixed local module, and network references support adapters or documentation. No evidence found of prompt injection, credential access, or data exfiltration.
风险因素
⚙️ 外部命令 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/pixijs-pixijs-environments/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/pixijs-pixijs-environments?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/pixijs-pixijs-environments?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/pixijs-pixijs-environments/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/pixijs-pixijs-environments.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
pixijs. (2026). pixijs-environments security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/pixijs-pixijs-environments/audits/1BibTeX 引用
@techreport{pixijs-pixijs-pixijs-environments-2026,
author = {pixijs},
title = {pixijs-environments security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/pixijs-pixijs-environments/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "pixijs-environments security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "pixijs"
date-released: "2026-11-04"
url: "https://skillstore.io/skills/pixijs-pixijs-environments/audits/1"
identifiers:
- type: other
value: "skillstore:pixijs-pixijs-environments:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Move rendering into a worker
Plan OffscreenCanvas transfer, worker adapter setup, and environment-specific imports for a browser application.
Prepare a headless test environment
Review required Adapter methods and identify missing canvas, image, XML, and graphics dependencies before integrating PixiJS into server tests.
Resolve CSP initialization failures
Review renderer import order and apply the documented compatibility module while preserving a strict Content Security Policy.
试试这些提示
Explain when PixiJS v8 needs BrowserAdapter, WebWorkerAdapter, or a custom Adapter. Describe when to call DOMAdapter.set.
Help move my PixiJS v8 renderer into a module worker using OffscreenCanvas. Cover canvas transfer, adapter setup, imports, and unsupported DOM features.
Review my PixiJS v8 imports and CSP initialization error. Explain the pixi.js/unsafe-eval module and recommend changes without relaxing the security policy.
Review my PixiJS v8 custom Adapter for Node.js tests. Check required methods, unavailable globals, graphics dependencies, extension loading, and initialization order.
最佳实践
- Set the environment adapter before creating and initializing the PixiJS application.
- Use adapter methods instead of browser globals in code shared across environments.
- Load CSP compatibility imports before renderer initialization and verify behavior under the deployed security policy.
避免
- Changing DOMAdapter only after the renderer has initialized.
- Assuming worker or SSR environments provide document, Image, or DOM accessibility features.
- Enabling unsafe evaluation in CSP instead of checking the documented compatibility import.