Professional tool for auditing smart contracts and legal documents using Gemini AI.
Available Languages: 🇺🇸 English | 🇮🇹 Italiano | 🇩🇪 Deutsch | 🇫🇷 Français
SwissGuard AI provides institutional-grade analysis for legal documents and blockchain smart contracts. It identifies critical risks, compliance gaps, and suggests technical fixes in real-time.
graph TD
A[User Document] --> B{Client-Side Extraction}
B -->|PDF/Text| C[Gemini 1.5 Pro AI]
C --> D[Structured JSON Analysis]
D --> E[Interactive Dashboard]
E --> F[PDF Audit Report]
- Multi-language Support: Interface and analysis available in English, Italian, German, and French.
- Smart Detection: Automatically distinguishes between Legal Documents and Smart Contracts.
- Compliance Engine: Checks against international standards (GDPR, FINMA, etc.).
- Risk Scoring: Visual risk assessment from 0 to 100.
- Exportable Reports: Professional PDF generation for institutional use.
Follow these instructions to get a local copy up and running.
- Node.js: Version 18.0 or higher.
- npm: Usually comes with Node.js.
- Clone the Repository:
git clone https://github.com/your-username/SwissGuardAI.git cd SwissGuardAI - Install Dependencies:
npm install
To use the AI auditing features, you need a Google Gemini API Key.
- Obtain a free API key from the Google AI Studio.
- Create a file named
.envin the root directory of the project. - Add your API key to the file:
GEMINI_API_KEY=your_actual_api_key_here
Note
Free vs Advanced Version:
- The Free Version uses the API key provided in the
.envfile. - The Advanced Version (in the AI Studio environment) allows you to select different keys through the platform's UI. For local use, both versions will use the key from your
.envfile.
Start the development server:
npm run devOpen your browser and navigate to http://localhost:3000.
- Select Language: Choose your preferred language from the top-right globe icon.
- Upload Document: Drag and drop your PDF or source code file (.sol, .txt) into the upload area.
- AI Audit: The system will automatically extract text and perform a deep analysis.
- Review Results:
- Risk Score: Check the overall security level.
- Compliance: Verify regulatory alignment.
- Critical Issues: Review specific clauses and suggested fixes.
- Download Report: Click the "Download Report" button to save a professional PDF summary.
- Frontend: React 19, Tailwind CSS, Motion.
- AI: Google Gemini 1.5 Pro.
- PDF Engine: Client-side PDF.js (bypasses iframe cookie restrictions).
- Security: No server-side storage of documents. Analysis is performed on-the-fly.
This project is licensed under the MIT License - see the LICENSE file for details.