An AI-powered legal assistant web application designed to help Pakistani citizens understand their legal situations and get preliminary legal guidance. This application provides an interactive platform for users to input case details and receive AI-generated legal analysis based on Pakistani law.
- 🔒 Secure user authentication with CNIC verification
- 📝 Detailed case input form for various legal scenarios
- 🤖 AI-powered legal analysis using Google's Generative AI
- 📚 Comprehensive legal reference database of Pakistani laws
- 📊 Risk assessment and legal implications analysis
- 📋 Detailed verdict generation with recommendations
- 💼 Support for Criminal, Civil, and Family law cases
- Frontend Framework: React 18 with TypeScript
- Routing: React Router v6
- Styling: Tailwind CSS
- Icons: Lucide React
- AI Integration: Google Generative AI
- Build Tool: Vite
- Code Quality: ESLint, TypeScript
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/YourUsername/Pakistan-Legal-Assistant.git
cd Pakistan-Legal-Assistant- Install dependencies:
npm install- Create a
.envfile in the root directory and add your Google AI API key:
VITE_GOOGLE_AI_API_KEY=your_api_key_here- Start the development server:
npm run devThe application will be available at http://localhost:5173
src/
├── components/ # React components
│ ├── Analysis.tsx # Case analysis component
│ ├── CaseInput.tsx # Case details form
│ ├── LegalReference.tsx # Legal reference display
│ ├── Verdict.tsx # Final verdict display
│ └── Welcome.tsx # Landing page
├── data/
│ └── legalReferences.ts # Legal database
├── services/
│ └── gemini.ts # Google AI integration
└── App.tsx # Main application component
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Vite
- Powered by Google Generative AI
- Icons by Lucide
- Styling with Tailwind CSS