Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
PtahJs DevTools 预览

PtahJs DevTools 作者: ptahjs

Inspect @ptahjs/tri in real time: scenes, store, entities, systems, and renderer config. For tri engine developers.

0(0 条评价)0(0 条评价)
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
PtahJs DevTools is a browser DevTools extension for developers building applications on the @ptahjs/tri WebGPU ECS engine. It adds a dedicated "Tri" panel to the browser's native DevTools that lets you inspect the engine's runtime state in real time — scenes, the internal engine.store Map, ECS entities and their components, registered systems, and the renderer configuration.


This extension is only useful if you are developing or debugging an app built with @ptahjs/tri. If your page does not expose window.__TRI_DEVTOOLS__ (tri mounts this in dev or when the devtools flag is enabled), the panel will show a "waiting for snapshot" state. It does not work on arbitrary websites.


The panel exposes five tabs:
  • Scenes — all scenes registered in the engine, their entity counts, and active state.
  • Store — the full engine.store Map. Search by id or value, click any row to see the complete JSON payload of that entry, with a diff badge highlighting entries that changed since the last snapshot.
  • Entities — every ECS entity, which scene it belongs to, which components and systems are attached to it. Filter by id, component, or scene.
  • Systems — registered ECS systems, matched entity counts, and their requiredComponents.
  • Renderer — the current renderer configuration as a live JSON view.

Refresh can be automatic (200ms / 500ms / 1s / 2s) or triggered manually. A latency indicator shows how long the last snapshot took to pull.
  1. Install the extension.
  2. Open the app you want to inspect (it must be a page running a @ptahjs/tri engine that exposes window.__TRI_DEVTOOLS__).
  3. Open the browser DevTools (F12).
  4. Find the "Tri" panel in the DevTools tab bar (it may be under the » overflow menu on the far right).
  5. The panel connects automatically and starts streaming snapshots.


The extension does not collect, transmit, or sell any user data. It reads engine state from the inspected page via chrome.devtools.inspectedWindow and only uses chrome.storage.local to record a load timestamp and panel-creation status for diagnostics. See the full privacy policy at the project homepage.
  • Chrome / Edge / other Chromium browsers: MV3, version 111+ recommended.
  • Firefox: 109+ (uses the browser_specific_settings.gecko id ptahjs-devtools@ptahjs.com).
  • Source code & issues: https://github.com/Ptahjs
  • Privacy policy: https://github.com/PtahJs/browser-extension-devtools/blob/main/PRIVACY.md
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 让开发者工具可以存取您打开的标签页中的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 主页
  • 用户支持网站
  • 支持邮箱
  • 复制附加组件 ID
版本
1.0.0
大小
26.81 KB
上次更新
3 天前 (2026年9月3日)
相关分类
  • 网页开发
许可证
MIT 许可证
隐私政策
阅读此附加组件的隐私政策
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。