Playground
The Pinelight Playground lets you scan code instantly in your browser.
How to Use
- Navigate to the Playground
- Select a language from the dropdown
- Paste or type your code in the editor
- Click Analyze to scan for vulnerabilities
- View findings in the results panel
Example
// Vulnerable code
const query = `SELECT * FROM users WHERE id = ${userId}`;
db.query(query);After analysis, you'll see:
- SQL Injection finding with severity and line number
- Suggestion for fixing the vulnerability
- Links to relevant documentation
Features
- Real-time Analysis: Instant feedback as you type
- Multiple Languages: JavaScript, TypeScript, Python, Java, Go, Ruby, PHP, C#, Rust, Swift, Kotlin, Scala, R, Lua, Shell, SQL, HTML/CSS
- Detailed Findings: Each finding includes severity, description, and fix suggestion
- Copy Results: Export findings as JSON or Markdown
Limitations
- Maximum file size: 1MB
- Maximum lines per file: 10,000
- Analysis time: ~5 seconds per file