npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pact-audit-free

v1.0.2

Published

Free smart contract security scanner using Slither static analysis

Downloads

7

Readme

PACT Audit Free

Free smart contract security scanner using Slither static analysis by Habify Labs.

npm version License: MIT

About

PACT Audit Free is the community edition of PACT Audit, owned and developed by Habify Labs. This tool provides free smart contract security scanning to help developers identify vulnerabilities before deployment.

Features

  • 🔍 Static Analysis - Powered by Slither analyzer
  • 🆓 Completely Free - No API keys or subscriptions required
  • Fast & Lightweight - Minimal dependencies, quick installation
  • 🎯 Easy to Use - Simple CLI interface
  • 📊 Clean Output - Professional vulnerability reporting
  • 🔄 CI/CD Ready - JSON output and proper exit codes
  • 🌍 Cross-Platform - Works on Windows, macOS, and Linux

Installation

Prerequisites

First, install Slither analyzer:

# Using pip
pip install slither-analyzer

# Using pip3
pip3 install slither-analyzer

# On macOS with Homebrew
brew install slither-analyzer

Install PACT Audit Free

npm install -g pact-audit-free

Usage

Basic Scanning

# Scan a single Solidity file
pact-audit-free scan MyContract.sol

# Scan all Solidity files in a directory
pact-audit-free scan contracts/

Output Options

# Save results to JSON file
pact-audit-free scan MyContract.sol --output results.json

# Output JSON to stdout (useful for CI/CD)
pact-audit-free scan MyContract.sol --json

Example Output

🔍 PACT Audit Free - Slither Security Scanner
Free smart contract security analysis
══════════════════════════════════════════════

🎯 Target: /path/to/MyContract.sol
📋 Validating target path...
✅ Path validation passed
🔧 Checking Slither installation...
✅ Slither is installed and ready

🔍 Running Slither security analysis...
✅ Scan completed

📊 SCAN RESULTS
══════════════
Summary:
  HIGH: 1
  MEDIUM: 2
  LOW: 1

Details:
1. [HIGH] reentrancy-eth
   Reentrancy vulnerability in withdraw function
   📍 MyContract.sol:45

2. [MEDIUM] missing-zero-check
   Missing zero address validation in transfer
   📍 MyContract.sol:23

3. [MEDIUM] unprotected-upgrade
   Function lacks access control
   📍 MyContract.sol:67

4. [LOW] unused-return
   Return value not used
   📍 MyContract.sol:12

⚠️ HIGH SEVERITY ISSUES DETECTED - Review required before deployment!

Exit Codes

  • 0 - No issues or only low/informational issues
  • 1 - Medium severity issues detected
  • 2 - High severity issues detected

Perfect for CI/CD integration:

# This will fail the build if high/medium issues are found
pact-audit-free scan contracts/ || exit 1

JSON Output Format

When using --output or --json, the tool outputs structured data:

{
  "timestamp": "2024-01-15T10:30:00.000Z",
  "target": "/path/to/contracts",
  "vulnerabilities": [
    {
      "type": "reentrancy-eth",
      "severity": "HIGH",
      "description": "Reentrancy vulnerability in withdraw function",
      "sourceMapping": {
        "filename": "MyContract.sol",
        "lines": [45]
      },
      "confidence": "high",
      "impact": "high"
    }
  ],
  "summary": {
    "total": 4,
    "high": 1,
    "medium": 2,
    "low": 1,
    "informational": 0
  }
}

Supported Vulnerability Types

PACT Audit Free detects all vulnerabilities that Slither can find, including:

  • Reentrancy vulnerabilities
  • Access control issues
  • Integer overflow/underflow
  • Unprotected functions
  • Missing zero address checks
  • Timestamp dependencies
  • Gas optimization opportunities
  • Code quality issues
  • And many more...

Requirements

  • Node.js 16.0.0 or higher
  • Slither analyzer installed via pip
  • Python 3.6+ (for Slither dependency)

Troubleshooting

Slither Not Found

If you get a "Slither not found" error:

  1. Ensure Python and pip are installed
  2. Install Slither: pip install slither-analyzer
  3. Verify installation: slither --version
  4. If using virtual environments, ensure Slither is installed in the active environment

Permission Issues

If you encounter permission issues on macOS/Linux:

# Install with sudo if needed
sudo npm install -g pact-audit-free

# Or use npx to run without installing globally
npx pact-audit-free scan MyContract.sol

Comparison

| Feature | PACT Audit Free | Raw Slither | Premium Tools | |---------|----------------|-------------|---------------| | Price | Free | Free | $$ | | Ease of use | ⭐⭐⭐⭐⭐ | ⭐⭐ | ⭐⭐⭐⭐ | | Setup time | < 1 min | ~5 min | ~15 min | | Clean output | ✅ | ❌ | ✅ | | JSON export | ✅ | ⚠️ | ✅ | | CI/CD ready | ✅ | ⚠️ | ✅ |

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT License - see LICENSE file for details.

Related Projects

Support

About Habify Labs

PACT Audit is owned and developed by Habify Labs, a leading blockchain security company focused on making smart contract auditing accessible to all developers.


Made with ❤️ by Habify Labs