Example Workflow

Here's a complete workflow for scanning a Foundry project.

1. Install Sunya

Linux & macOS:

curl -sSL https://raw.githubusercontent.com/13x54n/sunya-v1/main/package/bin/install | sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/13x54n/sunya-v1/main/package/bin/install.ps1 | iex

2. Initialize Foundry project

forge init my-token
cd my-token

3. Create config

Create sunya.config.json in the project root (Foundry uses ./src):

{
  "contractsDir": "./src",
  "output": { "format": "table" }
}

4. Run scan

sunya scan

Sunya uses Slither with Foundry—it runs forge build to compile, then analyzes for vulnerabilities (reentrancy, unsafe calls, etc.).