A professional web application that provides intelligent contract analysis from different perspectives using AI technology. This tool helps users analyze contracts from Party A's perspective, Party B's perspective, or a neutral standpoint.
-
Multi-Perspective Analysis: Analyze contracts from three different viewpoints:
- Party A (Principal/Initiator)
- Party B (Contractor/Recipient)
- Neutral (Balanced perspective)
-
Secure Authentication:
- User registration and login system
- JWT-based authentication
- Secure password hashing
-
Modern UI/UX:
- Intuitive drag-and-drop file upload
- Responsive design
- Real-time analysis feedback
-
Professional Analysis:
- Key risk point identification
- Detailed clause analysis
- Specific modification suggestions
-
Frontend:
- HTML5
- CSS3
- JavaScript (Vanilla)
- Responsive Design
-
Backend:
- Node.js
- Express.js
- MongoDB
- JWT Authentication
-
AI Integration:
- DeepSeek API
- OpenAI API (configurable)
-
Clone the repository: git clone https://github.com/satashili/ailaw1.git cd ailaw1-main
-
Install dependencies: npm install
-
Set up environment variables: Edit
.env
file and add your API keys and configuration -
Start MongoDB service (make sure MongoDB is installed)
-
Run the application: npm start
- Register/Login to access the system
- Choose your perspective (Party A, Party B, or Neutral)
- Upload your contract file (supported formats: TXT, DOC, DOCX, PDF)
- Review the AI-generated analysis
POST /api/register
- User registrationPOST /api/login
- User login
POST /api/analyze
- Submit contract for analysis (requires authentication)
- Password hashing using bcrypt
- JWT-based authentication
- Input validation and sanitization
- Secure file upload handling
- Environment variable protection
smart-contract-review/
├── index.html
├── upload.html
├── styles.css
├── upload.css
├── script.js
├── upload.js
├── server.js
├── .env
├── .env.example
├── .gitignore
└── README.md
- Multi-language support
- Batch file processing
- Contract template suggestions
- Historical analysis tracking
- Export analysis reports
- Advanced user roles and permissions
This project is licensed under the MIT License - see the LICENSE file for details.
- DeepSeek API for AI capabilities
- MongoDB for database services
- Express.js community
- All contributors and users
satashili Project Link: [https://github.com/satashili/ailaw1]