功能
树形视图
可折叠、可导航的树形渲染,适用于深层嵌套的 JSON 结构。
搜索
对键和值进行全文搜索,即时高亮显示。
键盘快捷键
仅使用键盘即可导航、展开、折叠和复制。
剪贴板支持
将任意节点或子树以格式化 JSON 复制到剪贴板。
状态栏
显示节点数量、当前深度、文件大小和解析时间。
语法着色
按类型对值进行颜色编码——字符串、数字、布尔值、null。
构建方式
Pry is written in TypeScript and compiled with Perry to native machine code. Its executable statically links the Perry runtime and GC and does not require an external Node.js installation or JavaScript engine.
TypeScript 源码
使用 Perry 原生 UI API 的标准 TypeScript
Perry Compile
SWC 解析 → 类型解析 → LLVM 代码生成
原生二进制文件
Standalone executable with the Perry runtime and GC statically linked; no external Node.js installation required
$ perry compile src/main.ts -o pry
The complete, platform-specific source is linked below; this page does not substitute a fictional simplified API for the real code.
平台支持
macOS
原生 AppKit 组件
可用iOS
原生 UIKit 组件
可用Android
原生 Views 组件
可用截图
macOS 截图——即将推出
iOS 截图——即将推出
截图将随着 Pry 的持续开发而添加。请查看 GitHub 仓库获取最新信息。