Sentinel-IR Playground Is in Beta: Structural Code Analysis in Your Browser, Even on Your Phone. WASM
说明与用途
Sentinel‑IR Playground 让开发者在浏览器中快速分析代码,无需安装工具,保持隐私,并支持移动设备。
问题
Developers need a quick way to inspect potentially dangerous code without installing tools, opening terminals, or uploading source code to a server.
结果
Sentinel‑IR Playground enables on‑device, privacy‑preserving structural analysis of JavaScript, TypeScript, TSX, and Python code directly in the browser, eliminating the need for a development environment or code uploads.
工作流
- Open the playground URL in a browser.
- Paste source code or select a local file.
- The app uses the sentinel‑ir 0.3.1 package compiled to WebAssembly to parse the code.
- The UI displays risk level, risk signals, routes, imports, operations, forbidden capabilities, and a compact IR.
- Click a signal to jump to the corresponding source line.
- Copy the resulting IR or compare its size with the original source.
- Run automated Playwright tests locally or in CI to verify consistency with the Node.js package.
- Build and serve the app locally with npm scripts if desired.
证据
It runs locally in your browser using WebAssembly. Your code is not uploaded, and it is never executed.
The automated browser tests check that every example produces exactly the same compact IR and security signals as Sentinel-IR running under Node.js.
The playground does not need an AI model or an API key.
- 记录日期: 2026-11-02T04:58:54.735Z