Solidity Analyzer is a web application that allows you to analyze Solidity code using Slither by Trail of Bits. This project consists of a Flask backend for code analysis and a React frontend for user interaction.
Before you begin, make sure you have the following dependencies installed:
- Docker
- Node.js and npm (for React UI)
- Clone this repository:
git clone https://github.com/web3xDev/SolidityAnalyzer.git
- Build the Docker image:
docker build -t solidity-analyzer .
- Run the Docker container:
docker run -d -p 5000:5000 solidity-analyzer
- Install the React UI dependencies:
cd analyzer-ui
npm install
- Start the React development server:
npm run dev
The web application should now be accessible at http://localhost:5173 in your web browser.
- Enter your Solidity code in the provided textarea.
- Click the "Analyze" button to submit the code for analysis.
- The analysis results will be displayed on the right side of the page, categorized by INFO, Reference, and Warning. Any errors or issues will be displayed in the error section below.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the main repository.
This project is licensed under the GNU Affero General Public License (AGPL) version 3.0 - see the LICENSE file for details.
- Trail of Bits for the eth-security-toolbox
- Contributors who participate in the ongoing maintenance
- All the developers who contribute to the Solidity community