How It Works Commands Scoring Map Pricing Sandbox Docs
$ interactive sandbox

Paste code.
Run scan.

Try the conversion moment directly: inspect risky AI-generated code, see findings, apply the safe fix, and copy the CLI command.

src/Preview.tsx
Ratchet findings
score
72/100
high risk

Unsanitized HTML render

high

dangerouslySetInnerHTML renders generated markdown without a sanitizer. This is the classic "AI wrote a preview pane" security bug.

Implicit any props

medium

The component accepts untyped input. Ratchet would ask for a typed boundary before this reaches CI.

$ ratchet scan src/Preview.tsx --output-json
ratchet — ~/my-project

Try it on your codebase

Install Ratchet globally and run the same scan from your terminal in under 60 seconds.

$ npm install -g ratchet-run