cwaring/ucan-devtools

GitHub: cwaring/ucan-devtools

一个浏览器 DevTools 扩展,用于在浏览器流量中检查和调试 UCAN 授权令牌。

Stars: 2 | Forks: 0

[![UCAN Devtools](https://github.com/user-attachments/assets/ccf4ee6a-a06b-4a76-91fd-24239ee087ff)](https://github.com/user-attachments/assets/ccf4ee6a-a06b-4a76-91fd-24239ee087ff) # UCAN Devtools UCAN Devtools 是一个浏览器扩展,它添加了一个 DevTools 面板,用于检查和调试在浏览器流量中发现的 UCAN(例如,请求头中携带的 UCAN)。 它支持 UCAN 1.0 (DAG-CBOR 信封),包括 UCAN **委托** (delegations) 和 **调用** (invocations),以及 UCAN **容器** (ctn-v1)。 **相关规范** - [UCAN 核心规范](https://github.com/ucan-wg/spec) - [Delegation 载荷](https://github.com/ucan-wg/delegation) - [Invocation 载荷](https://github.com/ucan-wg/invocation) - [UCAN 容器规范](https://github.com/ucan-wg/container) - [UCAN HTTP Bearer Token](https://github.com/ucan-wg/ucan-http-bearer-token) ## 安装 预构建的扩展包可在 [GitHub Releases](https://github.com/cwaring/ucan-devtools/releases) 中获取。 为您的浏览器下载相应的 zip 文件: - `*-chrome.zip` 适用于 Chrome/Edge/Brave - `*-firefox.zip` 适用于 Firefox - 源码归档由 GitHub 自动生成;您无需使用它们来安装扩展。 ### 从 release 的 zip 文件安装(推荐) Chrome / Edge / Brave 1. 从 releases 页面下载 `*-chrome.zip` 并将其解压。 2. 访问 `chrome://extensions`,启用 **开发者模式**,然后点击 **加载已解压的扩展程序**。 3. 选择解压后的文件夹。 Firefox 1. 从 releases 页面下载 `*-firefox.zip` 并将其解压。 2. 访问 `about:debugging#/runtime/this-firefox` 并点击 **临时载入附加组件…**。 3. 选择解压后文件夹中的 `manifest.json`。 如果面板没有出现,请确保扩展已启用并重新打开 DevTools (Ctrl+Shift+I / Cmd+Opt+I)。 ## 快速开始(面向贡献者) ### 前置条件 - Node.js - pnpm ### 安装依赖 - `pnpm install` ### 构建 - Chrome (MV3):`pnpm build` - 输出:`.output/chrome-mv3` - Firefox (MV2):`pnpm build:firefox` - 输出:`.output/firefox-mv2` ### 本地安装 #### Chrome 1. 运行 `pnpm build` 2. 打开 `chrome://extensions` 3. 启用 **开发者模式** 4. 点击 **加载已解压的扩展程序** 并选择 `.output/chrome-mv3` #### Firefox 1. 运行 `pnpm build:firefox` 2. 打开 `about:debugging#/runtime/this-firefox` 3. 点击 **临时载入附加组件…** 4. 选择 `.output/firefox-mv2/manifest.json` ### 开发(可选) - Chrome:`pnpm dev` - Firefox:`pnpm dev:firefox` ### 打包(可选) - Chrome zip:`pnpm zip` - Firefox zip:`pnpm zip:firefox` ## 许可证 双重许可,遵循 [MIT](./LICENSE-MIT) 或 [Apache-2.0](./LICENSE-APACHE)(任选其一)。贡献遵循相同的条款。
标签:Contributor-friendly, DAG-CBOR, DNS解析, Firefox插件, IP 地址批量处理, MITM代理, Syscall, UCAN, Web3, Web开发, 分布式系统, 去中心化身份, 响应大小分析, 威胁情报, 开发者工具, 开源项目, 授权验证, 浏览器扩展, 网络请求分析, 自动化攻击, 身份与访问管理, 防御绕过