Sentinel-IR Playground Is in Beta: Structural Code Analysis in Your Browser, Even on Your Phone. WASM
Description and use
Sentinel‑IR Playground lets developers inspect code in the browser without installing tools, preserving privacy and working on mobile devices.
Problem
Developers need a quick way to inspect potentially dangerous code without installing tools, opening terminals, or uploading source code to a server.
Outcome
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.
Workflow
- 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.
Evidence
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.
- Record date: 2026-11-02T04:58:54.735Z